blob: 4102004d0dd4a2740d6034e1f04047fa95dc8bba [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': [
[email protected]bb6bd1f2012-09-10 15:52:47125 'base_jni_headers',
[email protected]83c1c3c2012-06-07 18:43:44126 'symbolize',
127 '../third_party/ashmem/ashmem.gyp:ashmem',
128 '../third_party/icu/icu.gyp:icuuc',
[email protected]83c1c3c2012-06-07 18:43:44129 ],
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 ],
[email protected]2f11e0172012-10-05 16:20:01144 }],
145 ['OS == "android" and _toolset == "target" and android_build_type == 0', {
146 'dependencies': [
147 'base_java',
148 ],
[email protected]83c1c3c2012-06-07 18:43:44149 }],
[email protected]9ac2db692012-06-08 01:01:57150 ['os_bsd==1', {
[email protected]83c1c3c2012-06-07 18:43:44151 'include_dirs': [
152 '/usr/local/include',
153 ],
154 'link_settings': {
155 'libraries': [
156 '-L/usr/local/lib -lexecinfo',
[email protected]9ac2db692012-06-08 01:01:57157 ],
[email protected]83c1c3c2012-06-07 18:43:44158 },
[email protected]83c1c3c2012-06-07 18:43:44159 }],
[email protected]9ac2db692012-06-08 01:01:57160 ['OS == "linux"', {
161 'link_settings': {
162 'libraries': [
163 # We need rt for clock_gettime().
164 '-lrt',
165 # For 'native_library_linux.cc'
166 '-ldl',
167 ],
168 },
169 }],
170 ['OS == "mac"', {
[email protected]83c1c3c2012-06-07 18:43:44171 'link_settings': {
172 'libraries': [
173 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
[email protected]04a07542012-07-23 16:51:25174 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
[email protected]83c1c3c2012-06-07 18:43:44175 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
176 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
177 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
178 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
179 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
180 ],
181 },
182 'dependencies': [
183 '../third_party/mach_override/mach_override.gyp:mach_override',
184 ],
185 }],
[email protected]62cafe02012-07-15 14:24:46186 ['OS == "ios"', {
187 'link_settings': {
188 'libraries': [
189 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
[email protected]de6bb902012-07-25 11:07:44190 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
191 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
[email protected]62cafe02012-07-15 14:24:46192 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
193 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
194 ],
195 },
196 }],
[email protected]9ac2db692012-06-08 01:01:57197 ['OS != "win"', {
[email protected]83c1c3c2012-06-07 18:43:44198 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
199 },],
[email protected]9ac2db692012-06-08 01:01:57200 ['component=="shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44201 'conditions': [
202 ['OS=="win"', {
203 'sources!': [
204 'debug/debug_on_start_win.cc',
205 ],
206 }],
207 ],
208 }],
209 ],
210 'sources': [
211 'third_party/nspr/prcpucfg.h',
212 'third_party/nspr/prcpucfg_win.h',
213 'third_party/nspr/prtypes.h',
214 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
215 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
216 'auto_reset.h',
[email protected]83c1c3c2012-06-07 18:43:44217 'event_recorder.h',
218 'event_recorder_stubs.cc',
219 'event_recorder_win.cc',
[email protected]83c1c3c2012-06-07 18:43:44220 'linux_util.cc',
221 'linux_util.h',
222 'md5.cc',
223 'md5.h',
224 'message_pump_android.cc',
225 'message_pump_android.h',
226 'message_pump_glib.cc',
227 'message_pump_glib.h',
228 'message_pump_gtk.cc',
229 'message_pump_gtk.h',
230 'message_pump_observer.h',
231 'message_pump_aurax11.cc',
232 'message_pump_aurax11.h',
233 'message_pump_libevent.cc',
234 'message_pump_libevent.h',
235 'message_pump_mac.h',
236 'message_pump_mac.mm',
237 'metrics/field_trial.cc',
238 'metrics/field_trial.h',
[email protected]6f412d62012-11-09 20:22:00239 'posix/file_descriptor_shuffle.cc',
240 'posix/file_descriptor_shuffle.h',
[email protected]83c1c3c2012-06-07 18:43:44241 'sync_socket.h',
242 'sync_socket_win.cc',
243 'sync_socket_posix.cc',
[email protected]83c1c3c2012-06-07 18:43:44244 ],
245 },
246 {
[email protected]d34d79f2009-10-14 22:06:14247 'target_name': 'base_i18n',
[email protected]c743d4c72011-08-31 22:15:48248 'type': '<(component)',
[email protected]1d88ef32011-12-20 19:59:10249 'variables': {
250 'enable_wexit_time_destructors': 1,
251 'optimize': 'max',
252 },
[email protected]2f80c312009-02-25 21:26:55253 'dependencies': [
254 'base',
[email protected]c743d4c72011-08-31 22:15:48255 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d34d79f2009-10-14 22:06:14256 '../third_party/icu/icu.gyp:icui18n',
257 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55258 ],
[email protected]8f6f2022010-03-22 21:24:57259 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34260 ['toolkit_uses_gtk==1', {
[email protected]8f6f2022010-03-22 21:24:57261 'dependencies': [
262 # i18n/rtl.cc uses gtk
263 '../build/linux/system.gyp:gtk',
264 ],
265 }],
266 ],
[email protected]2f80c312009-02-25 21:26:55267 'export_dependent_settings': [
268 'base',
269 ],
[email protected]c743d4c72011-08-31 22:15:48270 'defines': [
271 'BASE_I18N_IMPLEMENTATION',
272 ],
[email protected]d34d79f2009-10-14 22:06:14273 'sources': [
[email protected]c743d4c72011-08-31 22:15:48274 'i18n/base_i18n_export.h',
[email protected]14cd2e62011-02-24 09:20:16275 'i18n/bidi_line_iterator.cc',
276 'i18n/bidi_line_iterator.h',
[email protected]55954d892010-12-15 18:00:54277 'i18n/break_iterator.cc',
278 'i18n/break_iterator.h',
[email protected]0ca5c102010-08-23 14:30:27279 'i18n/char_iterator.cc',
280 'i18n/char_iterator.h',
[email protected]503d03872011-05-06 08:36:26281 'i18n/case_conversion.cc',
282 'i18n/case_conversion.h',
[email protected]d34d79f2009-10-14 22:06:14283 'i18n/file_util_icu.cc',
284 'i18n/file_util_icu.h',
[email protected]193c3512010-05-11 09:19:30285 'i18n/icu_encoding_detection.cc',
286 'i18n/icu_encoding_detection.h',
[email protected]d34d79f2009-10-14 22:06:14287 'i18n/icu_string_conversions.cc',
288 'i18n/icu_string_conversions.h',
289 'i18n/icu_util.cc',
290 'i18n/icu_util.h',
291 'i18n/number_formatting.cc',
292 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:01293 'i18n/rtl.cc',
294 'i18n/rtl.h',
[email protected]923402f32011-10-03 16:25:19295 'i18n/string_search.cc',
296 'i18n/string_search.h',
[email protected]d34d79f2009-10-14 22:06:14297 'i18n/time_formatting.cc',
298 'i18n/time_formatting.h',
[email protected]d34d79f2009-10-14 22:06:14299 ],
[email protected]2f80c312009-02-25 21:26:55300 },
301 {
[email protected]f59f33e2012-11-01 12:05:27302 'target_name': 'base_prefs',
303 'type': '<(component)',
304 'variables': {
305 'enable_wexit_time_destructors': 1,
306 'optimize': 'max',
307 },
308 'dependencies': [
309 'base',
310 ],
311 'export_dependent_settings': [
312 'base',
313 ],
314 'defines': [
315 'BASE_PREFS_IMPLEMENTATION',
316 ],
317 'sources': [
318 'prefs/default_pref_store.cc',
319 'prefs/default_pref_store.h',
320 'prefs/json_pref_store.cc',
321 'prefs/json_pref_store.h',
322 'prefs/overlay_user_pref_store.cc',
323 'prefs/overlay_user_pref_store.h',
324 'prefs/persistent_pref_store.h',
325 'prefs/pref_notifier.h',
326 'prefs/pref_store.cc',
327 'prefs/pref_store.h',
328 'prefs/pref_value_map.cc',
329 'prefs/pref_value_map.h',
330 'prefs/public/pref_change_registrar.cc',
331 'prefs/public/pref_change_registrar.h',
[email protected]a6a7ced2012-11-01 17:24:18332 'prefs/public/pref_observer.h',
[email protected]f59f33e2012-11-01 12:05:27333 'prefs/public/pref_service_base.h',
334 'prefs/value_map_pref_store.cc',
335 'prefs/value_map_pref_store.h',
336 ],
337 },
338 {
[email protected]167d52b2011-04-04 22:42:46339 # This is the subset of files from base that should not be used with a
[email protected]23bb71f2011-04-21 22:22:10340 # dynamic library. Note that this library cannot depend on base because
341 # base depends on base_static.
[email protected]167d52b2011-04-04 22:42:46342 'target_name': 'base_static',
[email protected]5a547332011-05-19 23:18:53343 'type': 'static_library',
[email protected]1d88ef32011-12-20 19:59:10344 'variables': {
345 'enable_wexit_time_destructors': 1,
346 'optimize': 'max',
347 },
[email protected]e688d9c2011-09-15 21:17:32348 'toolsets': ['host', 'target'],
[email protected]167d52b2011-04-04 22:42:46349 'sources': [
[email protected]46fe10d62011-05-26 22:03:28350 'base_switches.cc',
351 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46352 'win/pe_image.cc',
353 'win/pe_image.h',
354 ],
355 'include_dirs': [
356 '..',
357 ],
358 },
359 {
360 # TODO(rvargas): Remove this when gyp finally supports a clean model.
361 # See bug 36232.
362 'target_name': 'base_static_win64',
[email protected]5a547332011-05-19 23:18:53363 'type': 'static_library',
[email protected]167d52b2011-04-04 22:42:46364 'sources': [
[email protected]46fe10d62011-05-26 22:03:28365 'base_switches.cc',
366 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46367 'win/pe_image.cc',
368 'win/pe_image.h',
369 ],
[email protected]1968d9772012-07-26 22:53:13370 'sources!': [
371 # base64.cc depends on modp_b64.
372 'base64.cc',
373 ],
[email protected]167d52b2011-04-04 22:42:46374 'include_dirs': [
375 '..',
376 ],
377 'configurations': {
378 'Common_Base': {
379 'msvs_target_platform': 'x64',
380 },
381 },
382 'defines': [
383 'NACL_WIN64',
384 ],
385 # TODO(rvargas): Bug 78117. Remove this.
386 'msvs_disabled_warnings': [
387 4244,
388 ],
389 },
[email protected]c5549062012-03-21 05:55:06390 # Include this target for a main() function that simply instantiates
391 # and runs a base::TestSuite.
392 {
393 'target_name': 'run_all_unittests',
394 'type': 'static_library',
395 'dependencies': [
396 'test_support_base',
397 ],
398 'sources': [
399 'test/run_all_unittests.cc',
400 ],
401 },
[email protected]6fa1e7ef2012-03-14 11:24:04402 {
[email protected]2f80c312009-02-25 21:26:55403 'target_name': 'base_unittests',
[email protected]d9f96952012-04-19 21:02:09404 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55405 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40406 # Tests.
[email protected]96e7ade2011-12-05 14:42:08407 'android/jni_android_unittest.cc',
[email protected]7a3b0e42012-10-09 19:43:10408 'android/jni_array_unittest.cc',
[email protected]595b0632012-04-26 20:19:47409 'android/path_utils_unittest.cc',
[email protected]f98d7b92011-09-09 10:17:35410 'android/scoped_java_ref_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55411 'at_exit_unittest.cc',
412 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:53413 'base64_unittest.cc',
[email protected]c6944272012-01-06 22:12:28414 'bind_helpers_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38415 'bind_unittest.cc',
[email protected]81814bce2011-09-10 03:03:00416 'bind_unittest.nc',
[email protected]6d1729e2009-11-18 23:08:39417 'bits_unittest.cc',
[email protected]08aa02762011-11-11 16:09:31418 'build_time_unittest.cc',
[email protected]2041cf342010-02-19 03:15:59419 'callback_unittest.cc',
[email protected]481915a772011-09-10 03:14:35420 'callback_unittest.nc',
[email protected]b77576f52011-11-24 04:12:04421 'cancelable_callback_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55422 'command_line_unittest.cc',
[email protected]8392ccdd2012-11-10 00:46:16423 'containers/linked_list_unittest.cc',
[email protected]e6cf530d2012-11-13 20:34:14424 'containers/mru_cache_unittest.cc',
[email protected]60f9af722012-11-09 22:49:19425 'containers/small_map_unittest.cc',
[email protected]8392ccdd2012-11-10 00:46:16426 'containers/stack_container_unittest.cc',
[email protected]14cd2e62011-02-24 09:20:16427 'cpu_unittest.cc',
[email protected]58580352010-10-26 04:07:50428 'debug/leak_tracker_unittest.cc',
429 'debug/stack_trace_unittest.cc',
[email protected]366ae242011-05-10 02:23:58430 'debug/trace_event_unittest.cc',
[email protected]e91ce802012-08-16 04:32:49431 'debug/trace_event_unittest.h',
[email protected]58580352010-10-26 04:07:50432 'debug/trace_event_win_unittest.cc',
[email protected]76b90d312010-08-03 03:00:50433 'environment_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55434 'file_path_unittest.cc',
[email protected]77e07b842012-04-23 18:40:57435 'file_util_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55436 'file_util_unittest.cc',
437 'file_version_info_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14438 'files/dir_reader_posix_unittest.cc',
[email protected]43486252012-10-24 16:33:36439 'files/important_file_writer_unittest.cc',
[email protected]ea1a3f62012-11-16 20:34:23440 'files/scoped_temp_dir_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59441 'gmock_unittest.cc',
[email protected]7e49ad32012-06-14 14:22:07442 'guid_unittest.cc',
[email protected]b3aabd342012-06-04 19:33:56443 'hi_res_timer_manager_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38444 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:54445 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:27446 'i18n/char_iterator_unittest.cc',
[email protected]503d03872011-05-06 08:36:26447 'i18n/case_conversion_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:30448 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:50449 'i18n/icu_string_conversions_unittest.cc',
[email protected]7a3b2632011-06-22 20:40:22450 'i18n/number_formatting_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:01451 'i18n/rtl_unittest.cc',
[email protected]258dca42011-09-21 00:17:19452 'i18n/string_search_unittest.cc',
[email protected]60e6c842011-05-30 11:45:43453 'i18n/time_formatting_unittest.cc',
[email protected]e16e8732012-08-07 11:03:11454 'ios/device_util_unittest.mm',
[email protected]6e680cf2012-05-16 15:23:30455 'json/json_parser_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20456 'json/json_reader_unittest.cc',
[email protected]193f946b2011-12-22 18:31:47457 'json/json_value_converter_unittest.cc',
[email protected]8d77b632011-11-17 16:17:23458 'json/json_value_serializer_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20459 'json/json_writer_unittest.cc',
460 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55461 'lazy_instance_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36462 'logging_unittest.cc',
[email protected]a5e2cd182012-07-25 17:47:58463 'mac/bind_objc_block_unittest.mm',
[email protected]28f56492011-10-19 00:36:56464 'mac/foundation_util_unittest.mm',
[email protected]0378bf42011-01-01 18:20:14465 'mac/mac_util_unittest.mm',
[email protected]10756c52011-04-20 22:30:35466 'mac/objc_property_releaser_unittest.mm',
[email protected]d47af2172011-12-01 23:56:17467 'mac/scoped_sending_event_unittest.mm',
[email protected]47f19be2011-04-25 23:54:07468 'md5_unittest.cc',
[email protected]cd924d62012-02-23 17:52:20469 'memory/aligned_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15470 'memory/linked_ptr_unittest.cc',
[email protected]1dda9772011-07-22 13:22:23471 'memory/ref_counted_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15472 'memory/ref_counted_unittest.cc',
[email protected]656d2ab12012-02-09 09:50:58473 'memory/scoped_nsobject_unittest.mm',
[email protected]3b63f8f42011-03-28 01:54:15474 'memory/scoped_ptr_unittest.cc',
[email protected]6e29d6f32012-01-25 00:33:05475 'memory/scoped_ptr_unittest.nc',
[email protected]e5721c182011-03-28 22:27:34476 'memory/scoped_vector_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15477 'memory/singleton_unittest.cc',
478 'memory/weak_ptr_unittest.cc',
[email protected]4c44b8442012-06-15 16:36:12479 'memory/weak_ptr_unittest.nc',
[email protected]656475d2010-05-06 18:34:24480 'message_loop_proxy_impl_unittest.cc',
[email protected]c31af70db22011-08-18 23:13:01481 'message_loop_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55482 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44483 'message_pump_glib_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23484 'message_pump_libevent_unittest.cc',
[email protected]b4af2ec2012-10-05 21:29:44485 'metrics/sample_map_unittest.cc',
[email protected]2f7d9cd2012-09-22 03:42:12486 'metrics/sample_vector_unittest.cc',
[email protected]4a32f122012-07-25 20:02:48487 'metrics/bucket_ranges_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38488 'metrics/field_trial_unittest.cc',
489 'metrics/histogram_unittest.cc',
[email protected]7c7a42752012-08-09 05:14:15490 'metrics/sparse_histogram_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38491 'metrics/stats_table_unittest.cc',
[email protected]34d062322012-08-01 21:34:08492 'metrics/statistics_recorder_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55493 'observer_list_unittest.cc',
[email protected]80e61cc2012-07-18 17:26:50494 'os_compat_android_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55495 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55496 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14497 'platform_file_unittest.cc',
[email protected]6f412d62012-11-09 20:22:00498 'posix/file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55499 'pr_time_unittest.cc',
500 'process_util_unittest.cc',
[email protected]b80ffe22012-07-11 15:35:02501 'process_util_unittest_ios.cc',
[email protected]9f958442010-03-19 18:42:41502 'process_util_unittest_mac.h',
503 'process_util_unittest_mac.mm',
[email protected]dbe5d2072011-11-08 17:09:21504 'profiler/tracked_time_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55505 'rand_util_unittest.cc',
[email protected]e0785902011-05-19 23:34:17506 'scoped_native_library_unittest.cc',
[email protected]28f57b32012-06-22 21:47:30507 'scoped_observer.h',
[email protected]c2ad1e32009-11-04 19:29:58508 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55509 'shared_memory_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47510 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44511 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55512 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25513 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55514 'string_tokenizer_unittest.cc',
515 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12516 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37517 'stringprintf_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39518 'synchronization/cancellation_flag_unittest.cc',
[email protected]bc581a682011-01-01 23:16:20519 'synchronization/condition_variable_unittest.cc',
520 'synchronization/lock_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39521 'synchronization/waitable_event_unittest.cc',
522 'synchronization/waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55523 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54524 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55525 'sys_string_conversions_unittest.cc',
[email protected]e41d7dd2011-05-18 07:29:56526 'system_monitor/system_monitor_unittest.cc',
[email protected]95991b12012-04-17 02:48:06527 'task_runner_util_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38528 'template_util_unittest.cc',
[email protected]ce5d0472012-04-02 10:16:55529 'test/sequenced_worker_pool_owner.cc',
530 'test/sequenced_worker_pool_owner.h',
[email protected]7a79dafb2011-10-29 03:16:52531 'test/trace_event_analyzer_unittest.cc',
[email protected]c9177502011-01-01 04:48:49532 'threading/non_thread_safe_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16533 'threading/platform_thread_unittest.cc',
[email protected]098def22012-01-01 05:42:34534 'threading/sequenced_worker_pool_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36535 'threading/simple_thread_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16536 'threading/thread_checker_unittest.cc',
[email protected]34b99632011-01-01 01:01:06537 'threading/thread_collision_warner_unittest.cc',
[email protected]1357c322010-12-30 22:18:56538 'threading/thread_local_storage_unittest.cc',
539 'threading/thread_local_unittest.cc',
[email protected]34b99632011-01-01 01:01:06540 'threading/thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36541 'threading/watchdog_unittest.cc',
542 'threading/worker_pool_posix_unittest.cc',
543 'threading/worker_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55544 'time_unittest.cc',
545 'time_win_unittest.cc',
546 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58547 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55548 'tracked_objects_unittest.cc',
549 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48550 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53551 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55552 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31553 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36554 'vlog_unittest.cc',
[email protected]f21ed6f2011-12-22 22:07:41555 'win/dllmain.cc',
[email protected]c43b0dc2011-12-03 04:31:13556 'win/enum_variant_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40557 'win/event_trace_consumer_unittest.cc',
558 'win/event_trace_controller_unittest.cc',
559 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45560 'win/i18n_unittest.cc',
[email protected]c43b0dc2011-12-03 04:31:13561 'win/iunknown_impl_unittest.cc',
[email protected]a8d1ebbe2011-01-01 18:26:16562 'win/object_watcher_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54563 'win/pe_image_unittest.cc',
564 'win/registry_unittest.cc',
[email protected]da00f002011-12-07 21:44:28565 'win/sampling_profiler_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05566 'win/scoped_bstr_unittest.cc',
567 'win/scoped_comptr_unittest.cc',
[email protected]e8f5ff52012-04-04 19:57:50568 'win/scoped_process_information_unittest.cc',
[email protected]f1024e22012-09-12 07:14:55569 'win/shortcut_unittest.cc',
[email protected]e1713f22012-08-27 21:19:00570 'win/startup_information_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05571 'win/scoped_variant_unittest.cc',
[email protected]a8e20582010-12-31 17:18:50572 'win/win_util_unittest.cc',
[email protected]ecb924c2011-03-17 00:34:09573 'win/wrapped_window_proc_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55574 ],
[email protected]2f80c312009-02-25 21:26:55575 'dependencies': [
576 'base',
[email protected]d34d79f2009-10-14 22:06:14577 'base_i18n',
[email protected]167d52b2011-04-04 22:42:46578 'base_static',
[email protected]c5549062012-03-21 05:55:06579 'run_all_unittests',
[email protected]6fa18d12010-08-16 04:18:41580 'test_support_base',
[email protected]23bb71f2011-04-21 22:22:10581 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ce3157102009-05-28 07:23:16582 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55583 '../testing/gtest.gyp:gtest',
[email protected]60e6c842011-05-30 11:45:43584 '../third_party/icu/icu.gyp:icui18n',
585 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55586 ],
[email protected]81814bce2011-09-10 03:03:00587 'includes': ['../build/nocompile.gypi'],
588 'variables': {
589 # TODO(ajwong): Is there a way to autodetect this?
590 'module_dir': 'base'
591 },
[email protected]2f80c312009-02-25 21:26:55592 'conditions': [
[email protected]923402f32011-10-03 16:25:19593 ['OS == "android"', {
[email protected]cef04bcf2012-02-24 00:09:38594 'dependencies': [
[email protected]fae37d62012-03-08 12:39:13595 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
[email protected]cef04bcf2012-02-24 00:09:38596 ],
[email protected]595b0632012-04-26 20:19:47597 'conditions': [
[email protected]a44d1212012-05-25 20:17:49598 ['gtest_target_type == "shared_library"', {
[email protected]595b0632012-04-26 20:19:47599 'dependencies': [
600 '../testing/android/native_test.gyp:native_test_native_code',
601 ],
[email protected]595b0632012-04-26 20:19:47602 }],
[email protected]d9f96952012-04-19 21:02:09603 ],
[email protected]1e218b72012-11-14 19:32:23604 'sources!': [
605 # Broken on Android, and already disabled there.
606 'debug/stack_trace_unittest.cc',
607 ],
[email protected]d9f96952012-04-19 21:02:09608 }],
[email protected]4bfc2dc2012-07-11 15:09:10609 ['OS == "ios"', {
610 'sources/': [
611 # Only test the iOS-meaningful portion of process_utils.
612 ['exclude', '^process_util_unittest'],
[email protected]feb727e2012-07-13 11:02:57613 ['include', '^process_util_unittest_ios\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10614 # Requires spawning processes.
[email protected]feb727e2012-07-13 11:02:57615 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10616 # TODO(ios): Remove these as base/ is unforked.
617 # For now, exclude everything that doesn't build as-is, just to
618 # get a minimal target building.
[email protected]4a32f122012-07-25 20:02:48619 # Unittests that don't pass.
[email protected]feb727e2012-07-13 11:02:57620 ['exclude', '^message_loop_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10621 ],
[email protected]fc642ec2012-10-12 19:07:03622 'conditions': [
623 ['coverage != 0', {
[email protected]fc642ec2012-10-12 19:07:03624 'sources!': [
[email protected]b9ad1c72012-10-16 12:13:14625 # These sources can't be built with coverage due to a toolchain
626 # bug: http://openradar.appspot.com/radar?id=1499403
[email protected]fc642ec2012-10-12 19:07:03627 'json/json_reader_unittest.cc',
628 'string_piece_unittest.cc',
[email protected]b9ad1c72012-10-16 12:13:14629
630 # These tests crash when run with coverage turned on due to an
631 # issue with llvm_gcda_increment_indirect_counter:
632 # http://crbug.com/156058
633 'debug/trace_event_unittest.cc',
634 'debug/trace_event_unittest.h',
635 'logging_unittest.cc',
636 'string_util_unittest.cc',
637 'test/trace_event_analyzer_unittest.cc',
638 'utf_offset_string_conversions_unittest.cc',
[email protected]fc642ec2012-10-12 19:07:03639 ],
640 }],
641 ],
[email protected]da19703b2012-07-17 14:15:34642 'actions': [
643 {
644 'action_name': 'copy_test_data',
645 'variables': {
646 'test_data_files': [
647 'data/json/bom_feff.json',
648 'data/file_util_unittest',
649 ],
650 'test_data_prefix': 'base',
651 },
652 'includes': [ '../build/copy_test_data_ios.gypi' ],
653 },
654 ],
[email protected]4bfc2dc2012-07-11 15:09:10655 }],
[email protected]258dca42011-09-21 00:17:19656 ['use_glib==1', {
[email protected]8b03e8d2009-03-02 06:53:31657 'sources!': [
658 'file_version_info_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31659 ],
[email protected]63dc3782010-10-19 19:09:30660 'conditions': [
661 [ 'linux_use_tcmalloc==1', {
662 'dependencies': [
663 'allocator/allocator.gyp:allocator',
664 ],
665 },
666 ],
[email protected]258dca42011-09-21 00:17:19667 [ 'toolkit_uses_gtk==1', {
668 'sources': [
669 'nix/xdg_util_unittest.cc',
670 ],
671 'dependencies': [
672 '../build/linux/system.gyp:gtk',
673 ]
674 }],
[email protected]63dc3782010-10-19 19:09:30675 ],
[email protected]9d384032009-03-20 23:13:26676 'dependencies': [
[email protected]258dca42011-09-21 00:17:19677 '../build/linux/system.gyp:glib',
[email protected]638e9df42011-05-31 17:19:30678 '../build/linux/system.gyp:ssl',
[email protected]a97488f2009-09-17 21:37:19679 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26680 ],
[email protected]258dca42011-09-21 00:17:19681 }, { # use_glib!=1
[email protected]b44d5cc2009-06-15 10:30:44682 'sources!': [
683 'message_pump_glib_unittest.cc',
684 ]
[email protected]8b03e8d2009-03-02 06:53:31685 }],
[email protected]2f80c312009-02-25 21:26:55686 # This is needed to trigger the dll copy step on windows.
687 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31688 ['OS == "win"', {
689 'dependencies': [
[email protected]280629492009-09-09 06:49:08690 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31691 ],
692 'sources!': [
[email protected]3f04f2b2009-04-30 19:40:03693 'file_descriptor_shuffle_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14694 'files/dir_reader_posix_unittest.cc',
[email protected]541c4db2010-12-30 18:29:28695 'threading/worker_pool_posix_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23696 'message_pump_libevent_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31697 ],
698 }, { # OS != "win"
[email protected]92508df2011-08-04 22:23:55699 'dependencies': [
700 '../third_party/libevent/libevent.gyp:libevent'
701 ],
[email protected]ce0e72462010-10-16 03:46:05702 'sources/': [
703 ['exclude', '^win/'],
704 ],
[email protected]8b03e8d2009-03-02 06:53:31705 'sources!': [
[email protected]3381f172011-05-25 00:20:42706 'debug/trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31707 'time_win_unittest.cc',
[email protected]3381f172011-05-25 00:20:42708 'win/win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31709 ],
710 }],
[email protected]4bfc2dc2012-07-11 15:09:10711 ], # conditions
712 'target_conditions': [
713 ['OS == "ios"', {
714 'sources/': [
715 # Pull in specific Mac files for iOS (which have been filtered out
716 # by file name rules).
[email protected]feb727e2012-07-13 11:02:57717 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
[email protected]a5e2cd182012-07-25 17:47:58718 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
[email protected]feb727e2012-07-13 11:02:57719 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
[email protected]4bfc2dc2012-07-11 15:09:10720 ],
721 }],
722 ], # target_conditions
[email protected]2f80c312009-02-25 21:26:55723 },
[email protected]e8ef09a2009-03-16 23:46:45724 {
725 'target_name': 'test_support_base',
[email protected]5a547332011-05-19 23:18:53726 'type': 'static_library',
[email protected]e8ef09a2009-03-16 23:46:45727 'dependencies': [
728 'base',
[email protected]23bb71f2011-04-21 22:22:10729 'base_static',
[email protected]afa8020c2010-08-16 04:42:26730 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41731 '../testing/gmock.gyp:gmock',
732 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06733 ],
[email protected]23bb71f2011-04-21 22:22:10734 'export_dependent_settings': [
735 'base',
736 ],
[email protected]afa8020c2010-08-16 04:42:26737 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34738 ['toolkit_uses_gtk==1', {
[email protected]afa8020c2010-08-16 04:42:26739 'dependencies': [
740 # test_suite initializes GTK.
741 '../build/linux/system.gyp:gtk',
742 ],
743 }],
[email protected]3ae445e82011-06-20 17:44:05744 ['os_posix==0', {
745 'sources!': [
746 'test/scoped_locale.cc',
747 'test/scoped_locale.h',
748 ],
749 }],
[email protected]c48aef92011-11-22 23:41:45750 ['os_bsd==1', {
[email protected]167ec822011-10-24 22:05:27751 'sources!': [
752 'test/test_file_util_linux.cc',
753 ],
754 }],
[email protected]f1024e22012-09-12 07:14:55755 ['OS=="win"', {
756 'direct_dependent_settings': {
757 'msvs_settings': {
758 'VCLinkerTool': {
759 'DelayLoadDLLs': [
760 'propsys.dll',
761 ],
762 },
763 },
764 },
765 }],
[email protected]afa8020c2010-08-16 04:42:26766 ],
[email protected]7d1ba9392009-08-03 18:35:06767 'sources': [
[email protected]bc052ef52010-10-10 02:42:32768 'perftimer.cc',
[email protected]73b32422012-07-13 09:21:34769 'test/main_hook.cc',
770 'test/main_hook.h',
771 'test/main_hook_ios.mm',
[email protected]a3668802010-12-18 01:18:29772 'test/mock_chrome_application_mac.h',
773 'test/mock_chrome_application_mac.mm',
[email protected]df6c4192012-03-02 23:13:40774 'test/mock_devices_changed_observer.cc',
775 'test/mock_devices_changed_observer.h',
[email protected]c4996f762011-06-28 14:29:06776 'test/mock_time_provider.cc',
777 'test/mock_time_provider.h',
[email protected]20e14912010-08-17 19:40:11778 'test/multiprocess_test.cc',
779 'test/multiprocess_test.h',
[email protected]04de3802012-05-29 19:36:32780 'test/multiprocess_test_android.cc',
[email protected]99cc51e2010-10-10 00:21:35781 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11782 'test/perf_test_suite.h',
[email protected]3ae445e82011-06-20 17:44:05783 'test/scoped_locale.cc',
784 'test/scoped_locale.h',
[email protected]d3e6d252012-09-27 00:45:36785 'test/scoped_path_override.cc',
786 'test/scoped_path_override.h',
[email protected]ce5d0472012-04-02 10:16:55787 'test/sequenced_task_runner_test_template.cc',
788 'test/sequenced_task_runner_test_template.h',
[email protected]c8cae7c2012-03-09 06:20:18789 'test/task_runner_test_template.cc',
790 'test/task_runner_test_template.h',
[email protected]fb895c62009-10-09 18:20:30791 'test/test_file_util.h',
792 'test/test_file_util_linux.cc',
793 'test/test_file_util_mac.cc',
794 'test/test_file_util_posix.cc',
795 'test/test_file_util_win.cc',
[email protected]73b32422012-07-13 09:21:34796 'test/test_listener_ios.h',
797 'test/test_listener_ios.mm',
[email protected]a8f85882011-08-24 20:02:42798 'test/test_reg_util_win.cc',
799 'test/test_reg_util_win.h',
[email protected]f1024e22012-09-12 07:14:55800 'test/test_shortcut_win.cc',
801 'test/test_shortcut_win.h',
[email protected]6fa18d12010-08-16 04:18:41802 'test/test_suite.cc',
803 'test/test_suite.h',
[email protected]7ed054db2012-06-01 17:20:04804 'test/test_support_android.cc',
805 'test/test_support_android.h',
[email protected]4d230e32012-07-25 19:38:38806 'test/test_support_ios.h',
807 'test/test_support_ios.mm',
[email protected]cbb9f50f2010-10-05 19:03:05808 'test/test_switches.cc',
809 'test/test_switches.h',
810 'test/test_timeouts.cc',
811 'test/test_timeouts.h',
[email protected]8aaae7b2011-06-28 06:43:20812 'test/thread_test_helper.cc',
813 'test/thread_test_helper.h',
[email protected]7a79dafb2011-10-29 03:16:52814 'test/trace_event_analyzer.cc',
815 'test/trace_event_analyzer.h',
[email protected]6085ccd2012-02-29 03:57:29816 'test/values_test_util.cc',
817 'test/values_test_util.h',
[email protected]7d1ba9392009-08-03 18:35:06818 ],
[email protected]c9c672f2012-09-05 10:18:39819 'target_conditions': [
820 ['OS == "ios"', {
821 'sources/': [
822 # Pull in specific Mac files for iOS (which have been filtered out
823 # by file name rules).
824 ['include', '^test/test_file_util_mac\\.cc$'],
825 ],
826 }],
827 ], # target_conditions
[email protected]7d1ba9392009-08-03 18:35:06828 },
829 {
830 'target_name': 'test_support_perf',
[email protected]5a547332011-05-19 23:18:53831 'type': 'static_library',
[email protected]7d1ba9392009-08-03 18:35:06832 'dependencies': [
833 'base',
[email protected]e8ef09a2009-03-16 23:46:45834 '../testing/gtest.gyp:gtest',
835 ],
836 'sources': [
837 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30838 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45839 ],
840 'direct_dependent_settings': {
841 'defines': [
842 'PERF_TEST',
843 ],
844 },
[email protected]9d384032009-03-20 23:13:26845 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34846 ['toolkit_uses_gtk==1', {
[email protected]9d384032009-03-20 23:13:26847 'dependencies': [
848 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30849 # base/test/perf_test_suite.h
850 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26851 # gtk/gtk.h
852 '../build/linux/system.gyp:gtk',
853 ],
854 }],
855 ],
[email protected]e8ef09a2009-03-16 23:46:45856 },
[email protected]2f80c312009-02-25 21:26:55857 ],
858 'conditions': [
[email protected]23396202012-07-16 10:12:33859 ['OS!="ios"', {
860 'targets': [
861 {
862 'target_name': 'check_example',
863 'type': 'executable',
864 'sources': [
865 'check_example.cc',
866 ],
867 'dependencies': [
868 'base',
869 ],
870 },
871 ],
872 }],
[email protected]9ac2db692012-06-08 01:01:57873 ['OS == "win"', {
[email protected]83c1c3c2012-06-07 18:43:44874 'targets': [
875 {
876 'target_name': 'base_nacl_win64',
877 'type': '<(component)',
878 'variables': {
879 'base_target': 1,
880 },
881 'dependencies': [
882 'base_static_win64',
883 'allocator/allocator.gyp:allocator_extension_thunks_win64',
884 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
885 ],
886 # TODO(gregoryd): direct_dependent_settings should be shared with the
887 # 32-bit target, but it doesn't work due to a bug in gyp
888 'direct_dependent_settings': {
889 'include_dirs': [
890 '..',
891 ],
892 },
893 'defines': [
894 '<@(nacl_win64_defines)',
895 ],
[email protected]1968d9772012-07-26 22:53:13896 'sources!': [
897 # base64.cc depends on modp_b64.
898 'base64.cc',
899 ],
[email protected]83c1c3c2012-06-07 18:43:44900 'configurations': {
901 'Common_Base': {
902 'msvs_target_platform': 'x64',
903 },
904 },
905 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57906 ['component == "shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44907 'sources!': [
908 'debug/debug_on_start_win.cc',
909 ],
910 }],
911 ],
912 },
913 {
914 'target_name': 'base_i18n_nacl_win64',
915 'type': '<(component)',
916 # TODO(gregoryd): direct_dependent_settings should be shared with the
917 # 32-bit target, but it doesn't work due to a bug in gyp
918 'direct_dependent_settings': {
919 'include_dirs': [
920 '..',
921 ],
922 },
923 'defines': [
924 '<@(nacl_win64_defines)',
925 'BASE_I18N_IMPLEMENTATION',
926 ],
927 'include_dirs': [
928 '..',
929 ],
930 'sources': [
931 'i18n/icu_util_nacl_win64.cc',
932 ],
933 'configurations': {
934 'Common_Base': {
935 'msvs_target_platform': 'x64',
936 },
937 },
938 },
939 ],
940 }],
[email protected]4bfc2dc2012-07-11 15:09:10941 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]83c1c3c2012-06-07 18:43:44942 'targets': [
943 {
944 'target_name': 'symbolize',
945 'type': 'static_library',
946 'toolsets': ['host', 'target'],
947 'variables': {
948 'chromium_code': 0,
949 },
950 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57951 ['OS == "solaris"', {
[email protected]83c1c3c2012-06-07 18:43:44952 'include_dirs': [
953 '/usr/gnu/include',
954 '/usr/gnu/include/libelf',
955 ],
956 },],
957 ],
958 'cflags': [
959 '-Wno-sign-compare',
960 ],
961 'cflags!': [
962 '-Wextra',
963 ],
964 'sources': [
965 'third_party/symbolize/config.h',
966 'third_party/symbolize/demangle.cc',
967 'third_party/symbolize/demangle.h',
968 'third_party/symbolize/glog/logging.h',
969 'third_party/symbolize/glog/raw_logging.h',
970 'third_party/symbolize/symbolize.cc',
971 'third_party/symbolize/symbolize.h',
972 'third_party/symbolize/utilities.h',
973 ],
974 'include_dirs': [
975 '..',
976 ],
977 },
978 {
979 'target_name': 'xdg_mime',
980 'type': 'static_library',
981 'toolsets': ['host', 'target'],
982 'variables': {
983 'chromium_code': 0,
984 },
985 'cflags!': [
986 '-Wextra',
987 ],
988 'sources': [
989 'third_party/xdg_mime/xdgmime.c',
990 'third_party/xdg_mime/xdgmime.h',
991 'third_party/xdg_mime/xdgmimealias.c',
992 'third_party/xdg_mime/xdgmimealias.h',
993 'third_party/xdg_mime/xdgmimecache.c',
994 'third_party/xdg_mime/xdgmimecache.h',
995 'third_party/xdg_mime/xdgmimeglob.c',
996 'third_party/xdg_mime/xdgmimeglob.h',
997 'third_party/xdg_mime/xdgmimeicon.c',
998 'third_party/xdg_mime/xdgmimeicon.h',
999 'third_party/xdg_mime/xdgmimeint.c',
1000 'third_party/xdg_mime/xdgmimeint.h',
1001 'third_party/xdg_mime/xdgmimemagic.c',
1002 'third_party/xdg_mime/xdgmimemagic.h',
1003 'third_party/xdg_mime/xdgmimeparent.c',
1004 'third_party/xdg_mime/xdgmimeparent.h',
1005 ],
1006 },
1007 ],
1008 }],
[email protected]65208a02012-04-17 04:39:521009 ['OS == "android"', {
1010 'targets': [
1011 {
1012 'target_name': 'base_jni_headers',
1013 'type': 'none',
[email protected]e46f66152012-07-19 20:02:551014 'sources': [
1015 'android/java/src/org/chromium/base/BuildInfo.java',
1016 'android/java/src/org/chromium/base/LocaleUtils.java',
[email protected]f152b67b2012-08-03 12:43:291017 'android/java/src/org/chromium/base/PathService.java',
[email protected]e46f66152012-07-19 20:02:551018 'android/java/src/org/chromium/base/PathUtils.java',
1019 'android/java/src/org/chromium/base/SystemMessageHandler.java',
[email protected]a614f1562012-10-16 11:58:081020 'android/java/src/org/chromium/base/SystemMonitor.java',
[email protected]e46f66152012-07-19 20:02:551021 ],
[email protected]65208a02012-04-17 04:39:521022 'variables': {
[email protected]e46f66152012-07-19 20:02:551023 'jni_gen_dir': 'base',
[email protected]65208a02012-04-17 04:39:521024 },
1025 'includes': [ '../build/jni_generator.gypi' ],
1026 },
1027 {
1028 'target_name': 'base_java',
1029 'type': 'none',
1030 'variables': {
1031 'package_name': 'base',
[email protected]2bd16e712012-09-13 01:44:031032 'java_in_dir': '../base/android/java',
[email protected]65208a02012-04-17 04:39:521033 },
1034 'includes': [ '../build/java.gypi' ],
1035 },
[email protected]315a0202012-08-31 18:27:551036 {
1037 'target_name': 'base_java_test_support',
1038 'type': 'none',
1039 'dependencies': [
1040 'base_java',
1041 ],
1042 'variables': {
1043 'package_name': 'base_javatests',
[email protected]a55b0a062012-09-24 22:22:271044 'java_in_dir': '../base/test/android/javatests',
[email protected]315a0202012-08-31 18:27:551045 },
1046 'includes': [ '../build/java.gypi' ],
1047 },
[email protected]65208a02012-04-17 04:39:521048 ],
1049 }],
[email protected]06ff3c52012-03-01 01:58:051050 ['OS == "win"', {
[email protected]2f80c312009-02-25 21:26:551051 'targets': [
1052 {
1053 'target_name': 'debug_message',
1054 'type': 'executable',
1055 'sources': [
1056 'debug_message.cc',
1057 ],
[email protected]3f8bfc362009-05-22 02:39:141058 'msvs_settings': {
1059 'VCLinkerTool': {
1060 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1061 },
1062 },
[email protected]2f80c312009-02-25 21:26:551063 },
1064 ],
1065 }],
[email protected]a44d1212012-05-25 20:17:491066 # Special target to wrap a gtest_target_type == shared_library
[email protected]d9f96952012-04-19 21:02:091067 # base_unittests into an android apk for execution.
1068 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
1069 # in the gyp make generator. What is the correct way to extract
1070 # this path from gyp and into 'raw' for input to antfiles?
1071 # Hard-coding in the gypfile seems a poor choice.
[email protected]a44d1212012-05-25 20:17:491072 ['OS == "android" and gtest_target_type == "shared_library"', {
[email protected]d9f96952012-04-19 21:02:091073 'targets': [
1074 {
1075 'target_name': 'base_unittests_apk',
1076 'type': 'none',
1077 'dependencies': [
[email protected]a44d1212012-05-25 20:17:491078 'base_java',
[email protected]d9f96952012-04-19 21:02:091079 'base_unittests',
1080 ],
[email protected]a44d1212012-05-25 20:17:491081 'variables': {
1082 'test_suite_name': 'base_unittests',
[email protected]ef7ed7a2012-05-29 23:19:131083 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
[email protected]a44d1212012-05-25 20:17:491084 },
1085 'includes': [ '../build/apk_test.gypi' ],
[email protected]9ac2db692012-06-08 01:01:571086 },
1087 ],
[email protected]d9f96952012-04-19 21:02:091088 }],
[email protected]d34eb412012-07-28 00:03:411089 ['test_isolation_mode != "noop"', {
1090 'targets': [
1091 {
1092 'target_name': 'base_unittests_run',
1093 'type': 'none',
1094 'dependencies': [
1095 'base_unittests',
1096 ],
1097 'includes': [
[email protected]88494712012-10-20 04:16:311098 '../build/isolate.gypi',
[email protected]d34eb412012-07-28 00:03:411099 'base_unittests.isolate',
1100 ],
[email protected]88494712012-10-20 04:16:311101 'sources': [
1102 'base_unittests.isolate',
[email protected]d34eb412012-07-28 00:03:411103 ],
1104 },
1105 ],
1106 }],
[email protected]2f80c312009-02-25 21:26:551107 ],
1108}