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/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
11 import("../build/webrtc.gni") | 11 import("../build/webrtc.gni") |
12 | 12 |
13 if (is_android) { | 13 if (is_android) { |
14 import("//build/config/android/config.gni") | 14 import("//build/config/android/config.gni") |
15 import("//build/config/android/rules.gni") | 15 import("//build/config/android/rules.gni") |
16 } | 16 } |
17 if (is_win) { | |
18 import("//build/config/win/visual_studio_version.gni") | |
19 } | |
17 | 20 |
18 config("rtc_base_approved_all_dependent_config") { | 21 config("rtc_base_approved_all_dependent_config") { |
19 if (is_mac && !build_with_chromium) { | 22 if (is_mac && !build_with_chromium) { |
20 libs = [ "Foundation.framework" ] # needed for logging_mac.mm | 23 libs = [ "Foundation.framework" ] # needed for logging_mac.mm |
21 } | 24 } |
22 } | 25 } |
23 | 26 |
24 config("rtc_base_config") { | 27 config("rtc_base_config") { |
25 defines = [ | 28 defines = [ |
26 "FEATURE_ENABLE_SSL", | 29 "FEATURE_ENABLE_SSL", |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 "../../webrtc_overrides/webrtc/base/logging.h", | 191 "../../webrtc_overrides/webrtc/base/logging.h", |
189 ] | 192 ] |
190 include_dirs = [ "../../webrtc_overrides" ] | 193 include_dirs = [ "../../webrtc_overrides" ] |
191 } else { | 194 } else { |
192 sources += [ | 195 sources += [ |
193 "logging.cc", | 196 "logging.cc", |
194 "logging.h", | 197 "logging.h", |
195 "logging_mac.mm", | 198 "logging_mac.mm", |
196 ] | 199 ] |
197 } | 200 } |
201 if (is_component_build && is_win) { | |
202 # Copy the VS runtime DLLs into the isolate so that they don't have to be | |
203 # preinstalled on the target machine. The debug runtimes have a "d" at | |
204 # the end. | |
205 # This is a copy of https://codereview.chromium.org/1783973002. | |
206 # TODO(ehmaldonado): We'd like Chromium to make this changes easier to use, | |
207 # so we don't have to copy their changes and risk breakages. | |
208 # See http://crbug.com/653569 | |
209 if (is_debug) { | |
210 vcrt_suffix = "d" | |
211 } else { | |
212 vcrt_suffix = "" | |
213 } | |
214 | |
215 # These runtime files are copied to the output directory by the | |
216 # vs_toolchain script that runs as part of toolchain configuration. | |
217 if (visual_studio_version == "2015") { | |
218 data = [ | |
219 "$root_out_dir/msvcp140${vcrt_suffix}.dll", | |
220 "$root_out_dir/vccorlib140${vcrt_suffix}.dll", | |
221 "$root_out_dir/vcruntime140${vcrt_suffix}.dll", | |
222 | |
223 # Universal Windows 10 CRT files | |
224 "$root_out_dir/api-ms-win-core-console-l1-1-0.dll", | |
225 "$root_out_dir/api-ms-win-core-datetime-l1-1-0.dll", | |
226 "$root_out_dir/api-ms-win-core-debug-l1-1-0.dll", | |
227 "$root_out_dir/api-ms-win-core-errorhandling-l1-1-0.dll", | |
228 "$root_out_dir/api-ms-win-core-file-l1-1-0.dll", | |
229 "$root_out_dir/api-ms-win-core-file-l1-2-0.dll", | |
230 "$root_out_dir/api-ms-win-core-file-l2-1-0.dll", | |
231 "$root_out_dir/api-ms-win-core-handle-l1-1-0.dll", | |
232 "$root_out_dir/api-ms-win-core-heap-l1-1-0.dll", | |
233 "$root_out_dir/api-ms-win-core-interlocked-l1-1-0.dll", | |
234 "$root_out_dir/api-ms-win-core-libraryloader-l1-1-0.dll", | |
235 "$root_out_dir/api-ms-win-core-localization-l1-2-0.dll", | |
236 "$root_out_dir/api-ms-win-core-memory-l1-1-0.dll", | |
237 "$root_out_dir/api-ms-win-core-namedpipe-l1-1-0.dll", | |
238 "$root_out_dir/api-ms-win-core-processenvironment-l1-1-0.dll", | |
239 "$root_out_dir/api-ms-win-core-processthreads-l1-1-0.dll", | |
240 "$root_out_dir/api-ms-win-core-processthreads-l1-1-1.dll", | |
241 "$root_out_dir/api-ms-win-core-profile-l1-1-0.dll", | |
242 "$root_out_dir/api-ms-win-core-rtlsupport-l1-1-0.dll", | |
243 "$root_out_dir/api-ms-win-core-string-l1-1-0.dll", | |
244 "$root_out_dir/api-ms-win-core-synch-l1-1-0.dll", | |
245 "$root_out_dir/api-ms-win-core-synch-l1-2-0.dll", | |
246 "$root_out_dir/api-ms-win-core-sysinfo-l1-1-0.dll", | |
247 "$root_out_dir/api-ms-win-core-timezone-l1-1-0.dll", | |
248 "$root_out_dir/api-ms-win-core-util-l1-1-0.dll", | |
249 "$root_out_dir/api-ms-win-crt-conio-l1-1-0.dll", | |
250 "$root_out_dir/api-ms-win-crt-convert-l1-1-0.dll", | |
251 "$root_out_dir/api-ms-win-crt-environment-l1-1-0.dll", | |
252 "$root_out_dir/api-ms-win-crt-filesystem-l1-1-0.dll", | |
253 "$root_out_dir/api-ms-win-crt-heap-l1-1-0.dll", | |
254 "$root_out_dir/api-ms-win-crt-locale-l1-1-0.dll", | |
255 "$root_out_dir/api-ms-win-crt-math-l1-1-0.dll", | |
256 "$root_out_dir/api-ms-win-crt-multibyte-l1-1-0.dll", | |
257 "$root_out_dir/api-ms-win-crt-private-l1-1-0.dll", | |
258 "$root_out_dir/api-ms-win-crt-process-l1-1-0.dll", | |
259 "$root_out_dir/api-ms-win-crt-runtime-l1-1-0.dll", | |
260 "$root_out_dir/api-ms-win-crt-stdio-l1-1-0.dll", | |
261 "$root_out_dir/api-ms-win-crt-string-l1-1-0.dll", | |
262 "$root_out_dir/api-ms-win-crt-time-l1-1-0.dll", | |
263 "$root_out_dir/api-ms-win-crt-utility-l1-1-0.dll", | |
264 "$root_out_dir/ucrtbase${vcrt_suffix}.dll", | |
265 ] | |
266 } else { | |
267 data = [ | |
268 "$root_out_dir/msvcp120${vcrt_suffix}.dll", | |
269 "$root_out_dir/msvcr120${vcrt_suffix}.dll", | |
270 ] | |
271 } | |
272 if (is_asan) { | |
273 if (current_cpu == "x64") { | |
274 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r t.asan_dynamic-x86_64.dll" ] | |
Nico
2016/10/17 15:32:24
you need to import build/config/clang/clang.gni at
| |
275 } else { | |
276 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r t.asan_dynamic-i386.dll" ] | |
277 } | |
278 } | |
279 } | |
198 } | 280 } |
199 | 281 |
200 config("enable_libevent_config") { | 282 config("enable_libevent_config") { |
201 defines = [ "WEBRTC_BUILD_LIBEVENT" ] | 283 defines = [ "WEBRTC_BUILD_LIBEVENT" ] |
202 } | 284 } |
203 | 285 |
204 rtc_static_library("rtc_task_queue") { | 286 rtc_static_library("rtc_task_queue") { |
205 public_deps = [ | 287 public_deps = [ |
206 ":rtc_base_approved", | 288 ":rtc_base_approved", |
207 ] | 289 ] |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
726 "java/src/org/webrtc/Logging.java", | 808 "java/src/org/webrtc/Logging.java", |
727 "java/src/org/webrtc/Size.java", | 809 "java/src/org/webrtc/Size.java", |
728 "java/src/org/webrtc/ThreadUtils.java", | 810 "java/src/org/webrtc/ThreadUtils.java", |
729 ] | 811 ] |
730 | 812 |
731 deps = [ | 813 deps = [ |
732 "//base:base_java", | 814 "//base:base_java", |
733 ] | 815 ] |
734 } | 816 } |
735 } | 817 } |
OLD | NEW |