GN Templates: Move common_inherited_config to the template.

Remove common_inherited_config from the targets and add it to the
template instead.

BUG=webrtc:6187
NOTRY=True

Review-Url: https://codereview.webrtc.org/2311843002
Cr-Commit-Position: refs/heads/master@{#14069}
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 6c9be5f..7beca3f 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -45,7 +45,6 @@
     "codecs/audio_format.cc",
     "codecs/audio_format.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
   deps = [
     "../..:webrtc_common",
   ]
@@ -56,7 +55,6 @@
     "codecs/builtin_audio_decoder_factory.cc",
     "codecs/builtin_audio_decoder_factory.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
   deps = [
            "../..:webrtc_common",
            ":audio_decoder_factory_interface",
@@ -71,7 +69,6 @@
     "acm2/rent_a_codec.cc",
     "acm2/rent_a_codec.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
   deps = [ "../..:webrtc_common" ] + audio_codec_deps
   defines = audio_codec_defines
 }
@@ -103,10 +100,7 @@
 
   defines = []
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":audio_coding_config",
-  ]
+  public_configs = [ ":audio_coding_config" ]
 
   if (rtc_include_opus) {
     public_deps = [
@@ -134,7 +128,6 @@
     "codecs/audio_decoder.cc",
     "codecs/audio_decoder.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
   deps = [
     "../..:webrtc_common",
     "../../base:rtc_base_approved",
@@ -146,7 +139,6 @@
     "codecs/audio_encoder.cc",
     "codecs/audio_encoder.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
   deps = [
     "../..:webrtc_common",
     "../../base:rtc_base_approved",
@@ -168,10 +160,7 @@
     "codecs/cng/webrtc_cng.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":cng_config",
-  ]
+  public_configs = [ ":cng_config" ]
 
   deps = [
     ":audio_encoder_interface",
@@ -189,10 +178,7 @@
     "codecs/red/audio_encoder_copy_red.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":red_config",
-  ]
+  public_configs = [ ":red_config" ]
 
   deps = [
     ":audio_encoder_interface",
@@ -219,10 +205,7 @@
     "codecs/g711/g711_interface.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":g711_config",
-  ]
+  public_configs = [ ":g711_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -250,10 +233,7 @@
     "codecs/g722/g722_interface.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":g722_config",
-  ]
+  public_configs = [ ":g722_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -415,10 +395,7 @@
     "codecs/ilbc/xcorr_coef.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":ilbc_config",
-  ]
+  public_configs = [ ":ilbc_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -435,7 +412,6 @@
     "codecs/isac/locked_bandwidth_info.cc",
     "codecs/isac/locked_bandwidth_info.h",
   ]
-  public_configs = [ "../..:common_inherited_config" ]
 }
 
 config("isac_config") {
@@ -507,10 +483,7 @@
     libs = [ "m" ]
   }
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":isac_config",
-  ]
+  public_configs = [ ":isac_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -585,10 +558,7 @@
     defines = [ "WEBRTC_LINUX" ]
   }
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":isac_fix_config",
-  ]
+  public_configs = [ ":isac_fix_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -665,8 +635,6 @@
       ]
     }
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       "../../common_audio",
     ]
@@ -696,10 +664,7 @@
     ":g711",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":pcm16b_config",
-  ]
+  public_configs = [ ":pcm16b_config" ]
 }
 
 config("opus_config") {
@@ -724,8 +689,6 @@
   ]
 
   if (rtc_build_opus) {
-    public_configs = [ "../..:common_inherited_config" ]
-
     public_deps = [
       rtc_opus_dir,
     ]
@@ -819,10 +782,7 @@
     "neteq/timestamp_scaler.h",
   ]
 
-  public_configs = [
-    "../..:common_inherited_config",
-    ":neteq_config",
-  ]
+  public_configs = [ ":neteq_config" ]
 
   deps = [
     ":audio_decoder_interface",
@@ -867,8 +827,6 @@
       "acm2/acm_receive_test_oldapi.h",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     defines = audio_coding_defines
 
     deps = audio_coding_deps + [
@@ -885,8 +843,6 @@
       "acm2/acm_send_test_oldapi.h",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     defines = audio_coding_defines
 
     deps = audio_coding_deps + [
@@ -905,8 +861,6 @@
       "test/utility.cc",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":audio_coding",
       "../../:webrtc_common",
@@ -927,8 +881,6 @@
       "test/insert_packet_with_timing.cc",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     if (is_clang) {
       # Suppress warnings from Chrome's Clang plugins.
       # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
@@ -968,8 +920,6 @@
       "neteq/audio_decoder_unittest.cc",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     if (is_clang) {
       # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
       suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
@@ -1102,8 +1052,6 @@
       "neteq/tools/neteq_performance_test.h",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     if (is_clang) {
       # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
       suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
@@ -1125,8 +1073,6 @@
       "neteq/tools/neteq_quality_test.h",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     if (is_clang) {
       # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
       suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
@@ -1179,10 +1125,7 @@
       "neteq/tools/rtp_generator.h",
     ]
 
-    public_configs = [
-      "../..:common_inherited_config",
-      ":neteq_unittest_tools_config",
-    ]
+    public_configs = [ ":neteq_unittest_tools_config" ]
 
     if (is_clang) {
       # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
@@ -1520,8 +1463,6 @@
       "codecs/g711/test/testG711.cc",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":g711",
     ]
@@ -1534,8 +1475,6 @@
       "codecs/g722/test/testG722.cc",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":g722",
       "../..:webrtc_common",
@@ -1550,8 +1489,6 @@
       "codecs/isac/main/util/utility.c",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":isac",
       "../../base:rtc_base_approved",
@@ -1572,8 +1509,6 @@
       "codecs/isac/main/util/utility.c",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":isac",
     ]
@@ -1593,8 +1528,6 @@
       "codecs/ilbc/test/iLBC_test.c",
     ]
 
-    public_configs = [ "../..:common_inherited_config" ]
-
     deps = [
       ":ilbc",
     ]