OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'target_defaults': { | |
10 'sources/': [ | |
11 ['exclude', '/win/'], | |
12 ['exclude', '_(posix|win)(_unittest)?\\.(cc|mm?)$'], | |
13 ['exclude', '/win_[^/]*\\.cc$'], | |
14 ], | |
15 'conditions': [ | |
16 ['os_posix == 1 and OS != "mac"', {'sources/': [ | |
17 ['include', '_posix(_unittest)?\\.cc$'], | |
18 ]}], | |
19 ['OS=="mac"', {'sources/': [ | |
20 ['include', '_posix(_unittest)?\\.(cc|mm?)$'], | |
21 ]}], | |
22 ['OS=="win"', {'sources/': [ | |
23 ['include', '_win(_unittest)?\\.cc$'], | |
24 ['include', '/win/'], | |
25 ['include', '/win_[^/]*\\.cc$'], | |
26 ]}], | |
27 ], | |
28 }, | |
29 'includes': [ | 9 'includes': [ |
30 'ipc.gypi', | 10 'ipc.gypi', |
31 ], | 11 ], |
32 'targets': [ | 12 'targets': [ |
33 { | 13 { |
| 14 'target_name': 'ipc', |
| 15 'type': '<(component)', |
| 16 'variables': { |
| 17 'ipc_target': 1, |
| 18 }, |
| 19 'dependencies': [ |
| 20 '../base/base.gyp:base', |
| 21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 22 ], |
| 23 # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 24 # 64-bit target, but it doesn't work due to a bug in gyp |
| 25 'direct_dependent_settings': { |
| 26 'include_dirs': [ |
| 27 '..', |
| 28 ], |
| 29 }, |
| 30 }, |
| 31 { |
34 'target_name': 'ipc_tests', | 32 'target_name': 'ipc_tests', |
35 'type': '<(gtest_target_type)', | 33 'type': '<(gtest_target_type)', |
36 'dependencies': [ | 34 'dependencies': [ |
37 'ipc', | 35 'ipc', |
38 '../base/base.gyp:base', | 36 '../base/base.gyp:base', |
39 '../base/base.gyp:base_i18n', | 37 '../base/base.gyp:base_i18n', |
40 '../base/base.gyp:test_support_base', | 38 '../base/base.gyp:test_support_base', |
41 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 39 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
42 '../testing/gtest.gyp:gtest', | 40 '../testing/gtest.gyp:gtest', |
43 ], | 41 ], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 'ipc', | 84 'ipc', |
87 '../base/base.gyp:base', | 85 '../base/base.gyp:base', |
88 ], | 86 ], |
89 'sources': [ | 87 'sources': [ |
90 'ipc_test_sink.cc', | 88 'ipc_test_sink.cc', |
91 'ipc_test_sink.h', | 89 'ipc_test_sink.h', |
92 ], | 90 ], |
93 }, | 91 }, |
94 ], | 92 ], |
95 'conditions': [ | 93 'conditions': [ |
| 94 ['OS=="win"', { |
| 95 'targets': [ |
| 96 { |
| 97 'target_name': 'ipc_win64', |
| 98 'type': '<(component)', |
| 99 'variables': { |
| 100 'ipc_target': 1, |
| 101 }, |
| 102 'dependencies': [ |
| 103 '../base/base.gyp:base_nacl_win64', |
| 104 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 105 ], |
| 106 # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 107 # 32-bit target, but it doesn't work due to a bug in gyp |
| 108 'direct_dependent_settings': { |
| 109 'include_dirs': [ |
| 110 '..', |
| 111 ], |
| 112 }, |
| 113 'configurations': { |
| 114 'Common_Base': { |
| 115 'msvs_target_platform': 'x64', |
| 116 }, |
| 117 }, |
| 118 }, |
| 119 ], |
| 120 }], |
96 # Special target to wrap a gtest_target_type==shared_library | 121 # Special target to wrap a gtest_target_type==shared_library |
97 # ipc_tests into an android apk for execution. | 122 # ipc_tests into an android apk for execution. |
98 # See base.gyp for TODO(jrg)s about this strategy. | 123 # See base.gyp for TODO(jrg)s about this strategy. |
99 ['OS == "android" and gtest_target_type == "shared_library"', { | 124 ['OS == "android" and gtest_target_type == "shared_library"', { |
100 'targets': [ | 125 'targets': [ |
101 { | 126 { |
102 'target_name': 'ipc_tests_apk', | 127 'target_name': 'ipc_tests_apk', |
103 'type': 'none', | 128 'type': 'none', |
104 'dependencies': [ | 129 'dependencies': [ |
105 '../base/base.gyp:base_java', | 130 '../base/base.gyp:base_java', |
106 'ipc_tests', | 131 'ipc_tests', |
107 ], | 132 ], |
108 'variables': { | 133 'variables': { |
109 'test_suite_name': 'ipc_tests', | 134 'test_suite_name': 'ipc_tests', |
110 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ipc_tests
<(SHARED_LIB_SUFFIX)', | 135 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ipc_tests
<(SHARED_LIB_SUFFIX)', |
111 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',], | 136 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',], |
112 }, | 137 }, |
113 'includes': [ '../build/apk_test.gypi' ], | 138 'includes': [ '../build/apk_test.gypi' ], |
114 }], | 139 }], |
115 }], | 140 }], |
116 ], | 141 ], |
117 } | 142 } |
OLD | NEW |