blob: c1448d89623485e09feb832948a6c0aaccb6ea53 [file] [log] [blame]
evan@chromium.orgd6842f62012-01-24 13:37:29 +09001# Copyright (c) 2012 The Chromium Authors. All rights reserved.
mark@chromium.org15425a12009-02-26 06:26:55 +09002# 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 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +09009 'includes': [
joi@chromium.org3b4d6d92011-09-07 23:14:54 +090010 '../build/win_precompile.gypi',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090011 'base.gypi',
12 ],
mark@chromium.org15425a12009-02-26 06:26:55 +090013 'targets': [
14 {
bradnelson@google.com130e7662012-06-08 03:43:44 +090015 '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': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +090038 ['use_glib==1', {
bradnelson@google.com130e7662012-06-08 03:43:44 +090039 'conditions': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +090040 ['chromeos==1', {
41 'sources/': [ ['include', '_chromeos\\.cc$'] ]
42 }],
43 ['linux_use_tcmalloc==0', {
44 'defines': [
45 'NO_TCMALLOC',
46 ],
47 'direct_dependent_settings': {
bradnelson@google.com130e7662012-06-08 03:43:44 +090048 'defines': [
49 'NO_TCMALLOC',
50 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +090051 },
bradnelson@google.com040b1d12012-06-08 10:01:57 +090052 }],
53 ['toolkit_uses_gtk==1', {
bradnelson@google.com130e7662012-06-08 03:43:44 +090054 '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/'],
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +090081 ['exclude', '_nss\\.cc$'],
bradnelson@google.com130e7662012-06-08 03:43:44 +090082 ],
83 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +090084 ['OS == "android" and _toolset == "host"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +090085 # 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 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900116 ['OS == "android" and _toolset == "target"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900117 'conditions': [
118 ['target_arch == "ia32"', {
119 'sources/': [
120 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
121 ],
122 }],
123 ],
124 'dependencies': [
pliard@chromium.org59659da2012-09-11 00:52:47 +0900125 'base_jni_headers',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900126 'symbolize',
127 '../third_party/ashmem/ashmem.gyp:ashmem',
128 '../third_party/icu/icu.gyp:icuuc',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900129 ],
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!': [
bradnelson@google.com130e7662012-06-08 03:43:44 +0900142 'debug/stack_trace_posix.cc',
143 ],
pliard@chromium.org36dc8f92012-10-06 01:20:01 +0900144 }],
145 ['OS == "android" and _toolset == "target" and android_build_type == 0', {
146 'dependencies': [
147 'base_java',
148 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900149 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900150 ['os_bsd==1', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900151 'include_dirs': [
152 '/usr/local/include',
153 ],
154 'link_settings': {
155 'libraries': [
156 '-L/usr/local/lib -lexecinfo',
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900157 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900158 },
bradnelson@google.com130e7662012-06-08 03:43:44 +0900159 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900160 ['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"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900171 'link_settings': {
172 'libraries': [
173 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
asvitkine@chromium.org399f23e2012-07-24 01:51:25 +0900174 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900175 '$(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 }],
stuartmorgan@chromium.org456df342012-07-15 23:24:46 +0900186 ['OS == "ios"', {
187 'link_settings': {
188 'libraries': [
189 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
stuartmorgan@chromium.org03c68be2012-07-25 20:07:44 +0900190 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
191 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
stuartmorgan@chromium.org456df342012-07-15 23:24:46 +0900192 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
193 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
194 ],
195 },
196 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900197 ['OS != "win"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900198 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
199 },],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900200 ['component=="shared_library"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900201 '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',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900217 'event_recorder.h',
218 'event_recorder_stubs.cc',
219 'event_recorder_win.cc',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900220 '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',
brettw@chromium.org04a8ee22012-11-10 05:22:00 +0900239 'posix/file_descriptor_shuffle.cc',
240 'posix/file_descriptor_shuffle.h',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900241 'sync_socket.h',
242 'sync_socket_win.cc',
243 'sync_socket_posix.cc',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900244 ],
245 },
246 {
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900247 'target_name': 'base_i18n',
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900248 'type': '<(component)',
siggi@chromium.org71120e42011-12-21 04:59:10 +0900249 'variables': {
250 'enable_wexit_time_destructors': 1,
251 'optimize': 'max',
252 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900253 'dependencies': [
254 'base',
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900255 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900256 '../third_party/icu/icu.gyp:icui18n',
257 '../third_party/icu/icu.gyp:icuuc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900258 ],
mmoss@google.com751961d2010-03-23 06:24:57 +0900259 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900260 ['toolkit_uses_gtk==1', {
mmoss@google.com751961d2010-03-23 06:24:57 +0900261 'dependencies': [
262 # i18n/rtl.cc uses gtk
263 '../build/linux/system.gyp:gtk',
264 ],
265 }],
266 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900267 'export_dependent_settings': [
268 'base',
269 ],
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900270 'defines': [
271 'BASE_I18N_IMPLEMENTATION',
272 ],
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900273 'sources': [
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900274 'i18n/base_i18n_export.h',
hbono@chromium.org31407362011-02-24 18:20:16 +0900275 'i18n/bidi_line_iterator.cc',
276 'i18n/bidi_line_iterator.h',
cdn@chromium.org79f24902010-12-16 03:00:54 +0900277 'i18n/break_iterator.cc',
278 'i18n/break_iterator.h',
dmazzoni@chromium.org43126982010-08-23 23:30:27 +0900279 'i18n/char_iterator.cc',
280 'i18n/char_iterator.h',
phajdan.jr@chromium.orge178fe22011-05-06 17:36:26 +0900281 'i18n/case_conversion.cc',
282 'i18n/case_conversion.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900283 'i18n/file_util_icu.cc',
284 'i18n/file_util_icu.h',
phajdan.jr@chromium.orgb00f0982010-05-11 18:19:30 +0900285 'i18n/icu_encoding_detection.cc',
286 'i18n/icu_encoding_detection.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900287 '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',
ben@chromium.org2c4a3a82010-03-20 15:37:01 +0900293 'i18n/rtl.cc',
294 'i18n/rtl.h',
michaelbai@google.com7cdf8a52011-10-04 01:25:19 +0900295 'i18n/string_search.cc',
296 'i18n/string_search.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900297 'i18n/time_formatting.cc',
298 'i18n/time_formatting.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900299 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900300 },
301 {
joi@chromium.org1e43ce82012-11-01 21:05:27 +0900302 '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',
joi@chromium.org64162712012-11-02 02:24:18 +0900332 'prefs/public/pref_observer.h',
joi@chromium.org1e43ce82012-11-01 21:05:27 +0900333 'prefs/public/pref_service_base.h',
334 'prefs/value_map_pref_store.cc',
335 'prefs/value_map_pref_store.h',
336 ],
337 },
338 {
rvargas@google.com57a43962011-04-05 07:42:46 +0900339 # This is the subset of files from base that should not be used with a
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900340 # dynamic library. Note that this library cannot depend on base because
341 # base depends on base_static.
rvargas@google.com57a43962011-04-05 07:42:46 +0900342 'target_name': 'base_static',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900343 'type': 'static_library',
siggi@chromium.org71120e42011-12-21 04:59:10 +0900344 'variables': {
345 'enable_wexit_time_destructors': 1,
346 'optimize': 'max',
347 },
pkasting@chromium.org2680a0a2011-09-16 06:17:32 +0900348 'toolsets': ['host', 'target'],
rvargas@google.com57a43962011-04-05 07:42:46 +0900349 'sources': [
rvargas@google.com29b10092011-05-27 07:03:28 +0900350 'base_switches.cc',
351 'base_switches.h',
rvargas@google.com57a43962011-04-05 07:42:46 +0900352 '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',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900363 'type': 'static_library',
rvargas@google.com57a43962011-04-05 07:42:46 +0900364 'sources': [
rvargas@google.com29b10092011-05-27 07:03:28 +0900365 'base_switches.cc',
366 'base_switches.h',
rvargas@google.com57a43962011-04-05 07:42:46 +0900367 'win/pe_image.cc',
368 'win/pe_image.h',
369 ],
sergeyu@chromium.orge2585912012-07-27 07:53:13 +0900370 'sources!': [
371 # base64.cc depends on modp_b64.
372 'base64.cc',
373 ],
rvargas@google.com57a43962011-04-05 07:42:46 +0900374 '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 },
akalin@chromium.org4158e992012-03-21 14:55:06 +0900390 # 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 },
peter@chromium.orgf63cdf12012-03-14 20:24:04 +0900402 {
mark@chromium.org15425a12009-02-26 06:26:55 +0900403 'target_name': 'base_unittests',
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900404 'type': '<(gtest_target_type)',
mark@chromium.org15425a12009-02-26 06:26:55 +0900405 'sources': [
maruel@chromium.org2b6effe2009-09-09 02:25:40 +0900406 # Tests.
steveblock@chromium.org27bef552011-12-05 23:42:08 +0900407 'android/jni_android_unittest.cc',
avayvod@chromium.orgcc210d82012-10-10 04:43:10 +0900408 'android/jni_array_unittest.cc',
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900409 'android/path_utils_unittest.cc',
joth@chromium.orged27f3a2011-09-09 19:17:35 +0900410 'android/scoped_java_ref_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900411 'at_exit_unittest.cc',
412 'atomicops_unittest.cc',
hayato@chromium.org268ac3a2009-11-24 15:21:53 +0900413 'base64_unittest.cc',
ajwong@chromium.orge4f3dc32012-01-07 07:12:28 +0900414 'bind_helpers_unittest.cc',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +0900415 'bind_unittest.cc',
ajwong@chromium.org505386d2011-09-10 12:03:00 +0900416 'bind_unittest.nc',
apatrick@google.com0265b732009-11-19 08:08:39 +0900417 'bits_unittest.cc',
agl@chromium.orgb9206f42011-11-12 01:09:31 +0900418 'build_time_unittest.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +0900419 'callback_unittest.cc',
ajwong@chromium.org3bc50ce2011-09-10 12:14:35 +0900420 'callback_unittest.nc',
jhawkins@chromium.org78936ff2011-11-24 13:12:04 +0900421 'cancelable_callback_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900422 'command_line_unittest.cc',
brettw@chromium.org427b15b2012-11-10 09:46:16 +0900423 'containers/linked_list_unittest.cc',
brettw@chromium.org4f5affd2012-11-14 05:34:14 +0900424 'containers/mru_cache_unittest.cc',
brettw@chromium.orgba6903b2012-11-10 07:49:19 +0900425 'containers/small_map_unittest.cc',
brettw@chromium.org427b15b2012-11-10 09:46:16 +0900426 'containers/stack_container_unittest.cc',
hbono@chromium.org31407362011-02-24 18:20:16 +0900427 'cpu_unittest.cc',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900428 'debug/leak_tracker_unittest.cc',
429 'debug/stack_trace_unittest.cc',
scheib@chromium.org603f46e2011-05-10 11:23:58 +0900430 'debug/trace_event_unittest.cc',
jbates@chromium.org5e2f67d2012-08-16 13:32:49 +0900431 'debug/trace_event_unittest.h',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900432 'debug/trace_event_win_unittest.cc',
tfarina@chromium.org6d36c5d2010-08-03 12:00:50 +0900433 'environment_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900434 'file_path_unittest.cc',
kinuko@chromium.org20e2efc2012-04-24 03:40:57 +0900435 'file_util_proxy_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900436 'file_util_unittest.cc',
437 'file_version_info_unittest.cc',
brettw@chromium.orgbf3eb522012-06-30 06:09:14 +0900438 'files/dir_reader_posix_unittest.cc',
joi@chromium.org20009e32012-10-25 01:33:36 +0900439 'files/important_file_writer_unittest.cc',
ajwong@chromium.orgab54d3d2009-05-30 23:39:59 +0900440 'gmock_unittest.cc',
marja@chromium.org9158ee02012-06-14 23:22:07 +0900441 'guid_unittest.cc',
jam@chromium.org81e9e992012-06-05 04:33:56 +0900442 'hi_res_timer_manager_unittest.cc',
phajdan.jr@chromium.orga12746c2009-08-19 23:56:38 +0900443 'id_map_unittest.cc',
cdn@chromium.org79f24902010-12-16 03:00:54 +0900444 'i18n/break_iterator_unittest.cc',
dmazzoni@chromium.org43126982010-08-23 23:30:27 +0900445 'i18n/char_iterator_unittest.cc',
phajdan.jr@chromium.orge178fe22011-05-06 17:36:26 +0900446 'i18n/case_conversion_unittest.cc',
brettw@chromium.org86aca862009-10-09 02:38:30 +0900447 'i18n/file_util_icu_unittest.cc',
brettw@chromium.orgde29ea42009-10-11 05:40:50 +0900448 'i18n/icu_string_conversions_unittest.cc',
avi@chromium.orgac6d6152011-06-23 05:40:22 +0900449 'i18n/number_formatting_unittest.cc',
ben@chromium.org2c4a3a82010-03-20 15:37:01 +0900450 'i18n/rtl_unittest.cc',
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900451 'i18n/string_search_unittest.cc',
kinaba@google.com7f3f2422011-05-30 20:45:43 +0900452 'i18n/time_formatting_unittest.cc',
chenyu@chromium.org3f440a42012-08-07 20:03:11 +0900453 'ios/device_util_unittest.mm',
rsesek@chromium.orgc2d2b202012-05-17 00:23:30 +0900454 'json/json_parser_unittest.cc',
brettw@chromium.org7cd41eb2009-10-24 05:00:20 +0900455 'json/json_reader_unittest.cc',
mukai@chromium.org55292e42011-12-23 03:31:47 +0900456 'json/json_value_converter_unittest.cc',
pastarmovj@chromium.orgb81dd3f2011-11-18 01:17:23 +0900457 'json/json_value_serializer_unittest.cc',
brettw@chromium.org7cd41eb2009-10-24 05:00:20 +0900458 'json/json_writer_unittest.cc',
459 'json/string_escape_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900460 'lazy_instance_unittest.cc',
akalin@chromium.orga88579b2010-10-02 08:02:36 +0900461 'logging_unittest.cc',
noyau@chromium.orgc2ad9492012-07-26 02:47:58 +0900462 'mac/bind_objc_block_unittest.mm',
kushi.p@gmail.com9a28acb2011-10-19 09:36:56 +0900463 'mac/foundation_util_unittest.mm',
brettw@chromium.org92d954b2011-01-02 03:20:14 +0900464 'mac/mac_util_unittest.mm',
mark@chromium.org2a9b20f2011-04-21 07:30:35 +0900465 'mac/objc_property_releaser_unittest.mm',
shess@chromium.orgcb3d4fe2011-12-02 08:56:17 +0900466 'mac/scoped_sending_event_unittest.mm',
shinyak@google.com5c521022011-04-26 08:54:07 +0900467 'md5_unittest.cc',
jbates@chromium.orgdde8e302012-02-24 02:52:20 +0900468 'memory/aligned_memory_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900469 'memory/linked_ptr_unittest.cc',
joth@chromium.org42544c82011-07-22 22:22:23 +0900470 'memory/ref_counted_memory_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900471 'memory/ref_counted_unittest.cc',
qsr@chromium.orgd85d9492012-02-09 18:50:58 +0900472 'memory/scoped_nsobject_unittest.mm',
levin@chromium.org5c528682011-03-28 10:54:15 +0900473 'memory/scoped_ptr_unittest.cc',
sergeyu@chromium.org1c30aaf2012-01-25 09:33:05 +0900474 'memory/scoped_ptr_unittest.nc',
scr@chromium.org80f0c1a2011-03-29 07:27:34 +0900475 'memory/scoped_vector_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900476 'memory/singleton_unittest.cc',
477 'memory/weak_ptr_unittest.cc',
gavinp@chromium.org9dd8b172012-06-16 01:36:12 +0900478 'memory/weak_ptr_unittest.nc',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900479 'message_loop_proxy_impl_unittest.cc',
ajwong@chromium.org545839a2011-08-19 08:13:01 +0900480 'message_loop_proxy_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900481 'message_loop_unittest.cc',
deanm@chromium.orgbec47f42009-06-15 19:30:44 +0900482 'message_pump_glib_unittest.cc',
dmaclach@chromium.org482f99a2011-05-14 01:19:23 +0900483 'message_pump_libevent_unittest.cc',
kaiwang@chromium.orgec0e7272012-10-06 06:29:44 +0900484 'metrics/sample_map_unittest.cc',
kaiwang@chromium.org0ce37b12012-09-22 12:42:12 +0900485 'metrics/sample_vector_unittest.cc',
kaiwang@chromium.org7c4acad2012-07-26 05:02:48 +0900486 'metrics/bucket_ranges_unittest.cc',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900487 'metrics/field_trial_unittest.cc',
488 'metrics/histogram_unittest.cc',
kaiwang@chromium.org18643672012-08-09 14:14:15 +0900489 'metrics/sparse_histogram_unittest.cc',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900490 'metrics/stats_table_unittest.cc',
kaiwang@chromium.orga97a5ae2012-08-02 06:34:08 +0900491 'metrics/statistics_recorder_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900492 'observer_list_unittest.cc',
felipeg@chromium.org0fdb2122012-07-19 02:26:50 +0900493 'os_compat_android_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900494 'path_service_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900495 'pickle_unittest.cc',
dumi@chromium.org23915982010-09-10 12:01:14 +0900496 'platform_file_unittest.cc',
brettw@chromium.org04a8ee22012-11-10 05:22:00 +0900497 'posix/file_descriptor_shuffle_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900498 'pr_time_unittest.cc',
499 'process_util_unittest.cc',
stuartmorgan@chromium.org11335452012-07-12 00:35:02 +0900500 'process_util_unittest_ios.cc',
avi@chromium.org4b9545a2010-03-20 03:42:41 +0900501 'process_util_unittest_mac.h',
502 'process_util_unittest_mac.mm',
jar@chromium.org27cf2972011-11-09 02:09:21 +0900503 'profiler/tracked_time_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900504 'rand_util_unittest.cc',
thakis@chromium.org927d7282011-05-20 08:34:17 +0900505 'scoped_native_library_unittest.cc',
erg@chromium.org7827c532012-06-23 06:47:30 +0900506 'scoped_observer.h',
thakis@chromium.org927d7282011-05-20 08:34:17 +0900507 'scoped_temp_dir_unittest.cc',
jhawkins@chromium.orgf64907f2009-11-05 04:29:58 +0900508 'sha1_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900509 'shared_memory_unittest.cc',
abarth@chromium.orgd04f7082010-11-14 05:05:47 +0900510 'string16_unittest.cc',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900511 'string_number_conversions_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900512 'string_piece_unittest.cc',
timsteele@google.com22058212010-01-22 04:29:25 +0900513 'string_split_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900514 'string_tokenizer_unittest.cc',
515 'string_util_unittest.cc',
joi@chromium.orgeb2b72d2010-11-18 11:15:12 +0900516 'stringize_macros_unittest.cc',
brettw@chromium.org67cbde42010-08-17 12:45:37 +0900517 'stringprintf_unittest.cc',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900518 'synchronization/cancellation_flag_unittest.cc',
brettw@chromium.orge439a962011-01-02 08:16:20 +0900519 'synchronization/condition_variable_unittest.cc',
520 'synchronization/lock_unittest.cc',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900521 'synchronization/waitable_event_unittest.cc',
522 'synchronization/waitable_event_watcher_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900523 'sys_info_unittest.cc',
mirandac@chromium.org69689342009-11-09 04:04:54 +0900524 'sys_string_conversions_mac_unittest.mm',
mark@chromium.org15425a12009-02-26 06:26:55 +0900525 'sys_string_conversions_unittest.cc',
willchan@chromium.org0fbb8682011-05-18 16:29:56 +0900526 'system_monitor/system_monitor_unittest.cc',
battre@chromium.org6d025972012-04-17 11:48:06 +0900527 'task_runner_util_unittest.cc',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +0900528 'template_util_unittest.cc',
francoisk777@gmail.com80356342012-04-02 19:16:55 +0900529 'test/sequenced_worker_pool_owner.cc',
530 'test/sequenced_worker_pool_owner.h',
jbates@chromium.orgf44a6882011-10-29 12:16:52 +0900531 'test/trace_event_analyzer_unittest.cc',
brettw@chromium.org088ae932011-01-01 13:48:49 +0900532 'threading/non_thread_safe_unittest.cc',
brettw@chromium.org61391822011-01-01 05:02:16 +0900533 'threading/platform_thread_unittest.cc',
brettw@chromium.org03d32fd2012-01-01 14:42:34 +0900534 'threading/sequenced_worker_pool_unittest.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900535 'threading/simple_thread_unittest.cc',
brettw@chromium.org61391822011-01-01 05:02:16 +0900536 'threading/thread_checker_unittest.cc',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900537 'threading/thread_collision_warner_unittest.cc',
brettw@chromium.org63965582010-12-31 07:18:56 +0900538 'threading/thread_local_storage_unittest.cc',
539 'threading/thread_local_unittest.cc',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900540 'threading/thread_unittest.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900541 'threading/watchdog_unittest.cc',
542 'threading/worker_pool_posix_unittest.cc',
543 'threading/worker_pool_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900544 'time_unittest.cc',
545 'time_win_unittest.cc',
546 'timer_unittest.cc',
glider@chromium.org0f9756f2009-12-17 21:37:58 +0900547 'tools_sanity_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900548 'tracked_objects_unittest.cc',
549 'tuple_unittest.cc',
pkasting@chromium.org046cd5a2009-11-14 04:27:48 +0900550 'utf_offset_string_conversions_unittest.cc',
pkasting@chromium.org47366502009-11-07 10:34:53 +0900551 'utf_string_conversions_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900552 'values_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900553 'version_unittest.cc',
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +0900554 'vlog_unittest.cc',
jar@chromium.org92d3dcf2011-12-23 07:07:41 +0900555 'win/dllmain.cc',
dmazzoni@chromium.orgb1bdde42011-12-03 13:31:13 +0900556 'win/enum_variant_unittest.cc',
siggi@chromium.org7913ed62010-11-07 00:39:40 +0900557 'win/event_trace_consumer_unittest.cc',
558 'win/event_trace_controller_unittest.cc',
559 'win/event_trace_provider_unittest.cc',
grt@chromium.orgce2cac52010-11-17 00:28:45 +0900560 'win/i18n_unittest.cc',
dmazzoni@chromium.orgb1bdde42011-12-03 13:31:13 +0900561 'win/iunknown_impl_unittest.cc',
brettw@google.com3890ab32011-01-02 03:26:16 +0900562 'win/object_watcher_unittest.cc',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900563 'win/pe_image_unittest.cc',
564 'win/registry_unittest.cc',
siggi@chromium.orgdb0946f2011-12-08 06:44:28 +0900565 'win/sampling_profiler_unittest.cc',
brettw@chromium.org45352272010-10-16 12:46:05 +0900566 'win/scoped_bstr_unittest.cc',
567 'win/scoped_comptr_unittest.cc',
erikwright@chromium.org82223842012-04-05 04:57:50 +0900568 'win/scoped_process_information_unittest.cc',
gab@chromium.orgc669f0d2012-09-12 16:14:55 +0900569 'win/shortcut_unittest.cc',
jschuh@chromium.orgc5a4fd92012-08-28 06:19:00 +0900570 'win/startup_information_unittest.cc',
brettw@chromium.org45352272010-10-16 12:46:05 +0900571 'win/scoped_variant_unittest.cc',
brettw@google.comf4fe79b2011-01-01 02:18:50 +0900572 'win/win_util_unittest.cc',
rvargas@google.comed1496e2011-03-17 09:34:09 +0900573 'win/wrapped_window_proc_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900574 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900575 'dependencies': [
576 'base',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900577 'base_i18n',
rvargas@google.com57a43962011-04-05 07:42:46 +0900578 'base_static',
akalin@chromium.org4158e992012-03-21 14:55:06 +0900579 'run_all_unittests',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900580 'test_support_base',
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900581 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
ajwong@chromium.orge2f951e2009-05-28 16:23:16 +0900582 '../testing/gmock.gyp:gmock',
mark@chromium.org15425a12009-02-26 06:26:55 +0900583 '../testing/gtest.gyp:gtest',
kinaba@google.com7f3f2422011-05-30 20:45:43 +0900584 '../third_party/icu/icu.gyp:icui18n',
585 '../third_party/icu/icu.gyp:icuuc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900586 ],
ajwong@chromium.org505386d2011-09-10 12:03:00 +0900587 'includes': ['../build/nocompile.gypi'],
588 'variables': {
589 # TODO(ajwong): Is there a way to autodetect this?
590 'module_dir': 'base'
591 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900592 'conditions': [
michaelbai@google.com7cdf8a52011-10-04 01:25:19 +0900593 ['OS == "android"', {
bulach@chromium.org6079a072012-02-24 09:09:38 +0900594 'dependencies': [
bulach@chromium.orgf9326a02012-03-08 21:39:13 +0900595 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
bulach@chromium.org6079a072012-02-24 09:09:38 +0900596 ],
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900597 'conditions': [
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +0900598 ['gtest_target_type == "shared_library"', {
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900599 'dependencies': [
600 '../testing/android/native_test.gyp:native_test_native_code',
601 ],
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900602 }],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900603 ],
phajdan.jr@chromium.orga912a2f2012-11-15 04:32:23 +0900604 'sources!': [
605 # Broken on Android, and already disabled there.
606 'debug/stack_trace_unittest.cc',
607 ],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900608 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900609 ['OS == "ios"', {
610 'sources/': [
611 # Only test the iOS-meaningful portion of process_utils.
612 ['exclude', '^process_util_unittest'],
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900613 ['include', '^process_util_unittest_ios\\.cc$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900614 # Requires spawning processes.
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900615 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900616 # 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.
kaiwang@chromium.org7c4acad2012-07-26 05:02:48 +0900619 # Unittests that don't pass.
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900620 ['exclude', '^message_loop_unittest\\.cc$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900621 ],
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900622 'conditions': [
623 ['coverage != 0', {
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900624 'sources!': [
lliabraa@chromium.orgd83799b2012-10-16 21:13:14 +0900625 # These sources can't be built with coverage due to a toolchain
626 # bug: http://openradar.appspot.com/radar?id=1499403
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900627 'json/json_reader_unittest.cc',
628 'string_piece_unittest.cc',
lliabraa@chromium.orgd83799b2012-10-16 21:13:14 +0900629
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',
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900639 ],
640 }],
641 ],
rohitrao@chromium.org6cbedab2012-07-17 23:15:34 +0900642 '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 ],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900655 }],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900656 ['use_glib==1', {
mark@chromium.org828adfd2009-03-02 15:53:31 +0900657 'sources!': [
658 'file_version_info_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900659 ],
willchan@chromium.orge6bcfff2010-10-20 04:09:30 +0900660 'conditions': [
661 [ 'linux_use_tcmalloc==1', {
662 'dependencies': [
663 'allocator/allocator.gyp:allocator',
664 ],
665 },
666 ],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900667 [ 'toolkit_uses_gtk==1', {
668 'sources': [
669 'nix/xdg_util_unittest.cc',
670 ],
671 'dependencies': [
672 '../build/linux/system.gyp:gtk',
673 ]
674 }],
willchan@chromium.orge6bcfff2010-10-20 04:09:30 +0900675 ],
sgk@google.com300c8752009-03-21 08:13:26 +0900676 'dependencies': [
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900677 '../build/linux/system.gyp:glib',
mirandac@chromium.org1d9e6492011-06-01 02:19:30 +0900678 '../build/linux/system.gyp:ssl',
thestig@chromium.orgb5e33342009-09-18 06:37:19 +0900679 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
sgk@google.com300c8752009-03-21 08:13:26 +0900680 ],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900681 }, { # use_glib!=1
deanm@chromium.orgbec47f42009-06-15 19:30:44 +0900682 'sources!': [
683 'message_pump_glib_unittest.cc',
684 ]
mark@chromium.org828adfd2009-03-02 15:53:31 +0900685 }],
mark@chromium.org15425a12009-02-26 06:26:55 +0900686 # This is needed to trigger the dll copy step on windows.
687 # TODO(mark): This should not be necessary.
mark@chromium.org828adfd2009-03-02 15:53:31 +0900688 ['OS == "win"', {
689 'dependencies': [
jshin@chromium.org5b8504c2009-09-09 15:49:08 +0900690 '../third_party/icu/icu.gyp:icudata',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900691 ],
692 'sources!': [
agl@chromium.orgf9d91262009-05-01 04:40:03 +0900693 'file_descriptor_shuffle_unittest.cc',
brettw@chromium.orgbf3eb522012-06-30 06:09:14 +0900694 'files/dir_reader_posix_unittest.cc',
brettw@chromium.org975db2b2010-12-31 03:29:28 +0900695 'threading/worker_pool_posix_unittest.cc',
dmaclach@chromium.org482f99a2011-05-14 01:19:23 +0900696 'message_pump_libevent_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900697 ],
698 }, { # OS != "win"
phajdan.jr@chromium.org01b92782011-08-05 07:23:55 +0900699 'dependencies': [
700 '../third_party/libevent/libevent.gyp:libevent'
701 ],
brettw@chromium.org45352272010-10-16 12:46:05 +0900702 'sources/': [
703 ['exclude', '^win/'],
704 ],
mark@chromium.org828adfd2009-03-02 15:53:31 +0900705 'sources!': [
sadrul@chromium.org9bb2c1a2011-05-25 09:20:42 +0900706 'debug/trace_event_win_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900707 'time_win_unittest.cc',
sadrul@chromium.org9bb2c1a2011-05-25 09:20:42 +0900708 'win/win_util_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900709 ],
710 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900711 ], # 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).
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900717 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
noyau@chromium.orgc2ad9492012-07-26 02:47:58 +0900718 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900719 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900720 ],
721 }],
722 ], # target_conditions
mark@chromium.org15425a12009-02-26 06:26:55 +0900723 },
sgk@google.com2b059ed2009-03-17 08:46:45 +0900724 {
725 'target_name': 'test_support_base',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900726 'type': 'static_library',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900727 'dependencies': [
728 'base',
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900729 'base_static',
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900730 'base_i18n',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900731 '../testing/gmock.gyp:gmock',
732 '../testing/gtest.gyp:gtest',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900733 ],
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900734 'export_dependent_settings': [
735 'base',
736 ],
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900737 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900738 ['toolkit_uses_gtk==1', {
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900739 'dependencies': [
740 # test_suite initializes GTK.
741 '../build/linux/system.gyp:gtk',
742 ],
743 }],
joaodasilva@chromium.orgefe510f2011-06-21 02:44:05 +0900744 ['os_posix==0', {
745 'sources!': [
746 'test/scoped_locale.cc',
747 'test/scoped_locale.h',
748 ],
749 }],
robert.nagy@gmail.combddca342011-11-23 08:41:45 +0900750 ['os_bsd==1', {
robert.nagy@gmail.comea54e462011-10-25 07:05:27 +0900751 'sources!': [
752 'test/test_file_util_linux.cc',
753 ],
754 }],
gab@chromium.orgc669f0d2012-09-12 16:14:55 +0900755 ['OS=="win"', {
756 'direct_dependent_settings': {
757 'msvs_settings': {
758 'VCLinkerTool': {
759 'DelayLoadDLLs': [
760 'propsys.dll',
761 ],
762 },
763 },
764 },
765 }],
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900766 ],
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900767 'sources': [
brettw@chromium.orge0a88f32010-10-10 11:42:32 +0900768 'perftimer.cc',
leng@chromium.orgc9ca67f2012-07-13 18:21:34 +0900769 'test/main_hook.cc',
770 'test/main_hook.h',
771 'test/main_hook_ios.mm',
thakis@chromium.org5e435992010-12-18 10:18:29 +0900772 'test/mock_chrome_application_mac.h',
773 'test/mock_chrome_application_mac.mm',
vandebo@chromium.orgfab003a2012-03-03 08:13:40 +0900774 'test/mock_devices_changed_observer.cc',
775 'test/mock_devices_changed_observer.h',
stevet@chromium.orge493ba32011-06-28 23:29:06 +0900776 'test/mock_time_provider.cc',
777 'test/mock_time_provider.h',
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +0900778 'test/multiprocess_test.cc',
779 'test/multiprocess_test.h',
nileshagrawal@chromium.org11fadcd2012-05-30 04:36:32 +0900780 'test/multiprocess_test_android.cc',
brettw@chromium.orgafb572a2010-10-10 09:21:35 +0900781 'test/perf_test_suite.cc',
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +0900782 'test/perf_test_suite.h',
joaodasilva@chromium.orgefe510f2011-06-21 02:44:05 +0900783 'test/scoped_locale.cc',
784 'test/scoped_locale.h',
pastarmovj@chromium.orge61bf332012-09-27 09:45:36 +0900785 'test/scoped_path_override.cc',
786 'test/scoped_path_override.h',
francoisk777@gmail.com80356342012-04-02 19:16:55 +0900787 'test/sequenced_task_runner_test_template.cc',
788 'test/sequenced_task_runner_test_template.h',
akalin@chromium.org38d2e292012-03-09 15:20:18 +0900789 'test/task_runner_test_template.cc',
790 'test/task_runner_test_template.h',
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900791 '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',
leng@chromium.orgc9ca67f2012-07-13 18:21:34 +0900796 'test/test_listener_ios.h',
797 'test/test_listener_ios.mm',
rogerta@chromium.orgea6545c2011-08-25 05:02:42 +0900798 'test/test_reg_util_win.cc',
799 'test/test_reg_util_win.h',
gab@chromium.orgc669f0d2012-09-12 16:14:55 +0900800 'test/test_shortcut_win.cc',
801 'test/test_shortcut_win.h',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900802 'test/test_suite.cc',
803 'test/test_suite.h',
wangxianzhu@chromium.org8df22a62012-06-02 02:20:04 +0900804 'test/test_support_android.cc',
805 'test/test_support_android.h',
rohitrao@chromium.orga8e028e2012-07-26 04:38:38 +0900806 'test/test_support_ios.h',
807 'test/test_support_ios.mm',
sergeyu@chromium.org0f6abbc2010-10-06 04:03:05 +0900808 'test/test_switches.cc',
809 'test/test_switches.h',
810 'test/test_timeouts.cc',
811 'test/test_timeouts.h',
jochen@chromium.orgf5593332011-06-28 15:43:20 +0900812 'test/thread_test_helper.cc',
813 'test/thread_test_helper.h',
jbates@chromium.orgf44a6882011-10-29 12:16:52 +0900814 'test/trace_event_analyzer.cc',
815 'test/trace_event_analyzer.h',
akalin@chromium.orgd79b68c2012-02-29 12:57:29 +0900816 'test/values_test_util.cc',
817 'test/values_test_util.h',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900818 ],
msarda@chromium.org75a27f92012-09-05 19:18:39 +0900819 '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
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900828 },
829 {
830 'target_name': 'test_support_perf',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900831 'type': 'static_library',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900832 'dependencies': [
833 'base',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900834 '../testing/gtest.gyp:gtest',
835 ],
836 'sources': [
837 'perftimer.cc',
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900838 'test/run_all_perftests.cc',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900839 ],
840 'direct_dependent_settings': {
841 'defines': [
842 'PERF_TEST',
843 ],
844 },
sgk@google.com300c8752009-03-21 08:13:26 +0900845 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900846 ['toolkit_uses_gtk==1', {
sgk@google.com300c8752009-03-21 08:13:26 +0900847 'dependencies': [
848 # Needed to handle the #include chain:
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900849 # base/test/perf_test_suite.h
850 # base/test/test_suite.h
sgk@google.com300c8752009-03-21 08:13:26 +0900851 # gtk/gtk.h
852 '../build/linux/system.gyp:gtk',
853 ],
854 }],
855 ],
sgk@google.com2b059ed2009-03-17 08:46:45 +0900856 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900857 ],
858 'conditions': [
stuartmorgan@chromium.orgd4a108f2012-07-16 19:12:33 +0900859 ['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 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900873 ['OS == "win"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900874 '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 ],
sergeyu@chromium.orge2585912012-07-27 07:53:13 +0900896 'sources!': [
897 # base64.cc depends on modp_b64.
898 'base64.cc',
899 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900900 'configurations': {
901 'Common_Base': {
902 'msvs_target_platform': 'x64',
903 },
904 },
905 'conditions': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900906 ['component == "shared_library"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900907 '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 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900941 ['os_posix==1 and OS!="mac" and OS!="ios"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900942 'targets': [
943 {
944 'target_name': 'symbolize',
945 'type': 'static_library',
946 'toolsets': ['host', 'target'],
947 'variables': {
948 'chromium_code': 0,
949 },
950 'conditions': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900951 ['OS == "solaris"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900952 '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 }],
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001009 ['OS == "android"', {
1010 'targets': [
1011 {
1012 'target_name': 'base_jni_headers',
1013 'type': 'none',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001014 'sources': [
1015 'android/java/src/org/chromium/base/BuildInfo.java',
1016 'android/java/src/org/chromium/base/LocaleUtils.java',
benm@chromium.orgaf3548e2012-08-03 21:43:29 +09001017 'android/java/src/org/chromium/base/PathService.java',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001018 'android/java/src/org/chromium/base/PathUtils.java',
1019 'android/java/src/org/chromium/base/SystemMessageHandler.java',
bulach@chromium.orgacb2f592012-10-16 20:58:08 +09001020 'android/java/src/org/chromium/base/SystemMonitor.java',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001021 ],
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001022 'variables': {
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001023 'jni_gen_dir': 'base',
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001024 },
1025 'includes': [ '../build/jni_generator.gypi' ],
1026 },
1027 {
1028 'target_name': 'base_java',
1029 'type': 'none',
1030 'variables': {
1031 'package_name': 'base',
cjhopman@chromium.org3d684452012-09-13 10:44:03 +09001032 'java_in_dir': '../base/android/java',
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001033 },
1034 'includes': [ '../build/java.gypi' ],
1035 },
jnd@chromium.org996e15c2012-09-01 03:27:55 +09001036 {
1037 'target_name': 'base_java_test_support',
1038 'type': 'none',
1039 'dependencies': [
1040 'base_java',
1041 ],
1042 'variables': {
1043 'package_name': 'base_javatests',
nyquist@chromium.org691fd772012-09-25 07:22:27 +09001044 'java_in_dir': '../base/test/android/javatests',
jnd@chromium.org996e15c2012-09-01 03:27:55 +09001045 },
1046 'includes': [ '../build/java.gypi' ],
1047 },
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001048 ],
1049 }],
jam@chromium.org7059e302012-03-01 10:58:05 +09001050 ['OS == "win"', {
mark@chromium.org15425a12009-02-26 06:26:55 +09001051 'targets': [
1052 {
1053 'target_name': 'debug_message',
1054 'type': 'executable',
1055 'sources': [
1056 'debug_message.cc',
1057 ],
sgk@google.com36d40a42009-05-22 11:39:14 +09001058 'msvs_settings': {
1059 'VCLinkerTool': {
1060 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1061 },
1062 },
mark@chromium.org15425a12009-02-26 06:26:55 +09001063 },
1064 ],
1065 }],
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001066 # Special target to wrap a gtest_target_type == shared_library
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001067 # 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.
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001072 ['OS == "android" and gtest_target_type == "shared_library"', {
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001073 'targets': [
1074 {
1075 'target_name': 'base_unittests_apk',
1076 'type': 'none',
1077 'dependencies': [
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001078 'base_java',
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001079 'base_unittests',
1080 ],
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001081 'variables': {
1082 'test_suite_name': 'base_unittests',
yfriedman@chromium.orga3e321d2012-05-30 08:19:13 +09001083 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001084 },
1085 'includes': [ '../build/apk_test.gypi' ],
bradnelson@google.com040b1d12012-06-08 10:01:57 +09001086 },
1087 ],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001088 }],
maruel@chromium.org59861d62012-07-28 09:03:41 +09001089 ['test_isolation_mode != "noop"', {
1090 'targets': [
1091 {
1092 'target_name': 'base_unittests_run',
1093 'type': 'none',
1094 'dependencies': [
1095 'base_unittests',
1096 ],
1097 'includes': [
maruel@chromium.org11b56902012-10-20 13:16:31 +09001098 '../build/isolate.gypi',
maruel@chromium.org59861d62012-07-28 09:03:41 +09001099 'base_unittests.isolate',
1100 ],
maruel@chromium.org11b56902012-10-20 13:16:31 +09001101 'sources': [
1102 'base_unittests.isolate',
maruel@chromium.org59861d62012-07-28 09:03:41 +09001103 ],
1104 },
1105 ],
1106 }],
mark@chromium.org15425a12009-02-26 06:26:55 +09001107 ],
1108}