GN build: Override built-in targets
- Override built-in targets, which gives more flexibility than
set_defaults.
- Provide the default C++ in the toolchain, which can be overridden by
explicitly specifying a config on a target.
- Remove the C++17 default flags from public configs, since it is no
longer needed.
Change-Id: If211bada971c46cef83909bf15811a4f2c1eb7fd
diff --git a/pw_tokenizer/BUILD.gn b/pw_tokenizer/BUILD.gn
index 897692f..2bf43fc 100644
--- a/pw_tokenizer/BUILD.gn
+++ b/pw_tokenizer/BUILD.gn
@@ -20,10 +20,7 @@
}
source_set("pw_tokenizer") {
- public_configs = [
- "$dir_pw_build:pw_default_cpp",
- ":default_config",
- ]
+ public_configs = [ ":default_config" ]
public_deps = [
"$dir_pw_preprocessor",
"$dir_pw_span",
@@ -54,10 +51,7 @@
}
source_set("base64") {
- public_configs = [
- "$dir_pw_build:pw_default_cpp",
- ":default_config",
- ]
+ public_configs = [ ":default_config" ]
public = [
"public/pw_tokenizer/base64.h",
]
@@ -72,10 +66,7 @@
}
source_set("decoder") {
- public_configs = [
- "$dir_pw_build:pw_default_cpp",
- ":default_config",
- ]
+ public_configs = [ ":default_config" ]
public_deps = [
"$dir_pw_span",
]
@@ -233,10 +224,7 @@
# the JNI headers must be available in the system or provided with the
# pw_java_native_interface_include_dirs variable.
shared_library("detokenizer_jni") {
- public_configs = [
- "$dir_pw_build:pw_default_cpp",
- ":default_config",
- ]
+ public_configs = [ ":default_config" ]
include_dirs = pw_java_native_interface_include_dirs
sources = [
"java/dev/pigweed/tokenizer/detokenizer.cc",