OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done | 125 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done |
126 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must | 126 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must |
127 # only be initialized once. Projects that initialize FFmpeg externally, such | 127 # only be initialized once. Projects that initialize FFmpeg externally, such |
128 # as Chromium, must turn this flag off so that WebRTC does not also | 128 # as Chromium, must turn this flag off so that WebRTC does not also |
129 # initialize. | 129 # initialize. |
130 rtc_initialize_ffmpeg = !build_with_chromium | 130 rtc_initialize_ffmpeg = !build_with_chromium |
131 | 131 |
132 # Build sources requiring GTK. NOTICE: This is not present in Chrome OS | 132 # Build sources requiring GTK. NOTICE: This is not present in Chrome OS |
133 # build environments, even if available for Chromium builds. | 133 # build environments, even if available for Chromium builds. |
134 rtc_use_gtk = !build_with_chromium | 134 rtc_use_gtk = !build_with_chromium |
| 135 |
| 136 # Enable this to make all symbols visible when building static library |
| 137 # targets. |
| 138 rtc_override_visibility = false |
135 } | 139 } |
136 | 140 |
137 # A second declare_args block, so that declarations within it can | 141 # A second declare_args block, so that declarations within it can |
138 # depend on the possibly overridden variables in the first | 142 # depend on the possibly overridden variables in the first |
139 # declare_args block. | 143 # declare_args block. |
140 declare_args() { | 144 declare_args() { |
141 # Include the iLBC audio codec? | 145 # Include the iLBC audio codec? |
142 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) | 146 rtc_include_ilbc = !(build_with_chromium || build_with_mozilla) |
143 | 147 |
144 rtc_restrict_logging = build_with_chromium | 148 rtc_restrict_logging = build_with_chromium |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 209 } |
206 | 210 |
207 set_defaults("rtc_static_library") { | 211 set_defaults("rtc_static_library") { |
208 configs = rtc_add_configs | 212 configs = rtc_add_configs |
209 suppressed_configs = [] | 213 suppressed_configs = [] |
210 } | 214 } |
211 | 215 |
212 set_defaults("rtc_shared_library") { | 216 set_defaults("rtc_shared_library") { |
213 configs = rtc_add_configs | 217 configs = rtc_add_configs |
214 suppressed_configs = [] | 218 suppressed_configs = [] |
| 219 if (rtc_override_visibility) { |
| 220 configs += [ "//build/config/gcc:symbol_visibility_default" ] |
| 221 suppressed_configs += [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 222 } |
215 } | 223 } |
216 | 224 |
217 template("rtc_test") { | 225 template("rtc_test") { |
218 test(target_name) { | 226 test(target_name) { |
219 forward_variables_from(invoker, | 227 forward_variables_from(invoker, |
220 "*", | 228 "*", |
221 [ | 229 [ |
222 "configs", | 230 "configs", |
223 "public_configs", | 231 "public_configs", |
224 "suppressed_configs", | 232 "suppressed_configs", |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 ]) | 314 ]) |
307 configs += invoker.configs | 315 configs += invoker.configs |
308 configs -= rtc_remove_configs | 316 configs -= rtc_remove_configs |
309 configs -= invoker.suppressed_configs | 317 configs -= invoker.suppressed_configs |
310 public_configs = [ rtc_common_inherited_config ] | 318 public_configs = [ rtc_common_inherited_config ] |
311 if (defined(invoker.public_configs)) { | 319 if (defined(invoker.public_configs)) { |
312 public_configs += invoker.public_configs | 320 public_configs += invoker.public_configs |
313 } | 321 } |
314 } | 322 } |
315 } | 323 } |
OLD | NEW |