.gn: Only allow .pwpb_options extension
Change-Id: Iba5eeec9e9ac85c1a5a67fab7203cfabb62760d4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/examples/+/245553
Pigweed-Auto-Submit: Alexei Frolov <frolv@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
GitOrigin-RevId: a704b20f1d7c883529c4b15363685dd3315889b2
diff --git a/.gn b/.gn
index 029b8b9..fe3439e 100644
--- a/.gn
+++ b/.gn
@@ -25,6 +25,9 @@
pw_build_TEST_TRANSITIVE_PYTHON_DEPS = false
+ # Don't allow a plain .options file extension for pwpb protos.
+ pw_protobuf_compiler_NO_GENERIC_OPTIONS_FILES = true
+
dir_pw_third_party_freertos = "//third_party/FreeRTOS"
dir_pw_third_party_stm32cube_f4 = "//third_party/stm32cube_f4"
PICO_SRC_DIR = "//third_party/pico_sdk"