aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-10-15 10:13:47 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2020-10-15 18:12:55 +0000
commitd49f8fe3f361432726900a86e3774697da981e80 (patch)
tree3e21c9b80a56dfc02a1e10b3fb7204550d0b81be
parenta0f0ba8bced5b939b86a86f4b8e7b0127f190e5c (diff)
downloadpigweed-d49f8fe3f361432726900a86e3774697da981e80.tar.gz
BUILD.gn files: Improve import formatting
The "# gn-format disable" comments are no longer necessary. Delete these comments and reformat with a Vim macro and gn format. Change-Id: Ia62c40ad73eef91187d0d443d6e3b0fa723e5aa9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21380 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
-rw-r--r--BUILD.gn1
-rw-r--r--docker/BUILD.gn2
-rw-r--r--docs/BUILD.gn2
-rw-r--r--pw_allocator/BUILD.gn2
-rw-r--r--pw_arduino_build/BUILD.gn2
-rw-r--r--pw_arduino_build/arduino.gni2
-rw-r--r--pw_assert/BUILD.gn2
-rw-r--r--pw_assert_basic/BUILD.gn2
-rw-r--r--pw_assert_log/BUILD.gn2
-rw-r--r--pw_base64/BUILD.gn2
-rw-r--r--pw_bloat/BUILD.gn2
-rw-r--r--pw_bloat/bloat.gni2
-rw-r--r--pw_bloat/examples/BUILD.gn2
-rw-r--r--pw_blob_store/BUILD.gn2
-rw-r--r--pw_boot_armv7m/BUILD.gn2
-rw-r--r--pw_build/BUILD.gn2
-rw-r--r--pw_build/defaults.gni2
-rw-r--r--pw_build/facade.gni2
-rw-r--r--pw_build/linker_script.gni1
-rw-r--r--pw_build/python_script.gni1
-rw-r--r--pw_build/python_wheels.gni1
-rw-r--r--pw_build/target_types.gni3
-rw-r--r--pw_build/zip.gni1
-rw-r--r--pw_bytes/BUILD.gn2
-rw-r--r--pw_bytes/size_report/BUILD.gn2
-rw-r--r--pw_checksum/BUILD.gn2
-rw-r--r--pw_cli/BUILD.gn2
-rw-r--r--pw_containers/BUILD.gn2
-rw-r--r--pw_cpu_exception/BUILD.gn2
-rw-r--r--pw_cpu_exception_armv7m/BUILD.gn2
-rw-r--r--pw_docgen/BUILD.gn2
-rw-r--r--pw_docgen/docs.gni2
-rw-r--r--pw_doctor/BUILD.gn2
-rw-r--r--pw_env_setup/BUILD.gn2
-rw-r--r--pw_fuzzer/BUILD.gn2
-rw-r--r--pw_fuzzer/fuzzer.gni1
-rw-r--r--pw_hdlc_lite/BUILD.gn2
-rw-r--r--pw_hdlc_lite/rpc_example/BUILD.gn2
-rw-r--r--pw_hex_dump/BUILD.gn2
-rw-r--r--pw_kvs/BUILD.gn2
-rw-r--r--pw_log/BUILD.gn2
-rw-r--r--pw_log_basic/BUILD.gn2
-rw-r--r--pw_log_null/BUILD.gn2
-rw-r--r--pw_log_rpc/BUILD.gn2
-rw-r--r--pw_log_tokenized/BUILD.gn2
-rw-r--r--pw_malloc/BUILD.gn2
-rw-r--r--pw_malloc_freelist/BUILD.gn4
-rw-r--r--pw_metric/BUILD.gn2
-rw-r--r--pw_metric/size_report/BUILD.gn2
-rw-r--r--pw_minimal_cpp_stdlib/BUILD.gn2
-rw-r--r--pw_module/BUILD.gn2
-rw-r--r--pw_polyfill/BUILD.gn2
-rw-r--r--pw_preprocessor/BUILD.gn2
-rw-r--r--pw_presubmit/BUILD.gn2
-rw-r--r--pw_protobuf/BUILD.gn2
-rw-r--r--pw_protobuf/size_report/BUILD.gn2
-rw-r--r--pw_protobuf_compiler/BUILD.gn2
-rw-r--r--pw_protobuf_compiler/proto.gni2
-rw-r--r--pw_random/BUILD.gn2
-rw-r--r--pw_result/BUILD.gn2
-rw-r--r--pw_result/size_report/BUILD.gn2
-rw-r--r--pw_ring_buffer/BUILD.gn2
-rw-r--r--pw_rpc/BUILD.gn2
-rw-r--r--pw_rpc/nanopb/BUILD.gn2
-rw-r--r--pw_rpc/size_report/BUILD.gn2
-rw-r--r--pw_span/BUILD.gn2
-rw-r--r--pw_status/BUILD.gn2
-rw-r--r--pw_stream/BUILD.gn2
-rw-r--r--pw_string/BUILD.gn2
-rw-r--r--pw_string/size_report/BUILD.gn2
-rw-r--r--pw_sys_io/BUILD.gn2
-rw-r--r--pw_sys_io_arduino/BUILD.gn2
-rw-r--r--pw_sys_io_baremetal_lm3s6965evb/BUILD.gn2
-rw-r--r--pw_sys_io_baremetal_stm32f429/BUILD.gn2
-rw-r--r--pw_sys_io_stdio/BUILD.gn2
-rw-r--r--pw_target_runner/BUILD.gn2
-rw-r--r--pw_target_runner/go/BUILD.gn2
-rw-r--r--pw_target_runner/go/src/pigweed.dev/pw_target_runner/BUILD.gn2
-rw-r--r--pw_target_runner/go/src/pigweed.dev/pw_target_runner_client/BUILD.gn2
-rw-r--r--pw_target_runner/go/src/pigweed.dev/pw_target_runner_server/BUILD.gn2
-rw-r--r--pw_tokenizer/BUILD.gn2
-rw-r--r--pw_tokenizer/database.gni1
-rw-r--r--pw_tokenizer/docs.rst1
-rw-r--r--pw_toolchain/BUILD.gn1
-rw-r--r--pw_toolchain/arm_gcc/BUILD.gn1
-rw-r--r--pw_toolchain/arm_gcc/toolchains.gni1
-rw-r--r--pw_toolchain/generate_toolchain.gni2
-rw-r--r--pw_toolchain/host_clang/BUILD.gn1
-rw-r--r--pw_toolchain/host_clang/toolchains.gni2
-rw-r--r--pw_toolchain/host_gcc/BUILD.gn1
-rw-r--r--pw_toolchain/host_gcc/toolchains.gni1
-rw-r--r--pw_trace/BUILD.gn2
-rw-r--r--pw_trace_tokenized/BUILD.gn2
-rw-r--r--pw_unit_test/BUILD.gn2
-rw-r--r--pw_unit_test/test.gni2
-rw-r--r--pw_varint/BUILD.gn2
-rw-r--r--pw_watch/BUILD.gn2
-rw-r--r--pw_web_ui/BUILD.gn2
-rw-r--r--targets/arduino/BUILD.gn2
-rw-r--r--targets/arduino/arduino_executable.gni1
-rw-r--r--targets/arduino/target_toolchains.gni2
-rw-r--r--targets/docs/BUILD.gn1
-rw-r--r--targets/host/BUILD.gn2
-rw-r--r--targets/host/target_toolchains.gni2
-rw-r--r--targets/lm3s6965evb-qemu/BUILD.gn2
-rw-r--r--targets/lm3s6965evb-qemu/lm3s6965evb_executable.gni1
-rw-r--r--targets/lm3s6965evb-qemu/target_toolchains.gni2
-rw-r--r--targets/stm32f429i-disc1/BUILD.gn2
-rw-r--r--targets/stm32f429i-disc1/stm32f429i_executable.gni1
-rw-r--r--targets/stm32f429i-disc1/target_toolchains.gni2
-rw-r--r--third_party/arduino/BUILD.gn2
-rw-r--r--third_party/nanopb/BUILD.gn1
112 files changed, 95 insertions, 113 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 58f830433..d0641df0d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
diff --git a/docker/BUILD.gn b/docker/BUILD.gn
index 601472c3d..dd021e82f 100644
--- a/docker/BUILD.gn
+++ b/docker/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/docs/BUILD.gn b/docs/BUILD.gn
index 532943ead..cc63f0652 100644
--- a/docs/BUILD.gn
+++ b/docs/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("core_docs") {
inputs = [
"images/pw_env_setup_demo.gif",
diff --git a/pw_allocator/BUILD.gn b/pw_allocator/BUILD.gn
index 6b22f807f..6e8ee541b 100644
--- a/pw_allocator/BUILD.gn
+++ b/pw_allocator/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
declare_args() {
pw_allocator_POISON_HEAP = false
}
diff --git a/pw_arduino_build/BUILD.gn b/pw_arduino_build/BUILD.gn
index 87b3881bc..5556dc590 100644
--- a/pw_arduino_build/BUILD.gn
+++ b/pw_arduino_build/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
declare_args() {
# Backend for the pw_arduino_init module.
pw_arduino_build_INIT_BACKEND = ""
diff --git a/pw_arduino_build/arduino.gni b/pw_arduino_build/arduino.gni
index 8c89202cd..0fd4c3cdf 100644
--- a/pw_arduino_build/arduino.gni
+++ b/pw_arduino_build/arduino.gni
@@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
+
declare_args() {
# Enable/disable Arduino builds via group("arduino").
# Set to the full path of ./third_party/arduino
diff --git a/pw_assert/BUILD.gn b/pw_assert/BUILD.gn
index c9ba26121..084aa00be 100644
--- a/pw_assert/BUILD.gn
+++ b/pw_assert/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
declare_args() {
# Backend for the pw_assert module.
pw_assert_BACKEND = ""
diff --git a/pw_assert_basic/BUILD.gn b/pw_assert_basic/BUILD.gn
index 0a64365de..a43c95ca9 100644
--- a/pw_assert_basic/BUILD.gn
+++ b/pw_assert_basic/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_assert_log/BUILD.gn b/pw_assert_log/BUILD.gn
index 41a207c2c..2f70f671d 100644
--- a/pw_assert_log/BUILD.gn
+++ b/pw_assert_log/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_base64/BUILD.gn b/pw_base64/BUILD.gn
index 286edb689..006b427ac 100644
--- a/pw_base64/BUILD.gn
+++ b/pw_base64/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_bloat/BUILD.gn b/pw_bloat/BUILD.gn
index 72b55f51e..9c6d12350 100644
--- a/pw_bloat/BUILD.gn
+++ b/pw_bloat/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("bloat.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_bloat/bloat.gni b/pw_bloat/bloat.gni
index 8b5436a65..0288f194a 100644
--- a/pw_bloat/bloat.gni
+++ b/pw_bloat/bloat.gni
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
+
declare_args() {
# Path to the Bloaty configuration file that defines the memory layout and
# capacities for the target binaries.
diff --git a/pw_bloat/examples/BUILD.gn b/pw_bloat/examples/BUILD.gn
index 3d59c1f78..fc4fcc2d4 100644
--- a/pw_bloat/examples/BUILD.gn
+++ b/pw_bloat/examples/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("../bloat.gni")
+
pw_toolchain_size_report("simple_bloat_loop") {
base_executable = {
sources = [ "simple_base.cc" ]
diff --git a/pw_blob_store/BUILD.gn b/pw_blob_store/BUILD.gn
index d6274c6ec..e6c9311b0 100644
--- a/pw_blob_store/BUILD.gn
+++ b/pw_blob_store/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_boot_armv7m/BUILD.gn b/pw_boot_armv7m/BUILD.gn
index 4fd23714a..8b99407e9 100644
--- a/pw_boot_armv7m/BUILD.gn
+++ b/pw_boot_armv7m/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/linker_script.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
declare_args() {
# TODO(frolv): Move this into pw_boot module when it is created.
pw_boot_BACKEND = ""
diff --git a/pw_build/BUILD.gn b/pw_build/BUILD.gn
index cf6101029..bf02719ab 100644
--- a/pw_build/BUILD.gn
+++ b/pw_build/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
config("colorize_output") {
cflags = [
# Colorize output. Ninja's Clang invocation disables color by default.
diff --git a/pw_build/defaults.gni b/pw_build/defaults.gni
index 5c2077e0b..6d341e721 100644
--- a/pw_build/defaults.gni
+++ b/pw_build/defaults.gni
@@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
+
declare_args() {
# Default configs and dependencies targets provided by the toolchain. These
# are applied to all of the pw_* target types. They are set from a toolchain's
diff --git a/pw_build/facade.gni b/pw_build/facade.gni
index a5a51593a..0dc4ddc3f 100644
--- a/pw_build/facade.gni
+++ b/pw_build/facade.gni
@@ -11,7 +11,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
+
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
diff --git a/pw_build/linker_script.gni b/pw_build/linker_script.gni
index 47dfd8f8e..8c7ec55d4 100644
--- a/pw_build/linker_script.gni
+++ b/pw_build/linker_script.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/exec.gni")
diff --git a/pw_build/python_script.gni b/pw_build/python_script.gni
index 891379e76..1af9464a6 100644
--- a/pw_build/python_script.gni
+++ b/pw_build/python_script.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Defines an action to run a Python script.
diff --git a/pw_build/python_wheels.gni b/pw_build/python_wheels.gni
index 206831ef7..2cd781eac 100644
--- a/pw_build/python_wheels.gni
+++ b/pw_build/python_wheels.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
diff --git a/pw_build/target_types.gni b/pw_build/target_types.gni
index 80ffd2a84..a451cb2e6 100644
--- a/pw_build/target_types.gni
+++ b/pw_build/target_types.gni
@@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
+
declare_args() {
# The name of the GN target type used to build Pigweed executables.
#
@@ -186,6 +186,7 @@ template("pw_executable") {
target(pw_build_EXECUTABLE_TARGET_TYPE, target_name) {
import("$dir_pw_build/defaults.gni")
+
forward_variables_from(invoker, "*", _supported_toolchain_defaults)
if (!defined(configs)) {
diff --git a/pw_build/zip.gni b/pw_build/zip.gni
index 2d0360353..bb79e3c1f 100644
--- a/pw_build/zip.gni
+++ b/pw_build/zip.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable.
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
diff --git a/pw_bytes/BUILD.gn b/pw_bytes/BUILD.gn
index 84448c8bb..d088fe44a 100644
--- a/pw_bytes/BUILD.gn
+++ b/pw_bytes/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_bytes/size_report/BUILD.gn b/pw_bytes/size_report/BUILD.gn
index c70b201c0..37aac05bf 100644
--- a/pw_bytes/size_report/BUILD.gn
+++ b/pw_bytes/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+
pw_executable("with_byte_builder") {
sources = [ "byte_builder_size_report.cc" ]
deps = [ ".." ]
diff --git a/pw_checksum/BUILD.gn b/pw_checksum/BUILD.gn
index 69e40f3b0..59f85dbcd 100644
--- a/pw_checksum/BUILD.gn
+++ b/pw_checksum/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_cli/BUILD.gn b/pw_cli/BUILD.gn
index 601472c3d..dd021e82f 100644
--- a/pw_cli/BUILD.gn
+++ b/pw_cli/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_containers/BUILD.gn b/pw_containers/BUILD.gn
index 0b7e768db..a7d79b7a0 100644
--- a/pw_containers/BUILD.gn
+++ b/pw_containers/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_cpu_exception/BUILD.gn b/pw_cpu_exception/BUILD.gn
index 435781d6c..58879fc08 100644
--- a/pw_cpu_exception/BUILD.gn
+++ b/pw_cpu_exception/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_docgen/docs.gni")
import("backend.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_cpu_exception_armv7m/BUILD.gn b/pw_cpu_exception_armv7m/BUILD.gn
index 54cf84109..5a97e5797 100644
--- a/pw_cpu_exception_armv7m/BUILD.gn
+++ b/pw_cpu_exception_armv7m/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_docgen/BUILD.gn b/pw_docgen/BUILD.gn
index 43d6db4b2..0aaa8cdf0 100644
--- a/pw_docgen/BUILD.gn
+++ b/pw_docgen/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_docgen/docs.gni b/pw_docgen/docs.gni
index 194c4a96d..fc55355bd 100644
--- a/pw_docgen/docs.gni
+++ b/pw_docgen/docs.gni
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/input_group.gni")
import("$dir_pw_build/python_script.gni")
+
declare_args() {
# Whether or not the current target should build docs.
pw_docgen_BUILD_DOCS = false
diff --git a/pw_doctor/BUILD.gn b/pw_doctor/BUILD.gn
index 4ad8f5042..09696722b 100644
--- a/pw_doctor/BUILD.gn
+++ b/pw_doctor/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_env_setup/BUILD.gn b/pw_env_setup/BUILD.gn
index c271815be..22329887a 100644
--- a/pw_env_setup/BUILD.gn
+++ b/pw_env_setup/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
inputs = [ "doc_resources/pw_env_setup_output.png" ]
sources = [ "docs.rst" ]
diff --git a/pw_fuzzer/BUILD.gn b/pw_fuzzer/BUILD.gn
index bacee77a9..264033b00 100644
--- a/pw_fuzzer/BUILD.gn
+++ b/pw_fuzzer/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_fuzzer/fuzzer.gni")
import("$dir_pw_fuzzer/oss_fuzz.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_fuzzer/fuzzer.gni b/pw_fuzzer/fuzzer.gni
index fd193085b..4a6fbf438 100644
--- a/pw_fuzzer/fuzzer.gni
+++ b/pw_fuzzer/fuzzer.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_toolchain/host_clang/toolchains.gni")
diff --git a/pw_hdlc_lite/BUILD.gn b/pw_hdlc_lite/BUILD.gn
index 8165eb886..5bcf447cc 100644
--- a/pw_hdlc_lite/BUILD.gn
+++ b/pw_hdlc_lite/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_hdlc_lite/rpc_example/BUILD.gn b/pw_hdlc_lite/rpc_example/BUILD.gn
index 78bb9b7cf..375021f4c 100644
--- a/pw_hdlc_lite/rpc_example/BUILD.gn
+++ b/pw_hdlc_lite/rpc_example/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
+
if (dir_pw_third_party_nanopb == "") {
group("rpc_example") {
}
diff --git a/pw_hex_dump/BUILD.gn b/pw_hex_dump/BUILD.gn
index 380dc21f5..2ad280e35 100644
--- a/pw_hex_dump/BUILD.gn
+++ b/pw_hex_dump/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_kvs/BUILD.gn b/pw_kvs/BUILD.gn
index 548bf9f3c..aa5bb5c95 100644
--- a/pw_kvs/BUILD.gn
+++ b/pw_kvs/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_log/BUILD.gn b/pw_log/BUILD.gn
index cc55db037..8aa9b439f 100644
--- a/pw_log/BUILD.gn
+++ b/pw_log/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
declare_args() {
# Backend for the pw_log module.
pw_log_BACKEND = ""
diff --git a/pw_log_basic/BUILD.gn b/pw_log_basic/BUILD.gn
index 84fad72c9..438eac98a 100644
--- a/pw_log_basic/BUILD.gn
+++ b/pw_log_basic/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_log_null/BUILD.gn b/pw_log_null/BUILD.gn
index 8fab30762..48a25f8c2 100644
--- a/pw_log_null/BUILD.gn
+++ b/pw_log_null/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("config") {
include_dirs = [
"public",
diff --git a/pw_log_rpc/BUILD.gn b/pw_log_rpc/BUILD.gn
index 924a3c39d..6cbaef138 100644
--- a/pw_log_rpc/BUILD.gn
+++ b/pw_log_rpc/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_log_tokenized/BUILD.gn b/pw_log_tokenized/BUILD.gn
index 8e72bf0c4..3de893c8f 100644
--- a/pw_log_tokenized/BUILD.gn
+++ b/pw_log_tokenized/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_tokenizer/backend.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_malloc/BUILD.gn b/pw_malloc/BUILD.gn
index f56a0fe97..5a700a8b1 100644
--- a/pw_malloc/BUILD.gn
+++ b/pw_malloc/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
@@ -20,6 +19,7 @@ import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_malloc/backend.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_malloc_freelist/BUILD.gn b/pw_malloc_freelist/BUILD.gn
index 2479f8b2c..027d23ef5 100644
--- a/pw_malloc_freelist/BUILD.gn
+++ b/pw_malloc_freelist/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
-import("$dir_pw_malloc/backend.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+import("$dir_pw_malloc/backend.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_metric/BUILD.gn b/pw_metric/BUILD.gn
index 8829e8da6..86b31ff2a 100644
--- a/pw_metric/BUILD.gn
+++ b/pw_metric/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
@@ -21,6 +20,7 @@ import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_metric/size_report/BUILD.gn b/pw_metric/size_report/BUILD.gn
index 90d7ef077..34c12acd7 100644
--- a/pw_metric/size_report/BUILD.gn
+++ b/pw_metric/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+
pw_executable("base") {
sources = [ "base.cc" ]
deps = [
diff --git a/pw_minimal_cpp_stdlib/BUILD.gn b/pw_minimal_cpp_stdlib/BUILD.gn
index 5f3a6ad26..332e18c5c 100644
--- a/pw_minimal_cpp_stdlib/BUILD.gn
+++ b/pw_minimal_cpp_stdlib/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("include_dirs") {
include_dirs = [ "public" ]
}
diff --git a/pw_module/BUILD.gn b/pw_module/BUILD.gn
index 4ad8f5042..09696722b 100644
--- a/pw_module/BUILD.gn
+++ b/pw_module/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_polyfill/BUILD.gn b/pw_polyfill/BUILD.gn
index 73da37d0a..777429461 100644
--- a/pw_polyfill/BUILD.gn
+++ b/pw_polyfill/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("public") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_preprocessor/BUILD.gn b/pw_preprocessor/BUILD.gn
index 8c4c870ab..6f9a48fea 100644
--- a/pw_preprocessor/BUILD.gn
+++ b/pw_preprocessor/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_presubmit/BUILD.gn b/pw_presubmit/BUILD.gn
index d9f95ab20..35fa9ffe2 100644
--- a/pw_presubmit/BUILD.gn
+++ b/pw_presubmit/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
inputs = [
diff --git a/pw_protobuf/BUILD.gn b/pw_protobuf/BUILD.gn
index c4ee3ed9d..e83139a94 100644
--- a/pw_protobuf/BUILD.gn
+++ b/pw_protobuf/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/input_group.gni")
@@ -21,6 +20,7 @@ import("$dir_pw_docgen/docs.gni")
import("$dir_pw_fuzzer/fuzzer.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_protobuf/size_report/BUILD.gn b/pw_protobuf/size_report/BUILD.gn
index 9bccccdf0..4906c86ee 100644
--- a/pw_protobuf/size_report/BUILD.gn
+++ b/pw_protobuf/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
+
_decoder_full = {
deps = [
"$dir_pw_bloat:bloat_this_binary",
diff --git a/pw_protobuf_compiler/BUILD.gn b/pw_protobuf_compiler/BUILD.gn
index 4b3c483ca..793e0a70a 100644
--- a/pw_protobuf_compiler/BUILD.gn
+++ b/pw_protobuf_compiler/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/input_group.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_unit_test/test.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_protobuf_compiler/proto.gni b/pw_protobuf_compiler/proto.gni
index 7b32e80a5..7ba012847 100644
--- a/pw_protobuf_compiler/proto.gni
+++ b/pw_protobuf_compiler/proto.gni
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/input_group.gni")
import("$dir_pw_build/python_script.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
+
declare_args() {
# Generators with which to compile protobuf code. These are used by the
# pw_proto_library template to determine which build targets to create.
diff --git a/pw_random/BUILD.gn b/pw_random/BUILD.gn
index d9dc72a67..1328a055a 100644
--- a/pw_random/BUILD.gn
+++ b/pw_random/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_result/BUILD.gn b/pw_result/BUILD.gn
index db338ae42..31cd575de 100644
--- a/pw_result/BUILD.gn
+++ b/pw_result/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_result/size_report/BUILD.gn b/pw_result/size_report/BUILD.gn
index 34556d3ee..6e1d6d55f 100644
--- a/pw_result/size_report/BUILD.gn
+++ b/pw_result/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+
pw_executable("pointer_simple") {
sources = [ "pointer_simple.cc" ]
deps = [
diff --git a/pw_ring_buffer/BUILD.gn b/pw_ring_buffer/BUILD.gn
index 27a3fa81c..6c5a17bfa 100644
--- a/pw_ring_buffer/BUILD.gn
+++ b/pw_ring_buffer/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_rpc/BUILD.gn b/pw_rpc/BUILD.gn
index ae683af27..9fa3212ec 100644
--- a/pw_rpc/BUILD.gn
+++ b/pw_rpc/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
@@ -21,6 +20,7 @@ import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_rpc/nanopb/BUILD.gn b/pw_rpc/nanopb/BUILD.gn
index 3261e8a42..91e1872aa 100644
--- a/pw_rpc/nanopb/BUILD.gn
+++ b/pw_rpc/nanopb/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
import("$dir_pw_unit_test/test.gni")
+
config("public") {
include_dirs = [ "public" ]
visibility = [ ":*" ]
diff --git a/pw_rpc/size_report/BUILD.gn b/pw_rpc/size_report/BUILD.gn
index 195e2f4fc..07758afbf 100644
--- a/pw_rpc/size_report/BUILD.gn
+++ b/pw_rpc/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+
_deps = [
"$dir_pw_bloat:bloat_this_binary",
"..:server",
diff --git a/pw_span/BUILD.gn b/pw_span/BUILD.gn
index 11fd53f98..796fdaac5 100644
--- a/pw_span/BUILD.gn
+++ b/pw_span/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [
"public",
diff --git a/pw_status/BUILD.gn b/pw_status/BUILD.gn
index 2afa31653..c1d70868a 100644
--- a/pw_status/BUILD.gn
+++ b/pw_status/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_stream/BUILD.gn b/pw_stream/BUILD.gn
index 7db2a3552..cfd358308 100644
--- a/pw_stream/BUILD.gn
+++ b/pw_stream/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_string/BUILD.gn b/pw_string/BUILD.gn
index b1c910857..400fa489d 100644
--- a/pw_string/BUILD.gn
+++ b/pw_string/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_bloat/bloat.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_string/size_report/BUILD.gn b/pw_string/size_report/BUILD.gn
index 8307f8fd1..47d11c756 100644
--- a/pw_string/size_report/BUILD.gn
+++ b/pw_string/size_report/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
+
pw_executable("single_write_snprintf") {
sources = [ "format_single.cc" ]
deps = [
diff --git a/pw_sys_io/BUILD.gn b/pw_sys_io/BUILD.gn
index ce2b30f36..bdff7eb6a 100644
--- a/pw_sys_io/BUILD.gn
+++ b/pw_sys_io/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
declare_args() {
# Backend for the pw_sys_io module.
pw_sys_io_BACKEND = ""
diff --git a/pw_sys_io_arduino/BUILD.gn b/pw_sys_io_arduino/BUILD.gn
index 159d7d210..ee9b770b1 100644
--- a/pw_sys_io_arduino/BUILD.gn
+++ b/pw_sys_io_arduino/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_sys_io_baremetal_lm3s6965evb/BUILD.gn b/pw_sys_io_baremetal_lm3s6965evb/BUILD.gn
index 017be9391..5ff5e86cf 100644
--- a/pw_sys_io_baremetal_lm3s6965evb/BUILD.gn
+++ b/pw_sys_io_baremetal_lm3s6965evb/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_sys_io_baremetal_stm32f429/BUILD.gn b/pw_sys_io_baremetal_stm32f429/BUILD.gn
index 334bed09c..c611ccb8b 100644
--- a/pw_sys_io_baremetal_stm32f429/BUILD.gn
+++ b/pw_sys_io_baremetal_stm32f429/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_sys_io_stdio/BUILD.gn b/pw_sys_io_stdio/BUILD.gn
index d01b93e81..2a7c57845 100644
--- a/pw_sys_io_stdio/BUILD.gn
+++ b/pw_sys_io_stdio/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_source_set("pw_sys_io_stdio") {
deps = [
"$dir_pw_sys_io:default_putget_bytes",
diff --git a/pw_target_runner/BUILD.gn b/pw_target_runner/BUILD.gn
index 2aa53af40..6e67cbc59 100644
--- a/pw_target_runner/BUILD.gn
+++ b/pw_target_runner/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
group_deps = [ "go:docs" ]
diff --git a/pw_target_runner/go/BUILD.gn b/pw_target_runner/go/BUILD.gn
index 4b071f199..31be50ee3 100644
--- a/pw_target_runner/go/BUILD.gn
+++ b/pw_target_runner/go/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/go.gni")
import("$dir_pw_build/host_tool.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/pw_target_runner/go/src/pigweed.dev/pw_target_runner/BUILD.gn b/pw_target_runner/go/src/pigweed.dev/pw_target_runner/BUILD.gn
index 31619cfd7..746f5493a 100644
--- a/pw_target_runner/go/src/pigweed.dev/pw_target_runner/BUILD.gn
+++ b/pw_target_runner/go/src/pigweed.dev/pw_target_runner/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/go.gni")
+
pw_go_package("pw_target_runner") {
sources = [
"exec_runner.go",
diff --git a/pw_target_runner/go/src/pigweed.dev/pw_target_runner_client/BUILD.gn b/pw_target_runner/go/src/pigweed.dev/pw_target_runner_client/BUILD.gn
index f576b6e3a..4375e0c73 100644
--- a/pw_target_runner/go/src/pigweed.dev/pw_target_runner_client/BUILD.gn
+++ b/pw_target_runner/go/src/pigweed.dev/pw_target_runner_client/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/go.gni")
+
pw_go_package("pw_target_runner_client") {
sources = [ "main.go" ]
deps = [ "$dir_pw_target_runner:target_runner_proto_go" ]
diff --git a/pw_target_runner/go/src/pigweed.dev/pw_target_runner_server/BUILD.gn b/pw_target_runner/go/src/pigweed.dev/pw_target_runner_server/BUILD.gn
index cf1ea2a2f..ac2c4cc40 100644
--- a/pw_target_runner/go/src/pigweed.dev/pw_target_runner_server/BUILD.gn
+++ b/pw_target_runner/go/src/pigweed.dev/pw_target_runner_server/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/go.gni")
+
pw_go_package("pw_target_runner_server") {
sources = [ "main.go" ]
deps = [
diff --git a/pw_tokenizer/BUILD.gn b/pw_tokenizer/BUILD.gn
index 6250372ce..41430c3b9 100644
--- a/pw_tokenizer/BUILD.gn
+++ b/pw_tokenizer/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
@@ -22,6 +21,7 @@ import("$dir_pw_docgen/docs.gni")
import("$dir_pw_fuzzer/fuzzer.gni")
import("$dir_pw_unit_test/test.gni")
import("backend.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_tokenizer/database.gni b/pw_tokenizer/database.gni
index c7b46f9d1..140ec4d8b 100644
--- a/pw_tokenizer/database.gni
+++ b/pw_tokenizer/database.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
diff --git a/pw_tokenizer/docs.rst b/pw_tokenizer/docs.rst
index bff0fe166..83d398771 100644
--- a/pw_tokenizer/docs.rst
+++ b/pw_tokenizer/docs.rst
@@ -523,7 +523,6 @@ referenced with specific toolchains.
.. code-block::
- # gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_tokenizer/database.gni")
diff --git a/pw_toolchain/BUILD.gn b/pw_toolchain/BUILD.gn
index 314f33591..0ac53a821 100644
--- a/pw_toolchain/BUILD.gn
+++ b/pw_toolchain/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
diff --git a/pw_toolchain/arm_gcc/BUILD.gn b/pw_toolchain/arm_gcc/BUILD.gn
index 1fafdf98a..852f06ae6 100644
--- a/pw_toolchain/arm_gcc/BUILD.gn
+++ b/pw_toolchain/arm_gcc/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Disable obnoxious ABI warning.
diff --git a/pw_toolchain/arm_gcc/toolchains.gni b/pw_toolchain/arm_gcc/toolchains.gni
index bf7dc25ab..68bcdc1f0 100644
--- a/pw_toolchain/arm_gcc/toolchains.gni
+++ b/pw_toolchain/arm_gcc/toolchains.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Specifies the tools used by ARM GCC toolchains.
diff --git a/pw_toolchain/generate_toolchain.gni b/pw_toolchain/generate_toolchain.gni
index 38c3340f3..7f3154113 100644
--- a/pw_toolchain/generate_toolchain.gni
+++ b/pw_toolchain/generate_toolchain.gni
@@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
+
declare_args() {
# Scope defining the current toolchain. Contains all of the arguments required
# by the generate_toolchain template.
diff --git a/pw_toolchain/host_clang/BUILD.gn b/pw_toolchain/host_clang/BUILD.gn
index f2bf6f651..4e4ddb733 100644
--- a/pw_toolchain/host_clang/BUILD.gn
+++ b/pw_toolchain/host_clang/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# See https://github.com/google/sanitizers
diff --git a/pw_toolchain/host_clang/toolchains.gni b/pw_toolchain/host_clang/toolchains.gni
index d49d4443d..b4569abb0 100644
--- a/pw_toolchain/host_clang/toolchains.gni
+++ b/pw_toolchain/host_clang/toolchains.gni
@@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
+
declare_args() {
# Sets the sanitizer to pass to clang. Valid values are those for "-fsanitize"
# listed in https://clang.llvm.org/docs/UsersManual.html#id9.
diff --git a/pw_toolchain/host_gcc/BUILD.gn b/pw_toolchain/host_gcc/BUILD.gn
index 230f3fd3b..e0cdbf142 100644
--- a/pw_toolchain/host_gcc/BUILD.gn
+++ b/pw_toolchain/host_gcc/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Disable obnoxious ABI warning.
diff --git a/pw_toolchain/host_gcc/toolchains.gni b/pw_toolchain/host_gcc/toolchains.gni
index 27042f0bd..66144bbc2 100644
--- a/pw_toolchain/host_gcc/toolchains.gni
+++ b/pw_toolchain/host_gcc/toolchains.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Specifies the tools used by host GCC toolchains.
diff --git a/pw_trace/BUILD.gn b/pw_trace/BUILD.gn
index b71fb8274..25111d205 100644
--- a/pw_trace/BUILD.gn
+++ b/pw_trace/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
declare_args() {
# Backend for the pw_trace module.
pw_trace_BACKEND = ""
diff --git a/pw_trace_tokenized/BUILD.gn b/pw_trace_tokenized/BUILD.gn
index d0af5beda..1944ae037 100644
--- a/pw_trace_tokenized/BUILD.gn
+++ b/pw_trace_tokenized/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
declare_args() {
# Tokenizer trace time, gets included if provided
pw_trace_tokenizer_time = ""
diff --git a/pw_unit_test/BUILD.gn b/pw_unit_test/BUILD.gn
index 08eae47c2..c4494ae5b 100644
--- a/pw_unit_test/BUILD.gn
+++ b/pw_unit_test/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [
"public",
diff --git a/pw_unit_test/test.gni b/pw_unit_test/test.gni
index d7d2417d7..a0b13eab0 100644
--- a/pw_unit_test/test.gni
+++ b/pw_unit_test/test.gni
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/python_script.gni")
import("$dir_pw_build/target_types.gni")
+
declare_args() {
# Path to a test runner to automatically run unit tests after they are built.
#
diff --git a/pw_varint/BUILD.gn b/pw_varint/BUILD.gn
index 5b55b7b32..2f06bacd4 100644
--- a/pw_varint/BUILD.gn
+++ b/pw_varint/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_unit_test/test.gni")
+
config("default_config") {
include_dirs = [ "public" ]
}
diff --git a/pw_watch/BUILD.gn b/pw_watch/BUILD.gn
index 3ba75f4c5..c0c998808 100644
--- a/pw_watch/BUILD.gn
+++ b/pw_watch/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
inputs = [ "doc_resources/pw_watch_on_device_demo.gif" ]
sources = [ "docs.rst" ]
diff --git a/pw_web_ui/BUILD.gn b/pw_web_ui/BUILD.gn
index 601472c3d..dd021e82f 100644
--- a/pw_web_ui/BUILD.gn
+++ b/pw_web_ui/BUILD.gn
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
+
pw_doc_group("docs") {
sources = [ "docs.rst" ]
}
diff --git a/targets/arduino/BUILD.gn b/targets/arduino/BUILD.gn
index 24376edbd..06f8318d4 100644
--- a/targets/arduino/BUILD.gn
+++ b/targets/arduino/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
@@ -25,6 +24,7 @@ pw_doc_group("target_docs") {
if (dir_pw_third_party_arduino != "") {
import("target_toolchains.gni")
+
generate_toolchains("target_toolchains") {
toolchains = pw_target_toolchain_arduino_list
}
diff --git a/targets/arduino/arduino_executable.gni b/targets/arduino/arduino_executable.gni
index 542030174..a14da1722 100644
--- a/targets/arduino/arduino_executable.gni
+++ b/targets/arduino/arduino_executable.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_malloc/backend.gni")
diff --git a/targets/arduino/target_toolchains.gni b/targets/arduino/target_toolchains.gni
index 5d97dab06..e06725b5f 100644
--- a/targets/arduino/target_toolchains.gni
+++ b/targets/arduino/target_toolchains.gni
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_toolchain/arm_gcc/toolchains.gni")
+
declare_args() {
# Enable the pw_target_runner for on-device testing.
pw_arduino_use_test_server = false
diff --git a/targets/docs/BUILD.gn b/targets/docs/BUILD.gn
index ec19cf1f7..c82345fbb 100644
--- a/targets/docs/BUILD.gn
+++ b/targets/docs/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pigweed/targets/stm32f429i-disc1/target_toolchains.gni")
diff --git a/targets/host/BUILD.gn b/targets/host/BUILD.gn
index a29795a45..801ef9f7c 100644
--- a/targets/host/BUILD.gn
+++ b/targets/host/BUILD.gn
@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_toolchain/generate_toolchain.gni")
import("target_toolchains.gni")
+
generate_toolchains("host_toolchains") {
toolchains = pw_target_toolchain_host_list
}
diff --git a/targets/host/target_toolchains.gni b/targets/host/target_toolchains.gni
index f8b111741..42fd18c36 100644
--- a/targets/host/target_toolchains.gni
+++ b/targets/host/target_toolchains.gni
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_protobuf_compiler/proto.gni")
import("$dir_pw_third_party/nanopb/nanopb.gni")
import("$dir_pw_toolchain/host_clang/toolchains.gni")
import("$dir_pw_toolchain/host_gcc/toolchains.gni")
+
_host_common = {
# Use logging-based test output on host.
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
diff --git a/targets/lm3s6965evb-qemu/BUILD.gn b/targets/lm3s6965evb-qemu/BUILD.gn
index f207068ea..beb52f3ca 100644
--- a/targets/lm3s6965evb-qemu/BUILD.gn
+++ b/targets/lm3s6965evb-qemu/BUILD.gn
@@ -12,13 +12,13 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
import("$dir_pw_toolchain/generate_toolchain.gni")
import("target_toolchains.gni")
+
generate_toolchains("target_toolchains") {
toolchains = pw_target_toolchain_lm3s6965evb_qemu_list
}
diff --git a/targets/lm3s6965evb-qemu/lm3s6965evb_executable.gni b/targets/lm3s6965evb-qemu/lm3s6965evb_executable.gni
index 347aff575..70a87cb20 100644
--- a/targets/lm3s6965evb-qemu/lm3s6965evb_executable.gni
+++ b/targets/lm3s6965evb-qemu/lm3s6965evb_executable.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
# Executable wrapper that includes some baremetal startup code.
diff --git a/targets/lm3s6965evb-qemu/target_toolchains.gni b/targets/lm3s6965evb-qemu/target_toolchains.gni
index d2d2d021c..64c1903e3 100644
--- a/targets/lm3s6965evb-qemu/target_toolchains.gni
+++ b/targets/lm3s6965evb-qemu/target_toolchains.gni
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_toolchain/arm_gcc/toolchains.gni")
+
_test_runner_script = "py/lm3s6965evb_qemu_utils/unit_test_runner.py"
_target_config = {
diff --git a/targets/stm32f429i-disc1/BUILD.gn b/targets/stm32f429i-disc1/BUILD.gn
index c29c0a287..6b18a9e80 100644
--- a/targets/stm32f429i-disc1/BUILD.gn
+++ b/targets/stm32f429i-disc1/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")
@@ -20,6 +19,7 @@ import("$dir_pw_docgen/docs.gni")
import("$dir_pw_malloc/backend.gni")
import("$dir_pw_toolchain/generate_toolchain.gni")
import("target_toolchains.gni")
+
generate_toolchains("target_toolchains") {
toolchains = pw_target_toolchain_stm32f429i_disc1_list
}
diff --git a/targets/stm32f429i-disc1/stm32f429i_executable.gni b/targets/stm32f429i-disc1/stm32f429i_executable.gni
index b7b21a574..99190cc58 100644
--- a/targets/stm32f429i-disc1/stm32f429i_executable.gni
+++ b/targets/stm32f429i-disc1/stm32f429i_executable.gni
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_malloc/backend.gni")
diff --git a/targets/stm32f429i-disc1/target_toolchains.gni b/targets/stm32f429i-disc1/target_toolchains.gni
index 48f6edc66..b851e21c0 100644
--- a/targets/stm32f429i-disc1/target_toolchains.gni
+++ b/targets/stm32f429i-disc1/target_toolchains.gni
@@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_toolchain/arm_gcc/toolchains.gni")
+
declare_args() {
# Enable the pw_target_runner for on-device testing.
pw_use_test_server = false
diff --git a/third_party/arduino/BUILD.gn b/third_party/arduino/BUILD.gn
index 7894f35ac..f7a6f3d83 100644
--- a/third_party/arduino/BUILD.gn
+++ b/third_party/arduino/BUILD.gn
@@ -12,11 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_arduino_build/arduino.gni")
import("$dir_pw_build/target_types.gni")
+
if (dir_pw_third_party_arduino != "") {
pw_source_set("arduino_core_sources") {
remove_configs = [ "$dir_pw_build:strict_warnings" ]
diff --git a/third_party/nanopb/BUILD.gn b/third_party/nanopb/BUILD.gn
index 7d2a33ab7..1927ab1d3 100644
--- a/third_party/nanopb/BUILD.gn
+++ b/third_party/nanopb/BUILD.gn
@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations under
# the License.
-# gn-format disable
import("//build_overrides/pigweed.gni")
import("$dir_pw_build/target_types.gni")