[go: nahoru, domu]

blob: 5e2f3a75203066c0701027d1fb1d99d6fde055d3 [file] [log] [blame]
jrg@chromium.orgd9f96952012-04-19 21:02:091# Copyright (c) 2012 The Chromium Authors. All rights reserved.
agl@chromium.org946d1b22009-07-22 23:57:212# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
thomasvl@google.com7ee1a44c2010-07-23 14:18:596 'variables': {
7 'chromium_code': 1,
8 },
gregoryd@google.com886a17e32009-12-07 21:09:399 'includes': [
10 'ipc.gypi',
11 ],
agl@chromium.org946d1b22009-07-22 23:57:2112 'targets': [
bbudge@chromium.org84ed6dd2012-06-13 02:20:1213 {
14 'target_name': 'ipc',
15 'type': '<(component)',
16 'variables': {
17 'ipc_target': 1,
18 },
19 'dependencies': [
20 '../base/base.gyp:base',
viettrungluu@chromium.org3c788582013-01-25 21:51:3521 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
bbudge@chromium.org84ed6dd2012-06-13 02:20:1222 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
23 ],
24 # TODO(gregoryd): direct_dependent_settings should be shared with the
25 # 64-bit target, but it doesn't work due to a bug in gyp
26 'direct_dependent_settings': {
27 'include_dirs': [
28 '..',
29 ],
30 },
31 },
agl@chromium.org946d1b22009-07-22 23:57:2132 {
33 'target_name': 'ipc_tests',
jrg@chromium.orgd9f96952012-04-19 21:02:0934 'type': '<(gtest_target_type)',
agl@chromium.org946d1b22009-07-22 23:57:2135 'dependencies': [
36 'ipc',
jcivelli@chromium.org97c652b2012-06-27 01:12:2437 'test_support_ipc',
agl@chromium.org946d1b22009-07-22 23:57:2138 '../base/base.gyp:base',
brettw@chromium.orgd34d79f2009-10-14 22:06:1439 '../base/base.gyp:base_i18n',
viettrungluu@chromium.org0cb7d8c82013-01-11 15:13:3740 '../base/base.gyp:run_all_unittests',
brettw@chromium.org426eb3a2010-08-15 19:58:5341 '../base/base.gyp:test_support_base',
agl@chromium.org946d1b22009-07-22 23:57:2142 '../testing/gtest.gyp:gtest',
43 ],
44 'include_dirs': [
45 '..'
46 ],
47 'sources': [
agl@chromium.org402e79a2009-07-23 17:33:3248 'file_descriptor_set_posix_unittest.cc',
dmaclach@chromium.org22b42c52010-12-20 06:59:2349 'ipc_channel_posix_unittest.cc',
viettrungluu@chromium.org0cb7d8c82013-01-11 15:13:3750 'ipc_channel_unittest.cc',
agl@chromium.org946d1b22009-07-22 23:57:2151 'ipc_fuzzing_tests.cc',
52 'ipc_message_unittest.cc',
brettw@chromium.org34d48612012-06-29 00:05:0453 'ipc_message_utils_unittest.cc',
agl@chromium.org946d1b22009-07-22 23:57:2154 'ipc_send_fds_test.cc',
55 'ipc_sync_channel_unittest.cc',
56 'ipc_sync_message_unittest.cc',
57 'ipc_sync_message_unittest.h',
viettrungluu@chromium.org0cb7d8c82013-01-11 15:13:3758 'ipc_test_base.cc',
59 'ipc_test_base.h',
sehr@google.com182c44fa2009-11-26 00:28:0260 'sync_socket_unittest.cc',
agl@chromium.org946d1b22009-07-22 23:57:2161 ],
62 'conditions': [
tony@chromium.org6a654d452011-05-23 22:06:5463 ['toolkit_uses_gtk == 1', {
agl@chromium.org946d1b22009-07-22 23:57:2164 'dependencies': [
65 '../build/linux/system.gyp:gtk',
66 ],
67 }],
nileshagrawal@chromium.orga44d1212012-05-25 20:17:4968 ['OS == "android" and gtest_target_type == "shared_library"', {
jrg@chromium.orgd9f96952012-04-19 21:02:0969 'dependencies': [
70 '../testing/android/native_test.gyp:native_test_native_code',
71 ],
72 }],
jrg@chromium.org6fa21d02011-11-04 00:14:1673 ['os_posix == 1 and OS != "mac" and OS != "android"', {
glider@chromium.orgd9df2b52009-12-10 12:06:1574 'conditions': [
75 ['linux_use_tcmalloc==1', {
76 'dependencies': [
77 '../base/allocator/allocator.gyp:allocator',
78 ],
79 }],
80 ],
81 }]
agl@chromium.org946d1b22009-07-22 23:57:2182 ],
83 },
brettw@google.com3ff2a102011-01-20 23:50:2784 {
viettrungluu@chromium.org0cb7d8c82013-01-11 15:13:3785 'target_name': 'ipc_perftests',
86 'type': '<(gtest_target_type)',
87 # TODO(viettrungluu): Figure out which dependencies are really needed.
88 'dependencies': [
89 'ipc',
90 'test_support_ipc',
91 '../base/base.gyp:base',
92 '../base/base.gyp:base_i18n',
93 '../base/base.gyp:test_support_base',
94 '../base/base.gyp:test_support_perf',
95 '../testing/gtest.gyp:gtest',
96 ],
97 'include_dirs': [
98 '..'
99 ],
100 'sources': [
101 'ipc_perftests.cc',
102 'ipc_test_base.cc',
103 'ipc_test_base.h',
104 ],
105 'conditions': [
106 ['toolkit_uses_gtk == 1', {
107 'dependencies': [
108 '../build/linux/system.gyp:gtk',
109 ],
110 }],
111 ['OS == "android" and gtest_target_type == "shared_library"', {
112 'dependencies': [
113 '../testing/android/native_test.gyp:native_test_native_code',
114 ],
115 }],
116 ['os_posix == 1 and OS != "mac" and OS != "android"', {
117 'conditions': [
118 ['linux_use_tcmalloc==1', {
119 'dependencies': [
120 '../base/allocator/allocator.gyp:allocator',
121 ],
122 }],
123 ],
124 }]
125 ],
126 },
127 {
brettw@google.com3ff2a102011-01-20 23:50:27128 'target_name': 'test_support_ipc',
evan@chromium.org5a547332011-05-19 23:18:53129 'type': 'static_library',
brettw@google.com3ff2a102011-01-20 23:50:27130 'dependencies': [
131 'ipc',
132 '../base/base.gyp:base',
jcivelli@chromium.org97c652b2012-06-27 01:12:24133 '../testing/gtest.gyp:gtest',
brettw@google.com3ff2a102011-01-20 23:50:27134 ],
135 'sources': [
jcivelli@chromium.org97c652b2012-06-27 01:12:24136 'ipc_multiprocess_test.cc',
137 'ipc_multiprocess_test.h',
brettw@google.com3ff2a102011-01-20 23:50:27138 'ipc_test_sink.cc',
139 'ipc_test_sink.h',
140 ],
141 },
gregoryd@google.com886a17e32009-12-07 21:09:39142 ],
jrg@chromium.orgd9f96952012-04-19 21:02:09143 'conditions': [
bradnelson@google.com3a41c8ef2013-01-21 23:23:57144 ['OS=="win" and target_arch=="ia32"', {
bbudge@chromium.org84ed6dd2012-06-13 02:20:12145 'targets': [
146 {
147 'target_name': 'ipc_win64',
148 'type': '<(component)',
149 'variables': {
150 'ipc_target': 1,
151 },
152 'dependencies': [
153 '../base/base.gyp:base_nacl_win64',
viettrungluu@chromium.org3c788582013-01-25 21:51:35154 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is
155 # suspect.
bbudge@chromium.org84ed6dd2012-06-13 02:20:12156 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
157 ],
158 # TODO(gregoryd): direct_dependent_settings should be shared with the
159 # 32-bit target, but it doesn't work due to a bug in gyp
160 'direct_dependent_settings': {
161 'include_dirs': [
162 '..',
163 ],
164 },
165 'configurations': {
166 'Common_Base': {
167 'msvs_target_platform': 'x64',
168 },
169 },
170 },
171 ],
172 }],
nileshagrawal@chromium.orga44d1212012-05-25 20:17:49173 # Special target to wrap a gtest_target_type==shared_library
jrg@chromium.orgd9f96952012-04-19 21:02:09174 # ipc_tests into an android apk for execution.
175 # See base.gyp for TODO(jrg)s about this strategy.
nileshagrawal@chromium.orga44d1212012-05-25 20:17:49176 ['OS == "android" and gtest_target_type == "shared_library"', {
jrg@chromium.orgd9f96952012-04-19 21:02:09177 'targets': [
178 {
179 'target_name': 'ipc_tests_apk',
180 'type': 'none',
181 'dependencies': [
182 'ipc_tests',
183 ],
nileshagrawal@chromium.orga44d1212012-05-25 20:17:49184 'variables': {
185 'test_suite_name': 'ipc_tests',
yfriedman@chromium.orgef7ed7a2012-05-29 23:19:13186 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ipc_tests<(SHARED_LIB_SUFFIX)',
nileshagrawal@chromium.orga44d1212012-05-25 20:17:49187 },
188 'includes': [ '../build/apk_test.gypi' ],
jrg@chromium.orgd9f96952012-04-19 21:02:09189 }],
190 }],
191 ],
agl@chromium.org946d1b22009-07-22 23:57:21192}