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.
15 'type': '<(component)',
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',
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': {
33 'target_name': 'ipc_tests',
34 'type': '<(gtest_target_type)',
38 '../base/base.gyp:base',
39 '../base/base.gyp:base_i18n',
40 '../base/base.gyp:test_support_base',
41 '../testing/gtest.gyp:gtest',
47 'file_descriptor_set_posix_unittest.cc',
48 'ipc_channel_posix_unittest.cc',
49 'ipc_channel_proxy_unittest.cc',
50 'ipc_channel_unittest.cc',
51 'ipc_fuzzing_tests.cc',
52 'ipc_message_unittest.cc',
53 'ipc_message_utils_unittest.cc',
54 'ipc_send_fds_test.cc',
55 'ipc_sync_channel_unittest.cc',
56 'ipc_sync_message_unittest.cc',
57 'ipc_sync_message_unittest.h',
60 'run_all_unittests.cc',
61 'sync_socket_unittest.cc',
62 'unix_domain_socket_util_unittest.cc',
65 ['toolkit_uses_gtk == 1', {
67 '../build/linux/system.gyp:gtk',
70 ['OS == "win" or OS == "ios"', {
72 'unix_domain_socket_util_unittest.cc',
75 ['OS == "android" and gtest_target_type == "shared_library"', {
77 '../testing/android/native_test.gyp:native_test_native_code',
80 ['os_posix == 1 and OS != "mac" and OS != "android"', {
82 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
83 ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
85 '../base/allocator/allocator.gyp:allocator',
93 'target_name': 'ipc_perftests',
94 'type': '<(gtest_target_type)',
95 # TODO(viettrungluu): Figure out which dependencies are really needed.
99 '../base/base.gyp:base',
100 '../base/base.gyp:base_i18n',
101 '../base/base.gyp:test_support_base',
102 '../base/base.gyp:test_support_perf',
103 '../testing/gtest.gyp:gtest',
114 ['toolkit_uses_gtk == 1', {
116 '../build/linux/system.gyp:gtk',
119 ['OS == "android" and gtest_target_type == "shared_library"', {
121 '../testing/android/native_test.gyp:native_test_native_code',
124 ['os_posix == 1 and OS != "mac" and OS != "android"', {
126 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
127 ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
129 '../base/allocator/allocator.gyp:allocator',
137 'target_name': 'test_support_ipc',
138 'type': 'static_library',
141 '../base/base.gyp:base',
142 '../testing/gtest.gyp:gtest',
145 'ipc_multiprocess_test.cc',
146 'ipc_multiprocess_test.h',
153 ['OS=="win" and target_arch=="ia32"', {
156 'target_name': 'ipc_win64',
157 'type': '<(component)',
162 '../base/base.gyp:base_win64',
163 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is
165 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
167 # TODO(gregoryd): direct_dependent_settings should be shared with the
168 # 32-bit target, but it doesn't work due to a bug in gyp
169 'direct_dependent_settings': {
176 'msvs_target_platform': 'x64',
182 # Special target to wrap a gtest_target_type==shared_library
183 # ipc_tests into an android apk for execution.
184 # See base.gyp for TODO(jrg)s about this strategy.
185 ['OS == "android" and gtest_target_type == "shared_library"', {
188 'target_name': 'ipc_tests_apk',
194 'test_suite_name': 'ipc_tests',
195 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ipc_tests<(SHARED_LIB_SUFFIX)',
197 'includes': [ '../build/apk_test.gypi' ],
200 'target_name': 'ipc_perftests_apk',
206 'test_suite_name': 'ipc_perftests',
207 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ipc_perftests<(SHARED_LIB_SUFFIX)',
209 'includes': [ '../build/apk_test.gypi' ],