xrefs: Use build options
Bug: 600
Change-Id: I580d1058963cabc4faa349da947f204b3d7f1a0c
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/79462
Reviewed-by: Oliver Newman <olivernewman@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/recipes/xrefs.proto b/recipes/xrefs.proto
index 19ae7f4..daaff0a 100644
--- a/recipes/xrefs.proto
+++ b/recipes/xrefs.proto
@@ -16,10 +16,15 @@
package recipes.pigweed.xrefs;
+import "recipe_modules/pigweed/build/options.proto";
+
message InputProperties {
// Don't do anything that has external effects.
bool dry_run = 1;
// Destination GCS bucket. Default: "pigweed-kythe".
string gcs_bucket = 2;
+
+ // Build module options.
+ recipe_modules.pigweed.build.Options build_options = 3;
}
diff --git a/recipes/xrefs.py b/recipes/xrefs.py
index 63ef22a..6bd91cc 100644
--- a/recipes/xrefs.py
+++ b/recipes/xrefs.py
@@ -58,7 +58,7 @@
api.kythe.kythe_libs_dir = api.kythe.kythe_dir
with api.environment():
- api.build.gn_gen(api.checkout.root)
+ api.build.gn_gen(api.checkout.root, props.build_options)
assert api.checkout.branch in ('master', 'main')
url = urllib.parse.urlparse(api.checkout.remote)