Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: webrtc/build/common.gypi

Issue 1984503002: Reland of New task queueing primitive for async tasks: TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Optional initialization for build_for Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« webrtc/base/base.gyp ('K') | « webrtc/base/task_queue_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2012 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 # This file contains common settings for building WebRTC components. 9 # This file contains common settings for building WebRTC components.
10 10
11 { 11 {
12 # Nesting is required in order to use variables for setting other variables. 12 # Nesting is required in order to use variables for setting other variables.
13 'variables': { 13 'variables': {
14 'variables': { 14 'variables': {
15 'variables': { 15 'variables': {
16 'variables': { 16 'variables': {
17 # This will already be set to zero by supplement.gypi 17 # This will already be set to zero by supplement.gypi
18 'build_with_chromium%': 1, 18 'build_with_chromium%': 1,
19 19
20 # Enable to use the Mozilla internal settings. 20 # Enable to use the Mozilla internal settings.
21 'build_with_mozilla%': 0, 21 'build_with_mozilla%': 0,
22 'build_for%': '',
22 }, 23 },
24 'build_for%': '<(build_for)',
23 'build_with_chromium%': '<(build_with_chromium)', 25 'build_with_chromium%': '<(build_with_chromium)',
24 'build_with_mozilla%': '<(build_with_mozilla%)', 26 'build_with_mozilla%': '<(build_with_mozilla%)',
25 'include_opus%': 1, 27 'include_opus%': 1,
26 28
27 'conditions': [ 29 'conditions': [
28 # Include the iLBC audio codec? 30 # Include the iLBC audio codec?
29 ['build_with_chromium==1 or build_with_mozilla==1', { 31 ['build_with_chromium==1 or build_with_mozilla==1', {
30 'include_ilbc%': 0, 32 'include_ilbc%': 0,
31 }, { 33 }, {
32 'include_ilbc%': 1, 34 'include_ilbc%': 1,
33 }], 35 }],
34 36
35 ['build_with_chromium==1', { 37 ['build_with_chromium==1', {
36 'webrtc_root%': '<(DEPTH)/third_party/webrtc', 38 'webrtc_root%': '<(DEPTH)/third_party/webrtc',
37 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop .gyp', 39 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop .gyp',
38 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul es_java_chromium.gyp', 40 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul es_java_chromium.gyp',
39 }, { 41 }, {
40 'webrtc_root%': '<(DEPTH)/webrtc', 42 'webrtc_root%': '<(DEPTH)/webrtc',
41 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', 43 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp',
42 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp' , 44 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp' ,
43 }], 45 }],
46
47 # Controls whether we use libevent on posix platforms.
48 # TODO(tommi): Remove the 'build_for' condition once libevent is more
49 # widely available in posix configurations.
50 ['OS=="win" or OS=="mac" or OS=="ios" or build_for!=""', {
51 'build_libevent%': 0,
52 }, {
53 'build_libevent%': 1,
54 }],
44 ], 55 ],
45 }, 56 },
46 'build_with_chromium%': '<(build_with_chromium)', 57 'build_with_chromium%': '<(build_with_chromium)',
47 'build_with_mozilla%': '<(build_with_mozilla)', 58 'build_with_mozilla%': '<(build_with_mozilla)',
59 'build_libevent%': '<(build_libevent)',
48 'webrtc_root%': '<(webrtc_root)', 60 'webrtc_root%': '<(webrtc_root)',
49 'apk_tests_path%': '<(apk_tests_path)', 61 'apk_tests_path%': '<(apk_tests_path)',
50 'modules_java_gyp_path%': '<(modules_java_gyp_path)', 62 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
51 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', 63 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8',
52 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', 64 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9',
53 'include_ilbc%': '<(include_ilbc)', 65 'include_ilbc%': '<(include_ilbc)',
54 'include_opus%': '<(include_opus)', 66 'include_opus%': '<(include_opus)',
55 'opus_dir%': '<(DEPTH)/third_party/opus', 67 'opus_dir%': '<(DEPTH)/third_party/opus',
56 }, 68 },
57 'build_with_chromium%': '<(build_with_chromium)', 69 'build_with_chromium%': '<(build_with_chromium)',
58 'build_with_mozilla%': '<(build_with_mozilla)', 70 'build_with_mozilla%': '<(build_with_mozilla)',
71 'build_libevent%': '<(build_libevent)',
59 'webrtc_root%': '<(webrtc_root)', 72 'webrtc_root%': '<(webrtc_root)',
60 'apk_tests_path%': '<(apk_tests_path)', 73 'apk_tests_path%': '<(apk_tests_path)',
61 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', 74 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py',
62 'modules_java_gyp_path%': '<(modules_java_gyp_path)', 75 'modules_java_gyp_path%': '<(modules_java_gyp_path)',
63 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', 76 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)',
64 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', 77 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)',
65 'include_ilbc%': '<(include_ilbc)', 78 'include_ilbc%': '<(include_ilbc)',
66 'include_opus%': '<(include_opus)', 79 'include_opus%': '<(include_opus)',
67 'rtc_relative_path%': 1, 80 'rtc_relative_path%': 1,
68 'external_libraries%': '0', 81 'external_libraries%': '0',
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 }], 325 }],
313 ['clang==1', { 326 ['clang==1', {
314 'cflags': [ 327 'cflags': [
315 '-Wimplicit-fallthrough', 328 '-Wimplicit-fallthrough',
316 '-Wthread-safety', 329 '-Wthread-safety',
317 '-Winconsistent-missing-override', 330 '-Winconsistent-missing-override',
318 ], 331 ],
319 }], 332 }],
320 ], 333 ],
321 }], 334 }],
335 ['build_libevent==1', {
336 'defines': [
337 'WEBRTC_BUILD_LIBEVENT',
338 ],
339 }],
322 ['target_arch=="arm64"', { 340 ['target_arch=="arm64"', {
323 'defines': [ 341 'defines': [
324 'WEBRTC_ARCH_ARM64', 342 'WEBRTC_ARCH_ARM64',
325 'WEBRTC_HAS_NEON', 343 'WEBRTC_HAS_NEON',
326 ], 344 ],
327 }], 345 }],
328 ['target_arch=="arm"', { 346 ['target_arch=="arm"', {
329 'defines': [ 347 'defines': [
330 'WEBRTC_ARCH_ARM', 348 'WEBRTC_ARCH_ARM',
331 ], 349 ],
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 # For access to standard POSIXish features, use WEBRTC_POSIX instead 527 # For access to standard POSIXish features, use WEBRTC_POSIX instead
510 # of a more specific macro. 528 # of a more specific macro.
511 'defines': [ 529 'defines': [
512 'WEBRTC_POSIX', 530 'WEBRTC_POSIX',
513 ], 531 ],
514 }], 532 }],
515 ], 533 ],
516 }, 534 },
517 }, # target_defaults 535 }, # target_defaults
518 } 536 }
OLDNEW
« webrtc/base/base.gyp ('K') | « webrtc/base/task_queue_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698