Use UintToString() for unsigned values.
[chromium-blink-merge.git] / ipc / ipc.gyp
blob5ae3eba169ce09ef6a194385471b8860034056db
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
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     'ipc.gypi',
11   ],
12   'targets': [
13     {
14       'target_name': 'ipc',
15       'type': '<(component)',
16       'variables': {
17         'ipc_target': 1,
18       },
19       'dependencies': [
20         '../base/base.gyp:base',
21         # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
22         '../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       'conditions': [
32         ['OS == "win"', {
33           'dependencies': [
34             '../crypto/crypto.gyp:crypto',
35           ],
36         }],
37       ],
38     },
39     {
40       'target_name': 'ipc_tests',
41       'type': '<(gtest_target_type)',
42       'dependencies': [
43         'ipc',
44         'test_support_ipc',
45         '../base/base.gyp:base',
46         '../base/base.gyp:base_i18n',
47         '../base/base.gyp:test_support_base',
48         '../crypto/crypto.gyp:crypto',
49         '../testing/gtest.gyp:gtest',
50       ],
51       'include_dirs': [
52         '..'
53       ],
54       'sources': [
55         'attachment_broker_privileged_win_unittest.cc',
56         'attachment_broker_unprivileged_win_unittest.cc',
57         'ipc_channel_posix_unittest.cc',
58         'ipc_channel_proxy_unittest.cc',
59         'ipc_channel_reader_unittest.cc',
60         'ipc_channel_unittest.cc',
61         'ipc_fuzzing_tests.cc',
62         'ipc_message_attachment_set_posix_unittest.cc',
63         'ipc_message_unittest.cc',
64         'ipc_message_utils_unittest.cc',
65         'ipc_send_fds_test.cc',
66         'ipc_sync_channel_unittest.cc',
67         'ipc_sync_message_unittest.cc',
68         'ipc_sync_message_unittest.h',
69         'run_all_unittests.cc',
70         'sync_socket_unittest.cc',
71         'unix_domain_socket_util_unittest.cc',
72       ],
73       'conditions': [
74         ['OS == "win" or OS == "ios"', {
75           'sources!': [
76             'unix_domain_socket_util_unittest.cc',
77           ],
78         }],
79         ['OS == "android"', {
80           'dependencies': [
81             '../testing/android/native_test.gyp:native_test_native_code',
82           ],
83         }],
84         ['os_posix == 1 and OS != "mac" and OS != "android"', {
85           'conditions': [
86             ['use_allocator!="none"', {
87               'dependencies': [
88                 '../base/allocator/allocator.gyp:allocator',
89               ],
90             }],
91           ],
92         }]
93       ],
94     },
95     {
96       'target_name': 'ipc_perftests',
97       'type': '<(gtest_target_type)',
98       # TODO(viettrungluu): Figure out which dependencies are really needed.
99       'dependencies': [
100         'ipc',
101         'test_support_ipc',
102         '../base/base.gyp:base',
103         '../base/base.gyp:base_i18n',
104         '../base/base.gyp:test_support_base',
105         '../base/base.gyp:test_support_perf',
106         '../testing/gtest.gyp:gtest',
107       ],
108       'include_dirs': [
109         '..'
110       ],
111       'sources': [
112         'ipc_perftests.cc',
113         'ipc_test_base.cc',
114         'ipc_test_base.h',
115       ],
116       'conditions': [
117         ['OS == "android"', {
118           'dependencies': [
119             '../testing/android/native_test.gyp:native_test_native_code',
120           ],
121         }],
122         ['os_posix == 1 and OS != "mac" and OS != "android"', {
123           'conditions': [
124             ['use_allocator!="none"', {
125               'dependencies': [
126                 '../base/allocator/allocator.gyp:allocator',
127               ],
128             }],
129           ],
130         }]
131       ],
132     },
133     {
134       'target_name': 'test_support_ipc',
135       'type': 'static_library',
136       'dependencies': [
137         'ipc',
138         '../base/base.gyp:base',
139         '../testing/gtest.gyp:gtest',
140       ],
141       'sources': [
142         'ipc_multiprocess_test.cc',
143         'ipc_multiprocess_test.h',
144         'ipc_perftest_support.cc',
145         'ipc_perftest_support.h',
146         'ipc_security_test_util.cc',
147         'ipc_security_test_util.h',
148         'ipc_test_base.cc',
149         'ipc_test_base.h',
150         'ipc_test_channel_listener.cc',
151         'ipc_test_channel_listener.h',
152         'ipc_test_sink.cc',
153         'ipc_test_sink.h',
154       ],
155     },
156   ],
157   'conditions': [
158     ['OS=="win" and target_arch=="ia32"', {
159       'targets': [
160         {
161           'target_name': 'ipc_win64',
162           'type': '<(component)',
163           'variables': {
164             'ipc_target': 1,
165           },
166           'dependencies': [
167             '../base/base.gyp:base_win64',
168             # TODO(viettrungluu): Needed for base/lazy_instance.h, which is
169             # suspect.
170             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
171             '../crypto/crypto.gyp:crypto_nacl_win64',
172           ],
173           # TODO(gregoryd): direct_dependent_settings should be shared with the
174           # 32-bit target, but it doesn't work due to a bug in gyp
175           'direct_dependent_settings': {
176             'include_dirs': [
177               '..',
178             ],
179           },
180           'configurations': {
181             'Common_Base': {
182               'msvs_target_platform': 'x64',
183             },
184           },
185         },
186       ],
187     }],
188     ['OS == "android"', {
189       'targets': [
190         {
191           'target_name': 'ipc_tests_apk',
192           'type': 'none',
193           'dependencies': [
194             'ipc_tests',
195           ],
196           'variables': {
197             'test_suite_name': 'ipc_tests',
198           },
199           'includes': [ '../build/apk_test.gypi' ],
200         },
201         {
202           'target_name': 'ipc_perftests_apk',
203           'type': 'none',
204           'dependencies': [
205             'ipc_perftests',
206           ],
207           'variables': {
208             'test_suite_name': 'ipc_perftests',
209           },
210           'includes': [ '../build/apk_test.gypi' ],
211         }],
212     }],
213     ['test_isolation_mode != "noop"', {
214       'targets': [
215         {
216           'target_name': 'ipc_tests_run',
217           'type': 'none',
218           'dependencies': [
219             'ipc_tests',
220           ],
221           'includes': [
222             '../build/isolate.gypi',
223           ],
224           'sources': [
225             'ipc_tests.isolate',
226           ],
227         },
228       ],
229     }],
230   ],