blob: 1d6b37e8e3e37b106f40a879b3b780246a769e9a [file] [log] [blame]
[email protected]ef8c3cf2012-01-24 04:37:291# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
[email protected]ef4fa4072009-12-04 22:46:509 'includes': [
[email protected]99ff9932011-09-07 14:14:5410 '../build/win_precompile.gypi',
[email protected]ef4fa4072009-12-04 22:46:5011 'base.gypi',
12 ],
[email protected]2f80c312009-02-25 21:26:5513 'targets': [
14 {
[email protected]83c1c3c2012-06-07 18:43:4415 'target_name': 'base',
16 'type': '<(component)',
17 'toolsets': ['host', 'target'],
18 'variables': {
19 'base_target': 1,
20 'enable_wexit_time_destructors': 1,
21 'optimize': 'max',
22 },
23 'dependencies': [
24 'base_static',
25 'allocator/allocator.gyp:allocator_extension_thunks',
26 '../testing/gtest.gyp:gtest_prod',
27 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
29 ],
30 # TODO(gregoryd): direct_dependent_settings should be shared with the
31 # 64-bit target, but it doesn't work due to a bug in gyp
32 'direct_dependent_settings': {
33 'include_dirs': [
34 '..',
35 ],
36 },
37 'conditions': [
[email protected]9ac2db692012-06-08 01:01:5738 ['use_glib==1', {
[email protected]83c1c3c2012-06-07 18:43:4439 'conditions': [
[email protected]9ac2db692012-06-08 01:01:5740 ['chromeos==1', {
41 'sources/': [ ['include', '_chromeos\\.cc$'] ]
42 }],
43 ['linux_use_tcmalloc==0', {
44 'defines': [
45 'NO_TCMALLOC',
46 ],
47 'direct_dependent_settings': {
[email protected]83c1c3c2012-06-07 18:43:4448 'defines': [
49 'NO_TCMALLOC',
50 ],
[email protected]83c1c3c2012-06-07 18:43:4451 },
[email protected]9ac2db692012-06-08 01:01:5752 }],
53 ['toolkit_uses_gtk==1', {
[email protected]83c1c3c2012-06-07 18:43:4454 'dependencies': [
55 '../build/linux/system.gyp:gtk',
56 ],
57 'export_dependent_settings': [
58 '../build/linux/system.gyp:gtk',
59 ],
60 }],
61 ],
62 'dependencies': [
63 'symbolize',
64 '../build/linux/system.gyp:glib',
65 '../build/linux/system.gyp:x11',
66 'xdg_mime',
67 ],
68 'defines': [
69 'USE_SYMBOLIZE',
70 ],
71 'cflags': [
72 '-Wno-write-strings',
73 ],
74 'export_dependent_settings': [
75 '../build/linux/system.gyp:glib',
76 '../build/linux/system.gyp:x11',
77 ],
78 }, { # use_glib!=1
79 'sources/': [
80 ['exclude', '/xdg_user_dirs/'],
[email protected]feb727e2012-07-13 11:02:5781 ['exclude', '_nss\\.cc$'],
[email protected]83c1c3c2012-06-07 18:43:4482 ],
83 }],
[email protected]9ac2db692012-06-08 01:01:5784 ['OS == "android" and _toolset == "host"', {
[email protected]83c1c3c2012-06-07 18:43:4485 # Base for host support is the minimum required to run the
86 # ssl false start blacklist tool. It requires further changes
87 # to generically support host builds (and tests).
88 # Note: when building for host, gyp has OS == "android",
89 # hence the *_android.cc files are included but the actual code
90 # doesn't have OS_ANDROID / ANDROID defined.
91 'conditions': [
92 # Host build on linux depends on system.gyp::gtk as
93 # default linux build has TOOLKIT_GTK defined.
94 ['host_os == "linux"', {
95 'sources/': [
96 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
97 ],
98 'dependencies': [
99 '../build/linux/system.gyp:gtk',
100 ],
101 'export_dependent_settings': [
102 '../build/linux/system.gyp:gtk',
103 ],
104 }],
105 ['host_os == "mac"', {
106 'sources/': [
107 ['exclude', '^native_library_linux\\.cc$'],
108 ['exclude', '^process_util_linux\\.cc$'],
109 ['exclude', '^sys_info_linux\\.cc$'],
110 ['exclude', '^sys_string_conversions_linux\\.cc$'],
111 ['exclude', '^worker_pool_linux\\.cc$'],
112 ],
113 }],
114 ],
115 }],
[email protected]9ac2db692012-06-08 01:01:57116 ['OS == "android" and _toolset == "target"', {
[email protected]83c1c3c2012-06-07 18:43:44117 'conditions': [
118 ['target_arch == "ia32"', {
119 'sources/': [
120 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
121 ],
122 }],
123 ],
124 'dependencies': [
125 'symbolize',
126 '../third_party/ashmem/ashmem.gyp:ashmem',
127 '../third_party/icu/icu.gyp:icuuc',
[email protected]83c1c3c2012-06-07 18:43:44128 'base_jni_headers',
129 ],
130 'include_dirs': [
131 '<(SHARED_INTERMEDIATE_DIR)/base',
132 ],
133 'link_settings': {
134 'libraries': [
135 '-llog',
136 ],
137 },
138 'defines': [
139 'USE_SYMBOLIZE',
140 ],
141 'sources!': [
[email protected]83c1c3c2012-06-07 18:43:44142 'debug/stack_trace_posix.cc',
143 ],
144 }],
[email protected]9ac2db692012-06-08 01:01:57145 ['os_bsd==1', {
[email protected]83c1c3c2012-06-07 18:43:44146 'include_dirs': [
147 '/usr/local/include',
148 ],
149 'link_settings': {
150 'libraries': [
151 '-L/usr/local/lib -lexecinfo',
[email protected]9ac2db692012-06-08 01:01:57152 ],
[email protected]83c1c3c2012-06-07 18:43:44153 },
[email protected]83c1c3c2012-06-07 18:43:44154 }],
[email protected]9ac2db692012-06-08 01:01:57155 ['OS == "linux"', {
156 'link_settings': {
157 'libraries': [
158 # We need rt for clock_gettime().
159 '-lrt',
160 # For 'native_library_linux.cc'
161 '-ldl',
162 ],
163 },
164 }],
165 ['OS == "mac"', {
[email protected]83c1c3c2012-06-07 18:43:44166 'link_settings': {
167 'libraries': [
168 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
[email protected]04a07542012-07-23 16:51:25169 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
[email protected]83c1c3c2012-06-07 18:43:44170 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
171 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
172 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
173 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
174 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
175 ],
176 },
177 'dependencies': [
178 '../third_party/mach_override/mach_override.gyp:mach_override',
179 ],
180 }],
[email protected]62cafe02012-07-15 14:24:46181 ['OS == "ios"', {
182 'link_settings': {
183 'libraries': [
184 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
[email protected]de6bb902012-07-25 11:07:44185 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
186 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
[email protected]62cafe02012-07-15 14:24:46187 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
188 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
189 ],
190 },
191 }],
[email protected]9ac2db692012-06-08 01:01:57192 ['OS != "win"', {
[email protected]83c1c3c2012-06-07 18:43:44193 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
194 },],
[email protected]9ac2db692012-06-08 01:01:57195 ['component=="shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44196 'conditions': [
197 ['OS=="win"', {
198 'sources!': [
199 'debug/debug_on_start_win.cc',
200 ],
201 }],
202 ],
203 }],
204 ],
205 'sources': [
206 'third_party/nspr/prcpucfg.h',
207 'third_party/nspr/prcpucfg_win.h',
208 'third_party/nspr/prtypes.h',
209 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
210 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
211 'auto_reset.h',
[email protected]83c1c3c2012-06-07 18:43:44212 'event_recorder.h',
213 'event_recorder_stubs.cc',
214 'event_recorder_win.cc',
215 'file_descriptor_shuffle.cc',
216 'file_descriptor_shuffle.h',
217 'linux_util.cc',
218 'linux_util.h',
219 'md5.cc',
220 'md5.h',
221 'message_pump_android.cc',
222 'message_pump_android.h',
223 'message_pump_glib.cc',
224 'message_pump_glib.h',
225 'message_pump_gtk.cc',
226 'message_pump_gtk.h',
227 'message_pump_observer.h',
228 'message_pump_aurax11.cc',
229 'message_pump_aurax11.h',
230 'message_pump_libevent.cc',
231 'message_pump_libevent.h',
232 'message_pump_mac.h',
233 'message_pump_mac.mm',
234 'metrics/field_trial.cc',
235 'metrics/field_trial.h',
[email protected]83c1c3c2012-06-07 18:43:44236 'sync_socket.h',
237 'sync_socket_win.cc',
238 'sync_socket_posix.cc',
[email protected]83c1c3c2012-06-07 18:43:44239 ],
240 },
241 {
[email protected]d34d79f2009-10-14 22:06:14242 'target_name': 'base_i18n',
[email protected]c743d4c72011-08-31 22:15:48243 'type': '<(component)',
[email protected]1d88ef32011-12-20 19:59:10244 'variables': {
245 'enable_wexit_time_destructors': 1,
246 'optimize': 'max',
247 },
[email protected]2f80c312009-02-25 21:26:55248 'dependencies': [
249 'base',
[email protected]c743d4c72011-08-31 22:15:48250 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d34d79f2009-10-14 22:06:14251 '../third_party/icu/icu.gyp:icui18n',
252 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55253 ],
[email protected]8f6f2022010-03-22 21:24:57254 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34255 ['toolkit_uses_gtk==1', {
[email protected]8f6f2022010-03-22 21:24:57256 'dependencies': [
257 # i18n/rtl.cc uses gtk
258 '../build/linux/system.gyp:gtk',
259 ],
260 }],
261 ],
[email protected]2f80c312009-02-25 21:26:55262 'export_dependent_settings': [
263 'base',
264 ],
[email protected]c743d4c72011-08-31 22:15:48265 'defines': [
266 'BASE_I18N_IMPLEMENTATION',
267 ],
[email protected]d34d79f2009-10-14 22:06:14268 'sources': [
[email protected]c743d4c72011-08-31 22:15:48269 'i18n/base_i18n_export.h',
[email protected]14cd2e62011-02-24 09:20:16270 'i18n/bidi_line_iterator.cc',
271 'i18n/bidi_line_iterator.h',
[email protected]55954d892010-12-15 18:00:54272 'i18n/break_iterator.cc',
273 'i18n/break_iterator.h',
[email protected]0ca5c102010-08-23 14:30:27274 'i18n/char_iterator.cc',
275 'i18n/char_iterator.h',
[email protected]503d03872011-05-06 08:36:26276 'i18n/case_conversion.cc',
277 'i18n/case_conversion.h',
[email protected]d34d79f2009-10-14 22:06:14278 'i18n/file_util_icu.cc',
279 'i18n/file_util_icu.h',
[email protected]193c3512010-05-11 09:19:30280 'i18n/icu_encoding_detection.cc',
281 'i18n/icu_encoding_detection.h',
[email protected]d34d79f2009-10-14 22:06:14282 'i18n/icu_string_conversions.cc',
283 'i18n/icu_string_conversions.h',
284 'i18n/icu_util.cc',
285 'i18n/icu_util.h',
286 'i18n/number_formatting.cc',
287 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:01288 'i18n/rtl.cc',
289 'i18n/rtl.h',
[email protected]923402f32011-10-03 16:25:19290 'i18n/string_search.cc',
291 'i18n/string_search.h',
[email protected]d34d79f2009-10-14 22:06:14292 'i18n/time_formatting.cc',
293 'i18n/time_formatting.h',
[email protected]d34d79f2009-10-14 22:06:14294 ],
[email protected]2f80c312009-02-25 21:26:55295 },
296 {
[email protected]167d52b2011-04-04 22:42:46297 # This is the subset of files from base that should not be used with a
[email protected]23bb71f2011-04-21 22:22:10298 # dynamic library. Note that this library cannot depend on base because
299 # base depends on base_static.
[email protected]167d52b2011-04-04 22:42:46300 'target_name': 'base_static',
[email protected]5a547332011-05-19 23:18:53301 'type': 'static_library',
[email protected]1d88ef32011-12-20 19:59:10302 'variables': {
303 'enable_wexit_time_destructors': 1,
304 'optimize': 'max',
305 },
[email protected]e688d9c2011-09-15 21:17:32306 'toolsets': ['host', 'target'],
[email protected]167d52b2011-04-04 22:42:46307 'sources': [
[email protected]46fe10d62011-05-26 22:03:28308 'base_switches.cc',
309 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46310 'win/pe_image.cc',
311 'win/pe_image.h',
312 ],
313 'include_dirs': [
314 '..',
315 ],
316 },
317 {
318 # TODO(rvargas): Remove this when gyp finally supports a clean model.
319 # See bug 36232.
320 'target_name': 'base_static_win64',
[email protected]5a547332011-05-19 23:18:53321 'type': 'static_library',
[email protected]167d52b2011-04-04 22:42:46322 'sources': [
[email protected]46fe10d62011-05-26 22:03:28323 'base_switches.cc',
324 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46325 'win/pe_image.cc',
326 'win/pe_image.h',
327 ],
[email protected]1968d9772012-07-26 22:53:13328 'sources!': [
329 # base64.cc depends on modp_b64.
330 'base64.cc',
331 ],
[email protected]167d52b2011-04-04 22:42:46332 'include_dirs': [
333 '..',
334 ],
335 'configurations': {
336 'Common_Base': {
337 'msvs_target_platform': 'x64',
338 },
339 },
340 'defines': [
341 'NACL_WIN64',
342 ],
343 # TODO(rvargas): Bug 78117. Remove this.
344 'msvs_disabled_warnings': [
345 4244,
346 ],
347 },
[email protected]c5549062012-03-21 05:55:06348 # Include this target for a main() function that simply instantiates
349 # and runs a base::TestSuite.
350 {
351 'target_name': 'run_all_unittests',
352 'type': 'static_library',
353 'dependencies': [
354 'test_support_base',
355 ],
356 'sources': [
357 'test/run_all_unittests.cc',
358 ],
359 },
[email protected]6fa1e7ef2012-03-14 11:24:04360 {
[email protected]2f80c312009-02-25 21:26:55361 'target_name': 'base_unittests',
[email protected]d9f96952012-04-19 21:02:09362 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55363 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40364 # Tests.
[email protected]96e7ade2011-12-05 14:42:08365 'android/jni_android_unittest.cc',
[email protected]595b0632012-04-26 20:19:47366 'android/path_utils_unittest.cc',
[email protected]f98d7b92011-09-09 10:17:35367 'android/scoped_java_ref_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55368 'at_exit_unittest.cc',
369 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:53370 'base64_unittest.cc',
[email protected]c6944272012-01-06 22:12:28371 'bind_helpers_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38372 'bind_unittest.cc',
[email protected]81814bce2011-09-10 03:03:00373 'bind_unittest.nc',
[email protected]6d1729e2009-11-18 23:08:39374 'bits_unittest.cc',
[email protected]08aa02762011-11-11 16:09:31375 'build_time_unittest.cc',
[email protected]2041cf342010-02-19 03:15:59376 'callback_unittest.cc',
[email protected]481915a772011-09-10 03:14:35377 'callback_unittest.nc',
[email protected]b77576f52011-11-24 04:12:04378 'cancelable_callback_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55379 'command_line_unittest.cc',
[email protected]14cd2e62011-02-24 09:20:16380 'cpu_unittest.cc',
[email protected]58580352010-10-26 04:07:50381 'debug/leak_tracker_unittest.cc',
382 'debug/stack_trace_unittest.cc',
[email protected]366ae242011-05-10 02:23:58383 'debug/trace_event_unittest.cc',
[email protected]e91ce802012-08-16 04:32:49384 'debug/trace_event_unittest.h',
[email protected]58580352010-10-26 04:07:50385 'debug/trace_event_win_unittest.cc',
[email protected]76b90d312010-08-03 03:00:50386 'environment_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03387 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55388 'file_path_unittest.cc',
[email protected]77e07b842012-04-23 18:40:57389 'file_util_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55390 'file_util_unittest.cc',
391 'file_version_info_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14392 'files/dir_reader_posix_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59393 'gmock_unittest.cc',
[email protected]7e49ad32012-06-14 14:22:07394 'guid_unittest.cc',
[email protected]b3aabd342012-06-04 19:33:56395 'hi_res_timer_manager_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38396 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:54397 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:27398 'i18n/char_iterator_unittest.cc',
[email protected]503d03872011-05-06 08:36:26399 'i18n/case_conversion_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:30400 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:50401 'i18n/icu_string_conversions_unittest.cc',
[email protected]7a3b2632011-06-22 20:40:22402 'i18n/number_formatting_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:01403 'i18n/rtl_unittest.cc',
[email protected]258dca42011-09-21 00:17:19404 'i18n/string_search_unittest.cc',
[email protected]60e6c842011-05-30 11:45:43405 'i18n/time_formatting_unittest.cc',
[email protected]e16e8732012-08-07 11:03:11406 'ios/device_util_unittest.mm',
[email protected]6e680cf2012-05-16 15:23:30407 'json/json_parser_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20408 'json/json_reader_unittest.cc',
[email protected]193f946b2011-12-22 18:31:47409 'json/json_value_converter_unittest.cc',
[email protected]8d77b632011-11-17 16:17:23410 'json/json_value_serializer_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20411 'json/json_writer_unittest.cc',
412 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55413 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54414 'linked_list_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36415 'logging_unittest.cc',
[email protected]a5e2cd182012-07-25 17:47:58416 'mac/bind_objc_block_unittest.mm',
[email protected]28f56492011-10-19 00:36:56417 'mac/foundation_util_unittest.mm',
[email protected]0378bf42011-01-01 18:20:14418 'mac/mac_util_unittest.mm',
[email protected]10756c52011-04-20 22:30:35419 'mac/objc_property_releaser_unittest.mm',
[email protected]d47af2172011-12-01 23:56:17420 'mac/scoped_sending_event_unittest.mm',
[email protected]47f19be2011-04-25 23:54:07421 'md5_unittest.cc',
[email protected]cd924d62012-02-23 17:52:20422 'memory/aligned_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15423 'memory/linked_ptr_unittest.cc',
[email protected]b4ae4442011-04-27 18:37:03424 'memory/mru_cache_unittest.cc',
[email protected]1dda9772011-07-22 13:22:23425 'memory/ref_counted_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15426 'memory/ref_counted_unittest.cc',
[email protected]656d2ab12012-02-09 09:50:58427 'memory/scoped_nsobject_unittest.mm',
[email protected]3b63f8f42011-03-28 01:54:15428 'memory/scoped_ptr_unittest.cc',
[email protected]6e29d6f32012-01-25 00:33:05429 'memory/scoped_ptr_unittest.nc',
[email protected]e5721c182011-03-28 22:27:34430 'memory/scoped_vector_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15431 'memory/singleton_unittest.cc',
432 'memory/weak_ptr_unittest.cc',
[email protected]4c44b8442012-06-15 16:36:12433 'memory/weak_ptr_unittest.nc',
[email protected]656475d2010-05-06 18:34:24434 'message_loop_proxy_impl_unittest.cc',
[email protected]c31af70db22011-08-18 23:13:01435 'message_loop_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55436 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44437 'message_pump_glib_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23438 'message_pump_libevent_unittest.cc',
[email protected]4a32f122012-07-25 20:02:48439 'metrics/bucket_ranges_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38440 'metrics/field_trial_unittest.cc',
441 'metrics/histogram_unittest.cc',
[email protected]7c7a42752012-08-09 05:14:15442 'metrics/sparse_histogram_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38443 'metrics/stats_table_unittest.cc',
[email protected]34d062322012-08-01 21:34:08444 'metrics/statistics_recorder_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55445 'observer_list_unittest.cc',
[email protected]80e61cc2012-07-18 17:26:50446 'os_compat_android_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55447 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55448 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14449 'platform_file_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55450 'pr_time_unittest.cc',
451 'process_util_unittest.cc',
[email protected]b80ffe22012-07-11 15:35:02452 'process_util_unittest_ios.cc',
[email protected]9f958442010-03-19 18:42:41453 'process_util_unittest_mac.h',
454 'process_util_unittest_mac.mm',
[email protected]dbe5d2072011-11-08 17:09:21455 'profiler/tracked_time_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55456 'rand_util_unittest.cc',
[email protected]e0785902011-05-19 23:34:17457 'scoped_native_library_unittest.cc',
[email protected]28f57b32012-06-22 21:47:30458 'scoped_observer.h',
[email protected]e0785902011-05-19 23:34:17459 'scoped_temp_dir_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58460 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55461 'shared_memory_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55462 'stack_container_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47463 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44464 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55465 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25466 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55467 'string_tokenizer_unittest.cc',
468 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12469 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37470 'stringprintf_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39471 'synchronization/cancellation_flag_unittest.cc',
[email protected]bc581a682011-01-01 23:16:20472 'synchronization/condition_variable_unittest.cc',
473 'synchronization/lock_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39474 'synchronization/waitable_event_unittest.cc',
475 'synchronization/waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55476 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54477 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55478 'sys_string_conversions_unittest.cc',
[email protected]e41d7dd2011-05-18 07:29:56479 'system_monitor/system_monitor_unittest.cc',
[email protected]95991b12012-04-17 02:48:06480 'task_runner_util_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38481 'template_util_unittest.cc',
[email protected]ce5d0472012-04-02 10:16:55482 'test/sequenced_worker_pool_owner.cc',
483 'test/sequenced_worker_pool_owner.h',
[email protected]7a79dafb2011-10-29 03:16:52484 'test/trace_event_analyzer_unittest.cc',
[email protected]c9177502011-01-01 04:48:49485 'threading/non_thread_safe_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16486 'threading/platform_thread_unittest.cc',
[email protected]098def22012-01-01 05:42:34487 'threading/sequenced_worker_pool_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36488 'threading/simple_thread_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16489 'threading/thread_checker_unittest.cc',
[email protected]34b99632011-01-01 01:01:06490 'threading/thread_collision_warner_unittest.cc',
[email protected]1357c322010-12-30 22:18:56491 'threading/thread_local_storage_unittest.cc',
492 'threading/thread_local_unittest.cc',
[email protected]34b99632011-01-01 01:01:06493 'threading/thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36494 'threading/watchdog_unittest.cc',
495 'threading/worker_pool_posix_unittest.cc',
496 'threading/worker_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55497 'time_unittest.cc',
498 'time_win_unittest.cc',
499 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58500 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55501 'tracked_objects_unittest.cc',
502 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48503 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53504 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55505 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31506 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36507 'vlog_unittest.cc',
[email protected]f21ed6f2011-12-22 22:07:41508 'win/dllmain.cc',
[email protected]c43b0dc2011-12-03 04:31:13509 'win/enum_variant_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40510 'win/event_trace_consumer_unittest.cc',
511 'win/event_trace_controller_unittest.cc',
512 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45513 'win/i18n_unittest.cc',
[email protected]c43b0dc2011-12-03 04:31:13514 'win/iunknown_impl_unittest.cc',
[email protected]a8d1ebbe2011-01-01 18:26:16515 'win/object_watcher_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54516 'win/pe_image_unittest.cc',
517 'win/registry_unittest.cc',
[email protected]da00f002011-12-07 21:44:28518 'win/sampling_profiler_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05519 'win/scoped_bstr_unittest.cc',
520 'win/scoped_comptr_unittest.cc',
[email protected]e8f5ff52012-04-04 19:57:50521 'win/scoped_process_information_unittest.cc',
[email protected]e1713f22012-08-27 21:19:00522 'win/startup_information_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05523 'win/scoped_variant_unittest.cc',
[email protected]a8e20582010-12-31 17:18:50524 'win/win_util_unittest.cc',
[email protected]ecb924c2011-03-17 00:34:09525 'win/wrapped_window_proc_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55526 ],
[email protected]2f80c312009-02-25 21:26:55527 'dependencies': [
528 'base',
[email protected]d34d79f2009-10-14 22:06:14529 'base_i18n',
[email protected]167d52b2011-04-04 22:42:46530 'base_static',
[email protected]c5549062012-03-21 05:55:06531 'run_all_unittests',
[email protected]6fa18d12010-08-16 04:18:41532 'test_support_base',
[email protected]23bb71f2011-04-21 22:22:10533 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ce3157102009-05-28 07:23:16534 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55535 '../testing/gtest.gyp:gtest',
[email protected]60e6c842011-05-30 11:45:43536 '../third_party/icu/icu.gyp:icui18n',
537 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55538 ],
[email protected]81814bce2011-09-10 03:03:00539 'includes': ['../build/nocompile.gypi'],
540 'variables': {
541 # TODO(ajwong): Is there a way to autodetect this?
542 'module_dir': 'base'
543 },
[email protected]2f80c312009-02-25 21:26:55544 'conditions': [
[email protected]923402f32011-10-03 16:25:19545 ['OS == "android"', {
[email protected]923402f32011-10-03 16:25:19546 'sources!': [
[email protected]923402f32011-10-03 16:25:19547 # TODO(michaelbai): Removed the below once the fix upstreamed.
[email protected]595b0632012-04-26 20:19:47548 'debug/stack_trace_unittest.cc',
[email protected]923402f32011-10-03 16:25:19549 ],
[email protected]cef04bcf2012-02-24 00:09:38550 'dependencies': [
[email protected]fae37d62012-03-08 12:39:13551 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
[email protected]cef04bcf2012-02-24 00:09:38552 ],
[email protected]595b0632012-04-26 20:19:47553 'conditions': [
[email protected]a44d1212012-05-25 20:17:49554 ['gtest_target_type == "shared_library"', {
[email protected]595b0632012-04-26 20:19:47555 'dependencies': [
556 '../testing/android/native_test.gyp:native_test_native_code',
557 ],
[email protected]595b0632012-04-26 20:19:47558 }],
[email protected]d9f96952012-04-19 21:02:09559 ],
560 }],
[email protected]4bfc2dc2012-07-11 15:09:10561 ['OS == "ios"', {
562 'sources/': [
563 # Only test the iOS-meaningful portion of process_utils.
564 ['exclude', '^process_util_unittest'],
[email protected]feb727e2012-07-13 11:02:57565 ['include', '^process_util_unittest_ios\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10566 # Requires spawning processes.
[email protected]feb727e2012-07-13 11:02:57567 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10568 # TODO(ios): Remove these as base/ is unforked.
569 # For now, exclude everything that doesn't build as-is, just to
570 # get a minimal target building.
[email protected]4a32f122012-07-25 20:02:48571 # Unittests that don't pass.
[email protected]feb727e2012-07-13 11:02:57572 ['exclude', '^message_loop_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10573 ],
[email protected]da19703b2012-07-17 14:15:34574 'actions': [
575 {
576 'action_name': 'copy_test_data',
577 'variables': {
578 'test_data_files': [
579 'data/json/bom_feff.json',
580 'data/file_util_unittest',
581 ],
582 'test_data_prefix': 'base',
583 },
584 'includes': [ '../build/copy_test_data_ios.gypi' ],
585 },
586 ],
[email protected]4bfc2dc2012-07-11 15:09:10587 }],
[email protected]258dca42011-09-21 00:17:19588 ['use_glib==1', {
[email protected]8b03e8d2009-03-02 06:53:31589 'sources!': [
590 'file_version_info_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31591 ],
[email protected]63dc3782010-10-19 19:09:30592 'conditions': [
593 [ 'linux_use_tcmalloc==1', {
594 'dependencies': [
595 'allocator/allocator.gyp:allocator',
596 ],
597 },
598 ],
[email protected]258dca42011-09-21 00:17:19599 [ 'toolkit_uses_gtk==1', {
600 'sources': [
601 'nix/xdg_util_unittest.cc',
602 ],
603 'dependencies': [
604 '../build/linux/system.gyp:gtk',
605 ]
606 }],
[email protected]63dc3782010-10-19 19:09:30607 ],
[email protected]9d384032009-03-20 23:13:26608 'dependencies': [
[email protected]258dca42011-09-21 00:17:19609 '../build/linux/system.gyp:glib',
[email protected]638e9df42011-05-31 17:19:30610 '../build/linux/system.gyp:ssl',
[email protected]a97488f2009-09-17 21:37:19611 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26612 ],
[email protected]258dca42011-09-21 00:17:19613 }, { # use_glib!=1
[email protected]b44d5cc2009-06-15 10:30:44614 'sources!': [
615 'message_pump_glib_unittest.cc',
616 ]
[email protected]8b03e8d2009-03-02 06:53:31617 }],
[email protected]2f80c312009-02-25 21:26:55618 # This is needed to trigger the dll copy step on windows.
619 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31620 ['OS == "win"', {
621 'dependencies': [
[email protected]280629492009-09-09 06:49:08622 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31623 ],
624 'sources!': [
[email protected]3f04f2b2009-04-30 19:40:03625 'file_descriptor_shuffle_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14626 'files/dir_reader_posix_unittest.cc',
[email protected]541c4db2010-12-30 18:29:28627 'threading/worker_pool_posix_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23628 'message_pump_libevent_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31629 ],
630 }, { # OS != "win"
[email protected]92508df2011-08-04 22:23:55631 'dependencies': [
632 '../third_party/libevent/libevent.gyp:libevent'
633 ],
[email protected]ce0e72462010-10-16 03:46:05634 'sources/': [
635 ['exclude', '^win/'],
636 ],
[email protected]8b03e8d2009-03-02 06:53:31637 'sources!': [
[email protected]3381f172011-05-25 00:20:42638 'debug/trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31639 'time_win_unittest.cc',
[email protected]3381f172011-05-25 00:20:42640 'win/win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31641 ],
642 }],
[email protected]4bfc2dc2012-07-11 15:09:10643 ], # conditions
644 'target_conditions': [
645 ['OS == "ios"', {
646 'sources/': [
647 # Pull in specific Mac files for iOS (which have been filtered out
648 # by file name rules).
[email protected]feb727e2012-07-13 11:02:57649 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
[email protected]a5e2cd182012-07-25 17:47:58650 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
[email protected]feb727e2012-07-13 11:02:57651 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
[email protected]4bfc2dc2012-07-11 15:09:10652 ],
653 }],
654 ], # target_conditions
[email protected]2f80c312009-02-25 21:26:55655 },
[email protected]e8ef09a2009-03-16 23:46:45656 {
657 'target_name': 'test_support_base',
[email protected]5a547332011-05-19 23:18:53658 'type': 'static_library',
[email protected]e8ef09a2009-03-16 23:46:45659 'dependencies': [
660 'base',
[email protected]23bb71f2011-04-21 22:22:10661 'base_static',
[email protected]afa8020c2010-08-16 04:42:26662 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41663 '../testing/gmock.gyp:gmock',
664 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06665 ],
[email protected]23bb71f2011-04-21 22:22:10666 'export_dependent_settings': [
667 'base',
668 ],
[email protected]afa8020c2010-08-16 04:42:26669 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34670 ['toolkit_uses_gtk==1', {
[email protected]afa8020c2010-08-16 04:42:26671 'dependencies': [
672 # test_suite initializes GTK.
673 '../build/linux/system.gyp:gtk',
674 ],
675 }],
[email protected]3ae445e82011-06-20 17:44:05676 ['os_posix==0', {
677 'sources!': [
678 'test/scoped_locale.cc',
679 'test/scoped_locale.h',
680 ],
681 }],
[email protected]c48aef92011-11-22 23:41:45682 ['os_bsd==1', {
[email protected]167ec822011-10-24 22:05:27683 'sources!': [
684 'test/test_file_util_linux.cc',
685 ],
686 }],
[email protected]afa8020c2010-08-16 04:42:26687 ],
[email protected]7d1ba9392009-08-03 18:35:06688 'sources': [
[email protected]bc052ef52010-10-10 02:42:32689 'perftimer.cc',
[email protected]73b32422012-07-13 09:21:34690 'test/main_hook.cc',
691 'test/main_hook.h',
692 'test/main_hook_ios.mm',
[email protected]a3668802010-12-18 01:18:29693 'test/mock_chrome_application_mac.h',
694 'test/mock_chrome_application_mac.mm',
[email protected]df6c4192012-03-02 23:13:40695 'test/mock_devices_changed_observer.cc',
696 'test/mock_devices_changed_observer.h',
[email protected]c4996f762011-06-28 14:29:06697 'test/mock_time_provider.cc',
698 'test/mock_time_provider.h',
[email protected]20e14912010-08-17 19:40:11699 'test/multiprocess_test.cc',
700 'test/multiprocess_test.h',
[email protected]04de3802012-05-29 19:36:32701 'test/multiprocess_test_android.cc',
[email protected]99cc51e2010-10-10 00:21:35702 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11703 'test/perf_test_suite.h',
[email protected]3ae445e82011-06-20 17:44:05704 'test/scoped_locale.cc',
705 'test/scoped_locale.h',
[email protected]ce5d0472012-04-02 10:16:55706 'test/sequenced_task_runner_test_template.cc',
707 'test/sequenced_task_runner_test_template.h',
[email protected]c8cae7c2012-03-09 06:20:18708 'test/task_runner_test_template.cc',
709 'test/task_runner_test_template.h',
[email protected]fb895c62009-10-09 18:20:30710 'test/test_file_util.h',
711 'test/test_file_util_linux.cc',
712 'test/test_file_util_mac.cc',
713 'test/test_file_util_posix.cc',
714 'test/test_file_util_win.cc',
[email protected]73b32422012-07-13 09:21:34715 'test/test_listener_ios.h',
716 'test/test_listener_ios.mm',
[email protected]a8f85882011-08-24 20:02:42717 'test/test_reg_util_win.cc',
718 'test/test_reg_util_win.h',
[email protected]6fa18d12010-08-16 04:18:41719 'test/test_suite.cc',
720 'test/test_suite.h',
[email protected]7ed054db2012-06-01 17:20:04721 'test/test_support_android.cc',
722 'test/test_support_android.h',
[email protected]4d230e32012-07-25 19:38:38723 'test/test_support_ios.h',
724 'test/test_support_ios.mm',
[email protected]cbb9f50f2010-10-05 19:03:05725 'test/test_switches.cc',
726 'test/test_switches.h',
727 'test/test_timeouts.cc',
728 'test/test_timeouts.h',
[email protected]8aaae7b2011-06-28 06:43:20729 'test/thread_test_helper.cc',
730 'test/thread_test_helper.h',
[email protected]7a79dafb2011-10-29 03:16:52731 'test/trace_event_analyzer.cc',
732 'test/trace_event_analyzer.h',
[email protected]6085ccd2012-02-29 03:57:29733 'test/values_test_util.cc',
734 'test/values_test_util.h',
[email protected]7d1ba9392009-08-03 18:35:06735 ],
[email protected]7d1ba9392009-08-03 18:35:06736 },
737 {
738 'target_name': 'test_support_perf',
[email protected]5a547332011-05-19 23:18:53739 'type': 'static_library',
[email protected]7d1ba9392009-08-03 18:35:06740 'dependencies': [
741 'base',
[email protected]e8ef09a2009-03-16 23:46:45742 '../testing/gtest.gyp:gtest',
743 ],
744 'sources': [
745 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30746 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45747 ],
748 'direct_dependent_settings': {
749 'defines': [
750 'PERF_TEST',
751 ],
752 },
[email protected]9d384032009-03-20 23:13:26753 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34754 ['toolkit_uses_gtk==1', {
[email protected]9d384032009-03-20 23:13:26755 'dependencies': [
756 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30757 # base/test/perf_test_suite.h
758 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26759 # gtk/gtk.h
760 '../build/linux/system.gyp:gtk',
761 ],
762 }],
763 ],
[email protected]e8ef09a2009-03-16 23:46:45764 },
[email protected]2f80c312009-02-25 21:26:55765 ],
766 'conditions': [
[email protected]23396202012-07-16 10:12:33767 ['OS!="ios"', {
768 'targets': [
769 {
770 'target_name': 'check_example',
771 'type': 'executable',
772 'sources': [
773 'check_example.cc',
774 ],
775 'dependencies': [
776 'base',
777 ],
778 },
779 ],
780 }],
[email protected]9ac2db692012-06-08 01:01:57781 ['OS == "win"', {
[email protected]83c1c3c2012-06-07 18:43:44782 'targets': [
783 {
784 'target_name': 'base_nacl_win64',
785 'type': '<(component)',
786 'variables': {
787 'base_target': 1,
788 },
789 'dependencies': [
790 'base_static_win64',
791 'allocator/allocator.gyp:allocator_extension_thunks_win64',
792 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
793 ],
794 # TODO(gregoryd): direct_dependent_settings should be shared with the
795 # 32-bit target, but it doesn't work due to a bug in gyp
796 'direct_dependent_settings': {
797 'include_dirs': [
798 '..',
799 ],
800 },
801 'defines': [
802 '<@(nacl_win64_defines)',
803 ],
[email protected]1968d9772012-07-26 22:53:13804 'sources!': [
805 # base64.cc depends on modp_b64.
806 'base64.cc',
807 ],
[email protected]83c1c3c2012-06-07 18:43:44808 'configurations': {
809 'Common_Base': {
810 'msvs_target_platform': 'x64',
811 },
812 },
813 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57814 ['component == "shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44815 'sources!': [
816 'debug/debug_on_start_win.cc',
817 ],
818 }],
819 ],
820 },
821 {
822 'target_name': 'base_i18n_nacl_win64',
823 'type': '<(component)',
824 # TODO(gregoryd): direct_dependent_settings should be shared with the
825 # 32-bit target, but it doesn't work due to a bug in gyp
826 'direct_dependent_settings': {
827 'include_dirs': [
828 '..',
829 ],
830 },
831 'defines': [
832 '<@(nacl_win64_defines)',
833 'BASE_I18N_IMPLEMENTATION',
834 ],
835 'include_dirs': [
836 '..',
837 ],
838 'sources': [
839 'i18n/icu_util_nacl_win64.cc',
840 ],
841 'configurations': {
842 'Common_Base': {
843 'msvs_target_platform': 'x64',
844 },
845 },
846 },
847 ],
848 }],
[email protected]4bfc2dc2012-07-11 15:09:10849 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]83c1c3c2012-06-07 18:43:44850 'targets': [
851 {
852 'target_name': 'symbolize',
853 'type': 'static_library',
854 'toolsets': ['host', 'target'],
855 'variables': {
856 'chromium_code': 0,
857 },
858 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57859 ['OS == "solaris"', {
[email protected]83c1c3c2012-06-07 18:43:44860 'include_dirs': [
861 '/usr/gnu/include',
862 '/usr/gnu/include/libelf',
863 ],
864 },],
865 ],
866 'cflags': [
867 '-Wno-sign-compare',
868 ],
869 'cflags!': [
870 '-Wextra',
871 ],
872 'sources': [
873 'third_party/symbolize/config.h',
874 'third_party/symbolize/demangle.cc',
875 'third_party/symbolize/demangle.h',
876 'third_party/symbolize/glog/logging.h',
877 'third_party/symbolize/glog/raw_logging.h',
878 'third_party/symbolize/symbolize.cc',
879 'third_party/symbolize/symbolize.h',
880 'third_party/symbolize/utilities.h',
881 ],
882 'include_dirs': [
883 '..',
884 ],
885 },
886 {
887 'target_name': 'xdg_mime',
888 'type': 'static_library',
889 'toolsets': ['host', 'target'],
890 'variables': {
891 'chromium_code': 0,
892 },
893 'cflags!': [
894 '-Wextra',
895 ],
896 'sources': [
897 'third_party/xdg_mime/xdgmime.c',
898 'third_party/xdg_mime/xdgmime.h',
899 'third_party/xdg_mime/xdgmimealias.c',
900 'third_party/xdg_mime/xdgmimealias.h',
901 'third_party/xdg_mime/xdgmimecache.c',
902 'third_party/xdg_mime/xdgmimecache.h',
903 'third_party/xdg_mime/xdgmimeglob.c',
904 'third_party/xdg_mime/xdgmimeglob.h',
905 'third_party/xdg_mime/xdgmimeicon.c',
906 'third_party/xdg_mime/xdgmimeicon.h',
907 'third_party/xdg_mime/xdgmimeint.c',
908 'third_party/xdg_mime/xdgmimeint.h',
909 'third_party/xdg_mime/xdgmimemagic.c',
910 'third_party/xdg_mime/xdgmimemagic.h',
911 'third_party/xdg_mime/xdgmimeparent.c',
912 'third_party/xdg_mime/xdgmimeparent.h',
913 ],
914 },
915 ],
916 }],
[email protected]65208a02012-04-17 04:39:52917 ['OS == "android"', {
918 'targets': [
919 {
920 'target_name': 'base_jni_headers',
921 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55922 'sources': [
923 'android/java/src/org/chromium/base/BuildInfo.java',
924 'android/java/src/org/chromium/base/LocaleUtils.java',
[email protected]f152b67b2012-08-03 12:43:29925 'android/java/src/org/chromium/base/PathService.java',
[email protected]e46f66152012-07-19 20:02:55926 'android/java/src/org/chromium/base/PathUtils.java',
927 'android/java/src/org/chromium/base/SystemMessageHandler.java',
928 ],
[email protected]65208a02012-04-17 04:39:52929 'variables': {
[email protected]e46f66152012-07-19 20:02:55930 'jni_gen_dir': 'base',
[email protected]65208a02012-04-17 04:39:52931 },
932 'includes': [ '../build/jni_generator.gypi' ],
933 },
934 {
935 'target_name': 'base_java',
936 'type': 'none',
937 'variables': {
938 'package_name': 'base',
939 'java_in_dir': 'android/java',
940 },
941 'includes': [ '../build/java.gypi' ],
942 },
943 ],
944 }],
[email protected]06ff3c52012-03-01 01:58:05945 ['OS == "win"', {
[email protected]2f80c312009-02-25 21:26:55946 'targets': [
947 {
948 'target_name': 'debug_message',
949 'type': 'executable',
950 'sources': [
951 'debug_message.cc',
952 ],
[email protected]3f8bfc362009-05-22 02:39:14953 'msvs_settings': {
954 'VCLinkerTool': {
955 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
956 },
957 },
[email protected]2f80c312009-02-25 21:26:55958 },
959 ],
960 }],
[email protected]a44d1212012-05-25 20:17:49961 # Special target to wrap a gtest_target_type == shared_library
[email protected]d9f96952012-04-19 21:02:09962 # base_unittests into an android apk for execution.
963 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
964 # in the gyp make generator. What is the correct way to extract
965 # this path from gyp and into 'raw' for input to antfiles?
966 # Hard-coding in the gypfile seems a poor choice.
[email protected]a44d1212012-05-25 20:17:49967 ['OS == "android" and gtest_target_type == "shared_library"', {
[email protected]d9f96952012-04-19 21:02:09968 'targets': [
969 {
970 'target_name': 'base_unittests_apk',
971 'type': 'none',
972 'dependencies': [
[email protected]a44d1212012-05-25 20:17:49973 'base_java',
[email protected]d9f96952012-04-19 21:02:09974 'base_unittests',
975 ],
[email protected]a44d1212012-05-25 20:17:49976 'variables': {
977 'test_suite_name': 'base_unittests',
[email protected]ef7ed7a2012-05-29 23:19:13978 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
[email protected]a44d1212012-05-25 20:17:49979 },
980 'includes': [ '../build/apk_test.gypi' ],
[email protected]9ac2db692012-06-08 01:01:57981 },
[email protected]f5460982012-07-26 22:39:03982 {
983 'target_name': 'base_java_test_support',
984 'type': 'none',
985 'dependencies': [
986 'base_java',
987 ],
988 'variables': {
989 'package_name': 'base_javatests',
990 'java_in_dir': '../base/android/javatests',
991 },
992 'includes': [ '../build/java.gypi' ],
993 },
[email protected]9ac2db692012-06-08 01:01:57994 ],
[email protected]d9f96952012-04-19 21:02:09995 }],
[email protected]d34eb412012-07-28 00:03:41996 ['test_isolation_mode != "noop"', {
997 'targets': [
998 {
999 'target_name': 'base_unittests_run',
1000 'type': 'none',
1001 'dependencies': [
1002 'base_unittests',
1003 ],
1004 'includes': [
1005 'base_unittests.isolate',
1006 ],
1007 'actions': [
1008 {
1009 'action_name': 'isolate',
1010 'inputs': [
1011 'base_unittests.isolate',
1012 '<@(isolate_dependency_tracked)',
1013 ],
1014 'outputs': [
1015 '<(PRODUCT_DIR)/base_unittests.results',
1016 ],
1017 'action': [
1018 'python',
1019 '../tools/isolate/isolate.py',
1020 '<(test_isolation_mode)',
1021 '--outdir', '<(test_isolation_outdir)',
1022 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
1023 '--variable', 'OS', '<(OS)',
1024 '--result', '<@(_outputs)',
1025 '--isolate', 'base_unittests.isolate',
1026 ],
1027 },
1028 ],
1029 },
1030 ],
1031 }],
[email protected]2f80c312009-02-25 21:26:551032 ],
1033}