blob: 183955e9d6ef1caf7923f86c2c20c6b0fb4a6338 [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 ],
digit@chromium.orgfcf6b522013-01-10 02:09:24 +0900144 'includes': [
145 '../build/android/cpufeatures.gypi',
146 ],
pliard@chromium.org36dc8f92012-10-06 01:20:01 +0900147 }],
148 ['OS == "android" and _toolset == "target" and android_build_type == 0', {
149 'dependencies': [
150 'base_java',
151 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900152 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900153 ['os_bsd==1', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900154 'include_dirs': [
155 '/usr/local/include',
156 ],
157 'link_settings': {
158 'libraries': [
159 '-L/usr/local/lib -lexecinfo',
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900160 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900161 },
bradnelson@google.com130e7662012-06-08 03:43:44 +0900162 }],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900163 ['OS == "linux"', {
164 'link_settings': {
165 'libraries': [
166 # We need rt for clock_gettime().
167 '-lrt',
168 # For 'native_library_linux.cc'
169 '-ldl',
170 ],
171 },
172 }],
173 ['OS == "mac"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900174 'link_settings': {
175 'libraries': [
176 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
asvitkine@chromium.org399f23e2012-07-24 01:51:25 +0900177 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900178 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
179 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
180 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
181 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
182 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
183 ],
184 },
185 'dependencies': [
186 '../third_party/mach_override/mach_override.gyp:mach_override',
187 ],
188 }],
stuartmorgan@chromium.org456df342012-07-15 23:24:46 +0900189 ['OS == "ios"', {
190 'link_settings': {
191 'libraries': [
192 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
stuartmorgan@chromium.org03c68be2012-07-25 20:07:44 +0900193 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
194 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
stuartmorgan@chromium.org456df342012-07-15 23:24:46 +0900195 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
196 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
197 ],
198 },
199 }],
blundell@chromium.orge21b2aa2012-12-01 02:29:40 +0900200 ['OS != "win" and OS != "ios"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900201 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
202 },],
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900203 ['component=="shared_library"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900204 'conditions': [
205 ['OS=="win"', {
206 'sources!': [
207 'debug/debug_on_start_win.cc',
208 ],
209 }],
210 ],
211 }],
phajdan.jr@chromium.orgd9ff9c92013-01-09 01:49:07 +0900212 ['use_system_nspr==1', {
213 'dependencies': [
214 'third_party/nspr/nspr.gyp:nspr',
215 ],
216 }],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900217 ],
218 'sources': [
219 'third_party/nspr/prcpucfg.h',
220 'third_party/nspr/prcpucfg_win.h',
221 'third_party/nspr/prtypes.h',
222 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
223 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
224 'auto_reset.h',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900225 'event_recorder.h',
226 'event_recorder_stubs.cc',
227 'event_recorder_win.cc',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900228 'linux_util.cc',
229 'linux_util.h',
230 'md5.cc',
231 'md5.h',
232 'message_pump_android.cc',
233 'message_pump_android.h',
234 'message_pump_glib.cc',
235 'message_pump_glib.h',
236 'message_pump_gtk.cc',
237 'message_pump_gtk.h',
blundell@chromium.orge21b2aa2012-12-01 02:29:40 +0900238 'message_pump_io_ios.cc',
239 'message_pump_io_ios.h',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900240 'message_pump_observer.h',
241 'message_pump_aurax11.cc',
242 'message_pump_aurax11.h',
243 'message_pump_libevent.cc',
244 'message_pump_libevent.h',
245 'message_pump_mac.h',
246 'message_pump_mac.mm',
247 'metrics/field_trial.cc',
248 'metrics/field_trial.h',
brettw@chromium.org04a8ee22012-11-10 05:22:00 +0900249 'posix/file_descriptor_shuffle.cc',
250 'posix/file_descriptor_shuffle.h',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900251 'sync_socket.h',
252 'sync_socket_win.cc',
253 'sync_socket_posix.cc',
bradnelson@google.com130e7662012-06-08 03:43:44 +0900254 ],
255 },
256 {
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900257 'target_name': 'base_i18n',
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900258 'type': '<(component)',
siggi@chromium.org71120e42011-12-21 04:59:10 +0900259 'variables': {
260 'enable_wexit_time_destructors': 1,
261 'optimize': 'max',
262 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900263 'dependencies': [
264 'base',
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900265 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900266 '../third_party/icu/icu.gyp:icui18n',
267 '../third_party/icu/icu.gyp:icuuc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900268 ],
mmoss@google.com751961d2010-03-23 06:24:57 +0900269 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900270 ['toolkit_uses_gtk==1', {
mmoss@google.com751961d2010-03-23 06:24:57 +0900271 'dependencies': [
272 # i18n/rtl.cc uses gtk
273 '../build/linux/system.gyp:gtk',
274 ],
275 }],
jschuh@chromium.orgb8f6aa52013-01-10 08:18:29 +0900276 ['OS == "win"', {
277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
278 'msvs_disabled_warnings': [
279 4267,
280 ],
281 }],
mmoss@google.com751961d2010-03-23 06:24:57 +0900282 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900283 'export_dependent_settings': [
284 'base',
285 ],
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900286 'defines': [
287 'BASE_I18N_IMPLEMENTATION',
288 ],
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900289 'sources': [
rvargas@google.comc4b016b2011-09-01 07:15:48 +0900290 'i18n/base_i18n_export.h',
hbono@chromium.org31407362011-02-24 18:20:16 +0900291 'i18n/bidi_line_iterator.cc',
292 'i18n/bidi_line_iterator.h',
cdn@chromium.org79f24902010-12-16 03:00:54 +0900293 'i18n/break_iterator.cc',
294 'i18n/break_iterator.h',
dmazzoni@chromium.org43126982010-08-23 23:30:27 +0900295 'i18n/char_iterator.cc',
296 'i18n/char_iterator.h',
phajdan.jr@chromium.orge178fe22011-05-06 17:36:26 +0900297 'i18n/case_conversion.cc',
298 'i18n/case_conversion.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900299 'i18n/file_util_icu.cc',
300 'i18n/file_util_icu.h',
phajdan.jr@chromium.orgb00f0982010-05-11 18:19:30 +0900301 'i18n/icu_encoding_detection.cc',
302 'i18n/icu_encoding_detection.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900303 'i18n/icu_string_conversions.cc',
304 'i18n/icu_string_conversions.h',
305 'i18n/icu_util.cc',
306 'i18n/icu_util.h',
307 'i18n/number_formatting.cc',
308 'i18n/number_formatting.h',
ben@chromium.org2c4a3a82010-03-20 15:37:01 +0900309 'i18n/rtl.cc',
310 'i18n/rtl.h',
michaelbai@google.com7cdf8a52011-10-04 01:25:19 +0900311 'i18n/string_search.cc',
312 'i18n/string_search.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900313 'i18n/time_formatting.cc',
314 'i18n/time_formatting.h',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900315 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900316 },
317 {
joi@chromium.org1e43ce82012-11-01 21:05:27 +0900318 'target_name': 'base_prefs',
319 'type': '<(component)',
320 'variables': {
321 'enable_wexit_time_destructors': 1,
322 'optimize': 'max',
323 },
324 'dependencies': [
325 'base',
326 ],
327 'export_dependent_settings': [
328 'base',
329 ],
330 'defines': [
331 'BASE_PREFS_IMPLEMENTATION',
332 ],
333 'sources': [
334 'prefs/default_pref_store.cc',
335 'prefs/default_pref_store.h',
336 'prefs/json_pref_store.cc',
337 'prefs/json_pref_store.h',
338 'prefs/overlay_user_pref_store.cc',
339 'prefs/overlay_user_pref_store.h',
340 'prefs/persistent_pref_store.h',
341 'prefs/pref_notifier.h',
dsinclair@chromium.org38608f82013-01-26 05:41:19 +0900342 'prefs/pref_observer.h',
joi@chromium.org1e43ce82012-11-01 21:05:27 +0900343 'prefs/pref_store.cc',
344 'prefs/pref_store.h',
345 'prefs/pref_value_map.cc',
346 'prefs/pref_value_map.h',
347 'prefs/public/pref_change_registrar.cc',
348 'prefs/public/pref_change_registrar.h',
joi@chromium.orgf6b27c92012-12-12 20:36:05 +0900349 'prefs/public/pref_member.cc',
350 'prefs/public/pref_member.h',
joi@chromium.org1e43ce82012-11-01 21:05:27 +0900351 'prefs/public/pref_service_base.h',
352 'prefs/value_map_pref_store.cc',
353 'prefs/value_map_pref_store.h',
354 ],
355 },
356 {
tfarina@chromium.org4bb1a5e2013-01-16 22:11:33 +0900357 'target_name': 'base_prefs_test_support',
358 'type': 'static_library',
359 'dependencies': [
360 'base',
361 'base_prefs',
362 '../testing/gmock.gyp:gmock',
363 ],
364 'sources': [
365 'prefs/pref_store_observer_mock.cc',
366 'prefs/pref_store_observer_mock.h',
367 'prefs/testing_pref_store.cc',
368 'prefs/testing_pref_store.h',
369 ],
370 },
371 {
rvargas@google.com57a43962011-04-05 07:42:46 +0900372 # This is the subset of files from base that should not be used with a
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900373 # dynamic library. Note that this library cannot depend on base because
374 # base depends on base_static.
rvargas@google.com57a43962011-04-05 07:42:46 +0900375 'target_name': 'base_static',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900376 'type': 'static_library',
siggi@chromium.org71120e42011-12-21 04:59:10 +0900377 'variables': {
378 'enable_wexit_time_destructors': 1,
379 'optimize': 'max',
380 },
pkasting@chromium.org2680a0a2011-09-16 06:17:32 +0900381 'toolsets': ['host', 'target'],
rvargas@google.com57a43962011-04-05 07:42:46 +0900382 'sources': [
rvargas@google.com29b10092011-05-27 07:03:28 +0900383 'base_switches.cc',
384 'base_switches.h',
rvargas@google.com57a43962011-04-05 07:42:46 +0900385 'win/pe_image.cc',
386 'win/pe_image.h',
387 ],
388 'include_dirs': [
389 '..',
390 ],
391 },
akalin@chromium.org4158e992012-03-21 14:55:06 +0900392 # Include this target for a main() function that simply instantiates
393 # and runs a base::TestSuite.
394 {
395 'target_name': 'run_all_unittests',
396 'type': 'static_library',
397 'dependencies': [
398 'test_support_base',
399 ],
400 'sources': [
401 'test/run_all_unittests.cc',
402 ],
403 },
peter@chromium.orgf63cdf12012-03-14 20:24:04 +0900404 {
mark@chromium.org15425a12009-02-26 06:26:55 +0900405 'target_name': 'base_unittests',
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900406 'type': '<(gtest_target_type)',
mark@chromium.org15425a12009-02-26 06:26:55 +0900407 'sources': [
maruel@chromium.org2b6effe2009-09-09 02:25:40 +0900408 # Tests.
steveblock@chromium.org27bef552011-12-05 23:42:08 +0900409 'android/jni_android_unittest.cc',
avayvod@chromium.orgcc210d82012-10-10 04:43:10 +0900410 'android/jni_array_unittest.cc',
joth@chromium.org3a08d892012-12-14 10:31:17 +0900411 'android/jni_string_unittest.cc',
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900412 'android/path_utils_unittest.cc',
joth@chromium.orged27f3a2011-09-09 19:17:35 +0900413 'android/scoped_java_ref_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900414 'at_exit_unittest.cc',
415 'atomicops_unittest.cc',
hayato@chromium.org268ac3a2009-11-24 15:21:53 +0900416 'base64_unittest.cc',
ajwong@chromium.orge4f3dc32012-01-07 07:12:28 +0900417 'bind_helpers_unittest.cc',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +0900418 'bind_unittest.cc',
ajwong@chromium.org505386d2011-09-10 12:03:00 +0900419 'bind_unittest.nc',
apatrick@google.com0265b732009-11-19 08:08:39 +0900420 'bits_unittest.cc',
agl@chromium.orgb9206f42011-11-12 01:09:31 +0900421 'build_time_unittest.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +0900422 'callback_unittest.cc',
ajwong@chromium.org3bc50ce2011-09-10 12:14:35 +0900423 'callback_unittest.nc',
jhawkins@chromium.org78936ff2011-11-24 13:12:04 +0900424 'cancelable_callback_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900425 'command_line_unittest.cc',
brettw@chromium.org427b15b2012-11-10 09:46:16 +0900426 'containers/linked_list_unittest.cc',
brettw@chromium.org4f5affd2012-11-14 05:34:14 +0900427 'containers/mru_cache_unittest.cc',
brettw@chromium.orgba6903b2012-11-10 07:49:19 +0900428 'containers/small_map_unittest.cc',
brettw@chromium.org427b15b2012-11-10 09:46:16 +0900429 'containers/stack_container_unittest.cc',
hbono@chromium.org31407362011-02-24 18:20:16 +0900430 'cpu_unittest.cc',
rsesek@chromium.org51a9e7c2013-01-16 08:51:23 +0900431 'debug/crash_logging_unittest.cc',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900432 'debug/leak_tracker_unittest.cc',
433 'debug/stack_trace_unittest.cc',
scheib@chromium.org603f46e2011-05-10 11:23:58 +0900434 'debug/trace_event_unittest.cc',
jbates@chromium.org5e2f67d2012-08-16 13:32:49 +0900435 'debug/trace_event_unittest.h',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900436 'debug/trace_event_win_unittest.cc',
tfarina@chromium.org6d36c5d2010-08-03 12:00:50 +0900437 'environment_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900438 'file_path_unittest.cc',
439 'file_util_unittest.cc',
440 'file_version_info_unittest.cc',
brettw@chromium.orgbf3eb522012-06-30 06:09:14 +0900441 'files/dir_reader_posix_unittest.cc',
brettw@chromium.org06a553b2013-01-26 09:21:58 +0900442 'files/file_util_proxy_unittest.cc',
joi@chromium.org20009e32012-10-25 01:33:36 +0900443 'files/important_file_writer_unittest.cc',
brettw@chromium.org091db522012-11-17 05:34:23 +0900444 'files/scoped_temp_dir_unittest.cc',
ajwong@chromium.orgab54d3d2009-05-30 23:39:59 +0900445 'gmock_unittest.cc',
marja@chromium.org9158ee02012-06-14 23:22:07 +0900446 'guid_unittest.cc',
jam@chromium.org81e9e992012-06-05 04:33:56 +0900447 'hi_res_timer_manager_unittest.cc',
phajdan.jr@chromium.orga12746c2009-08-19 23:56:38 +0900448 'id_map_unittest.cc',
cdn@chromium.org79f24902010-12-16 03:00:54 +0900449 'i18n/break_iterator_unittest.cc',
dmazzoni@chromium.org43126982010-08-23 23:30:27 +0900450 'i18n/char_iterator_unittest.cc',
phajdan.jr@chromium.orge178fe22011-05-06 17:36:26 +0900451 'i18n/case_conversion_unittest.cc',
brettw@chromium.org86aca862009-10-09 02:38:30 +0900452 'i18n/file_util_icu_unittest.cc',
brettw@chromium.orgde29ea42009-10-11 05:40:50 +0900453 'i18n/icu_string_conversions_unittest.cc',
avi@chromium.orgac6d6152011-06-23 05:40:22 +0900454 'i18n/number_formatting_unittest.cc',
ben@chromium.org2c4a3a82010-03-20 15:37:01 +0900455 'i18n/rtl_unittest.cc',
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900456 'i18n/string_search_unittest.cc',
kinaba@google.com7f3f2422011-05-30 20:45:43 +0900457 'i18n/time_formatting_unittest.cc',
chenyu@chromium.org3f440a42012-08-07 20:03:11 +0900458 'ios/device_util_unittest.mm',
rsesek@chromium.orgc2d2b202012-05-17 00:23:30 +0900459 'json/json_parser_unittest.cc',
brettw@chromium.org7cd41eb2009-10-24 05:00:20 +0900460 'json/json_reader_unittest.cc',
mukai@chromium.org55292e42011-12-23 03:31:47 +0900461 'json/json_value_converter_unittest.cc',
pastarmovj@chromium.orgb81dd3f2011-11-18 01:17:23 +0900462 'json/json_value_serializer_unittest.cc',
brettw@chromium.org7cd41eb2009-10-24 05:00:20 +0900463 'json/json_writer_unittest.cc',
464 'json/string_escape_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900465 'lazy_instance_unittest.cc',
akalin@chromium.orga88579b2010-10-02 08:02:36 +0900466 'logging_unittest.cc',
noyau@chromium.orgc2ad9492012-07-26 02:47:58 +0900467 'mac/bind_objc_block_unittest.mm',
kushi.p@gmail.com9a28acb2011-10-19 09:36:56 +0900468 'mac/foundation_util_unittest.mm',
rsesek@chromium.orgbc9175b2012-12-07 16:47:15 +0900469 'mac/libdispatch_task_runner_unittest.cc',
brettw@chromium.org92d954b2011-01-02 03:20:14 +0900470 'mac/mac_util_unittest.mm',
mark@chromium.org2a9b20f2011-04-21 07:30:35 +0900471 'mac/objc_property_releaser_unittest.mm',
shess@chromium.orgcb3d4fe2011-12-02 08:56:17 +0900472 'mac/scoped_sending_event_unittest.mm',
shinyak@google.com5c521022011-04-26 08:54:07 +0900473 'md5_unittest.cc',
jbates@chromium.orgdde8e302012-02-24 02:52:20 +0900474 'memory/aligned_memory_unittest.cc',
qinmin@chromium.orgf3741812013-01-22 10:24:26 +0900475 'memory/discardable_memory_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900476 'memory/linked_ptr_unittest.cc',
joth@chromium.org42544c82011-07-22 22:22:23 +0900477 'memory/ref_counted_memory_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900478 'memory/ref_counted_unittest.cc',
qsr@chromium.orgd85d9492012-02-09 18:50:58 +0900479 'memory/scoped_nsobject_unittest.mm',
levin@chromium.org5c528682011-03-28 10:54:15 +0900480 'memory/scoped_ptr_unittest.cc',
sergeyu@chromium.org1c30aaf2012-01-25 09:33:05 +0900481 'memory/scoped_ptr_unittest.nc',
scr@chromium.org80f0c1a2011-03-29 07:27:34 +0900482 'memory/scoped_vector_unittest.cc',
levin@chromium.org5c528682011-03-28 10:54:15 +0900483 'memory/singleton_unittest.cc',
484 'memory/weak_ptr_unittest.cc',
gavinp@chromium.org9dd8b172012-06-16 01:36:12 +0900485 'memory/weak_ptr_unittest.nc',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900486 'message_loop_proxy_impl_unittest.cc',
ajwong@chromium.org545839a2011-08-19 08:13:01 +0900487 'message_loop_proxy_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900488 'message_loop_unittest.cc',
deanm@chromium.orgbec47f42009-06-15 19:30:44 +0900489 'message_pump_glib_unittest.cc',
blundell@chromium.orge21b2aa2012-12-01 02:29:40 +0900490 'message_pump_io_ios_unittest.cc',
dmaclach@chromium.org482f99a2011-05-14 01:19:23 +0900491 'message_pump_libevent_unittest.cc',
kaiwang@chromium.orgec0e7272012-10-06 06:29:44 +0900492 'metrics/sample_map_unittest.cc',
kaiwang@chromium.org0ce37b12012-09-22 12:42:12 +0900493 'metrics/sample_vector_unittest.cc',
kaiwang@chromium.org7c4acad2012-07-26 05:02:48 +0900494 'metrics/bucket_ranges_unittest.cc',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900495 'metrics/field_trial_unittest.cc',
kaiwang@chromium.orge4e800c2013-01-12 06:52:44 +0900496 'metrics/histogram_base_unittest.cc',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900497 'metrics/histogram_unittest.cc',
kaiwang@chromium.org18643672012-08-09 14:14:15 +0900498 'metrics/sparse_histogram_unittest.cc',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900499 'metrics/stats_table_unittest.cc',
kaiwang@chromium.orga97a5ae2012-08-02 06:34:08 +0900500 'metrics/statistics_recorder_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900501 'observer_list_unittest.cc',
felipeg@chromium.org0fdb2122012-07-19 02:26:50 +0900502 'os_compat_android_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900503 'path_service_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900504 'pickle_unittest.cc',
dumi@chromium.org23915982010-09-10 12:01:14 +0900505 'platform_file_unittest.cc',
brettw@chromium.org04a8ee22012-11-10 05:22:00 +0900506 'posix/file_descriptor_shuffle_unittest.cc',
glider@google.com7a087c42013-01-18 19:34:29 +0900507 'posix/unix_domain_socket_linux_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900508 'pr_time_unittest.cc',
tfarina@chromium.org5c811f92013-01-31 08:31:16 +0900509 'prefs/json_pref_store_unittest.cc',
tfarina@chromium.org4bb1a5e2013-01-16 22:11:33 +0900510 'prefs/overlay_user_pref_store_unittest.cc',
511 'prefs/pref_value_map_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900512 'process_util_unittest.cc',
stuartmorgan@chromium.org11335452012-07-12 00:35:02 +0900513 'process_util_unittest_ios.cc',
avi@chromium.org4b9545a2010-03-20 03:42:41 +0900514 'process_util_unittest_mac.h',
515 'process_util_unittest_mac.mm',
jar@chromium.org27cf2972011-11-09 02:09:21 +0900516 'profiler/tracked_time_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900517 'rand_util_unittest.cc',
scottmg@chromium.org347c3652013-01-17 08:34:04 +0900518 'safe_numerics_unittest.cc',
519 'safe_numerics_unittest.nc',
thakis@chromium.org927d7282011-05-20 08:34:17 +0900520 'scoped_native_library_unittest.cc',
erg@chromium.org7827c532012-06-23 06:47:30 +0900521 'scoped_observer.h',
jln@chromium.org4faaf212013-01-16 05:16:33 +0900522 'security_unittest.cc',
akalin@chromium.org4fb2deb2012-12-28 04:58:00 +0900523 'sequence_checker_unittest.cc',
524 'sequence_checker_impl_unittest.cc',
jhawkins@chromium.orgf64907f2009-11-05 04:29:58 +0900525 'sha1_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900526 'shared_memory_unittest.cc',
kalman@chromium.org028e6242012-12-06 06:40:27 +0900527 'stl_util_unittest.cc',
abarth@chromium.orgd04f7082010-11-14 05:05:47 +0900528 'string16_unittest.cc',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900529 'string_number_conversions_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900530 'string_piece_unittest.cc',
timsteele@google.com22058212010-01-22 04:29:25 +0900531 'string_split_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900532 'string_tokenizer_unittest.cc',
533 'string_util_unittest.cc',
brettw@chromium.org67cbde42010-08-17 12:45:37 +0900534 'stringprintf_unittest.cc',
brettw@chromium.org34afab22013-02-01 04:45:02 +0900535 'strings/stringize_macros_unittest.cc',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900536 'synchronization/cancellation_flag_unittest.cc',
brettw@chromium.orge439a962011-01-02 08:16:20 +0900537 'synchronization/condition_variable_unittest.cc',
538 'synchronization/lock_unittest.cc',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900539 'synchronization/waitable_event_unittest.cc',
540 'synchronization/waitable_event_watcher_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900541 'sys_info_unittest.cc',
mirandac@chromium.org69689342009-11-09 04:04:54 +0900542 'sys_string_conversions_mac_unittest.mm',
mark@chromium.org15425a12009-02-26 06:26:55 +0900543 'sys_string_conversions_unittest.cc',
willchan@chromium.org0fbb8682011-05-18 16:29:56 +0900544 'system_monitor/system_monitor_unittest.cc',
battre@chromium.org6d025972012-04-17 11:48:06 +0900545 'task_runner_util_unittest.cc',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +0900546 'template_util_unittest.cc',
rsesek@chromium.org083fda42013-02-01 09:19:28 +0900547 'test/expectations/expectation_unittest.cc',
francoisk777@gmail.com80356342012-04-02 19:16:55 +0900548 'test/sequenced_worker_pool_owner.cc',
549 'test/sequenced_worker_pool_owner.h',
jbates@chromium.orgf44a6882011-10-29 12:16:52 +0900550 'test/trace_event_analyzer_unittest.cc',
brettw@chromium.org088ae932011-01-01 13:48:49 +0900551 'threading/non_thread_safe_unittest.cc',
brettw@chromium.org61391822011-01-01 05:02:16 +0900552 'threading/platform_thread_unittest.cc',
brettw@chromium.org03d32fd2012-01-01 14:42:34 +0900553 'threading/sequenced_worker_pool_unittest.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900554 'threading/simple_thread_unittest.cc',
brettw@chromium.org61391822011-01-01 05:02:16 +0900555 'threading/thread_checker_unittest.cc',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900556 'threading/thread_collision_warner_unittest.cc',
dsinclair@chromium.org38608f82013-01-26 05:41:19 +0900557 'threading/thread_id_name_manager_unittest.cc',
brettw@chromium.org63965582010-12-31 07:18:56 +0900558 'threading/thread_local_storage_unittest.cc',
559 'threading/thread_local_unittest.cc',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900560 'threading/thread_unittest.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900561 'threading/watchdog_unittest.cc',
562 'threading/worker_pool_posix_unittest.cc',
563 'threading/worker_pool_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900564 'time_unittest.cc',
565 'time_win_unittest.cc',
566 'timer_unittest.cc',
glider@chromium.org0f9756f2009-12-17 21:37:58 +0900567 'tools_sanity_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900568 'tracked_objects_unittest.cc',
569 'tuple_unittest.cc',
pkasting@chromium.org046cd5a2009-11-14 04:27:48 +0900570 'utf_offset_string_conversions_unittest.cc',
pkasting@chromium.org47366502009-11-07 10:34:53 +0900571 'utf_string_conversions_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900572 'values_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900573 'version_unittest.cc',
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +0900574 'vlog_unittest.cc',
jar@chromium.org92d3dcf2011-12-23 07:07:41 +0900575 'win/dllmain.cc',
dmazzoni@chromium.orgb1bdde42011-12-03 13:31:13 +0900576 'win/enum_variant_unittest.cc',
siggi@chromium.org7913ed62010-11-07 00:39:40 +0900577 'win/event_trace_consumer_unittest.cc',
578 'win/event_trace_controller_unittest.cc',
579 'win/event_trace_provider_unittest.cc',
grt@chromium.orgce2cac52010-11-17 00:28:45 +0900580 'win/i18n_unittest.cc',
dmazzoni@chromium.orgb1bdde42011-12-03 13:31:13 +0900581 'win/iunknown_impl_unittest.cc',
brettw@google.com3890ab32011-01-02 03:26:16 +0900582 'win/object_watcher_unittest.cc',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900583 'win/pe_image_unittest.cc',
584 'win/registry_unittest.cc',
siggi@chromium.orgdb0946f2011-12-08 06:44:28 +0900585 'win/sampling_profiler_unittest.cc',
brettw@chromium.org45352272010-10-16 12:46:05 +0900586 'win/scoped_bstr_unittest.cc',
587 'win/scoped_comptr_unittest.cc',
rvargas@google.comc59177f2012-12-22 09:21:10 +0900588 'win/scoped_handle_unittest.cc',
erikwright@chromium.org82223842012-04-05 04:57:50 +0900589 'win/scoped_process_information_unittest.cc',
gab@chromium.orgc669f0d2012-09-12 16:14:55 +0900590 'win/shortcut_unittest.cc',
jschuh@chromium.orgc5a4fd92012-08-28 06:19:00 +0900591 'win/startup_information_unittest.cc',
brettw@chromium.org45352272010-10-16 12:46:05 +0900592 'win/scoped_variant_unittest.cc',
brettw@google.comf4fe79b2011-01-01 02:18:50 +0900593 'win/win_util_unittest.cc',
rvargas@google.comed1496e2011-03-17 09:34:09 +0900594 'win/wrapped_window_proc_unittest.cc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900595 ],
mark@chromium.org15425a12009-02-26 06:26:55 +0900596 'dependencies': [
597 'base',
brettw@chromium.org67eb77e2009-10-15 07:06:14 +0900598 'base_i18n',
tfarina@chromium.org4bb1a5e2013-01-16 22:11:33 +0900599 'base_prefs_test_support',
rvargas@google.com57a43962011-04-05 07:42:46 +0900600 'base_static',
akalin@chromium.org4158e992012-03-21 14:55:06 +0900601 'run_all_unittests',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900602 'test_support_base',
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900603 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
ajwong@chromium.orge2f951e2009-05-28 16:23:16 +0900604 '../testing/gmock.gyp:gmock',
mark@chromium.org15425a12009-02-26 06:26:55 +0900605 '../testing/gtest.gyp:gtest',
kinaba@google.com7f3f2422011-05-30 20:45:43 +0900606 '../third_party/icu/icu.gyp:icui18n',
607 '../third_party/icu/icu.gyp:icuuc',
mark@chromium.org15425a12009-02-26 06:26:55 +0900608 ],
ajwong@chromium.org505386d2011-09-10 12:03:00 +0900609 'includes': ['../build/nocompile.gypi'],
610 'variables': {
611 # TODO(ajwong): Is there a way to autodetect this?
612 'module_dir': 'base'
613 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900614 'conditions': [
michaelbai@google.com7cdf8a52011-10-04 01:25:19 +0900615 ['OS == "android"', {
bulach@chromium.org6079a072012-02-24 09:09:38 +0900616 'dependencies': [
bulach@chromium.orgf9326a02012-03-08 21:39:13 +0900617 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
bulach@chromium.org6079a072012-02-24 09:09:38 +0900618 ],
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900619 'conditions': [
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +0900620 ['gtest_target_type == "shared_library"', {
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900621 'dependencies': [
622 '../testing/android/native_test.gyp:native_test_native_code',
623 ],
nileshagrawal@chromium.org77ab0bc2012-04-27 05:19:47 +0900624 }],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900625 ],
phajdan.jr@chromium.orga912a2f2012-11-15 04:32:23 +0900626 'sources!': [
627 # Broken on Android, and already disabled there.
628 'debug/stack_trace_unittest.cc',
629 ],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +0900630 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900631 ['OS == "ios"', {
632 'sources/': [
633 # Only test the iOS-meaningful portion of process_utils.
634 ['exclude', '^process_util_unittest'],
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900635 ['include', '^process_util_unittest_ios\\.cc$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900636 # Requires spawning processes.
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900637 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
blundell@chromium.orge21b2aa2012-12-01 02:29:40 +0900638 # iOS does not use message_pump_libevent.
639 ['exclude', '^message_pump_libevent_unittest\\.cc$'],
tfarina@chromium.org5c811f92013-01-31 08:31:16 +0900640 ['exclude', '^prefs/json_pref_store_unittest.\\cc$'],
641
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900642 ],
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900643 'conditions': [
644 ['coverage != 0', {
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900645 'sources!': [
lliabraa@chromium.orgd83799b2012-10-16 21:13:14 +0900646 # These sources can't be built with coverage due to a toolchain
647 # bug: http://openradar.appspot.com/radar?id=1499403
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900648 'json/json_reader_unittest.cc',
649 'string_piece_unittest.cc',
lliabraa@chromium.orgd83799b2012-10-16 21:13:14 +0900650
651 # These tests crash when run with coverage turned on due to an
652 # issue with llvm_gcda_increment_indirect_counter:
653 # http://crbug.com/156058
654 'debug/trace_event_unittest.cc',
655 'debug/trace_event_unittest.h',
656 'logging_unittest.cc',
657 'string_util_unittest.cc',
658 'test/trace_event_analyzer_unittest.cc',
659 'utf_offset_string_conversions_unittest.cc',
stuartmorgan@chromium.org86a64882012-10-13 04:07:03 +0900660 ],
661 }],
662 ],
rohitrao@chromium.org6cbedab2012-07-17 23:15:34 +0900663 'actions': [
664 {
665 'action_name': 'copy_test_data',
666 'variables': {
667 'test_data_files': [
668 'data/json/bom_feff.json',
669 'data/file_util_unittest',
670 ],
671 'test_data_prefix': 'base',
672 },
673 'includes': [ '../build/copy_test_data_ios.gypi' ],
674 },
675 ],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900676 }],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900677 ['use_glib==1', {
mark@chromium.org828adfd2009-03-02 15:53:31 +0900678 'sources!': [
679 'file_version_info_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900680 ],
willchan@chromium.orge6bcfff2010-10-20 04:09:30 +0900681 'conditions': [
akalin@chromium.org5afaca32012-11-30 09:19:17 +0900682 [ 'linux_use_tcmalloc==1', {
683 'dependencies': [
684 'allocator/allocator.gyp:allocator',
685 ],
686 },
687 ],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900688 [ 'toolkit_uses_gtk==1', {
689 'sources': [
690 'nix/xdg_util_unittest.cc',
691 ],
692 'dependencies': [
693 '../build/linux/system.gyp:gtk',
694 ]
695 }],
willchan@chromium.orge6bcfff2010-10-20 04:09:30 +0900696 ],
sgk@google.com300c8752009-03-21 08:13:26 +0900697 'dependencies': [
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900698 '../build/linux/system.gyp:glib',
mirandac@chromium.org1d9e6492011-06-01 02:19:30 +0900699 '../build/linux/system.gyp:ssl',
thestig@chromium.orgb5e33342009-09-18 06:37:19 +0900700 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
sgk@google.com300c8752009-03-21 08:13:26 +0900701 ],
sadrul@chromium.org847a5722011-09-21 09:17:19 +0900702 }, { # use_glib!=1
deanm@chromium.orgbec47f42009-06-15 19:30:44 +0900703 'sources!': [
704 'message_pump_glib_unittest.cc',
705 ]
mark@chromium.org828adfd2009-03-02 15:53:31 +0900706 }],
mark@chromium.org15425a12009-02-26 06:26:55 +0900707 # This is needed to trigger the dll copy step on windows.
708 # TODO(mark): This should not be necessary.
mark@chromium.org828adfd2009-03-02 15:53:31 +0900709 ['OS == "win"', {
710 'dependencies': [
jshin@chromium.org5b8504c2009-09-09 15:49:08 +0900711 '../third_party/icu/icu.gyp:icudata',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900712 ],
713 'sources!': [
agl@chromium.orgf9d91262009-05-01 04:40:03 +0900714 'file_descriptor_shuffle_unittest.cc',
brettw@chromium.orgbf3eb522012-06-30 06:09:14 +0900715 'files/dir_reader_posix_unittest.cc',
brettw@chromium.org975db2b2010-12-31 03:29:28 +0900716 'threading/worker_pool_posix_unittest.cc',
dmaclach@chromium.org482f99a2011-05-14 01:19:23 +0900717 'message_pump_libevent_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900718 ],
jschuh@chromium.orgb8f6aa52013-01-10 08:18:29 +0900719 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
720 'msvs_disabled_warnings': [
721 4267,
722 ],
mark@chromium.org828adfd2009-03-02 15:53:31 +0900723 }, { # OS != "win"
phajdan.jr@chromium.org01b92782011-08-05 07:23:55 +0900724 'dependencies': [
725 '../third_party/libevent/libevent.gyp:libevent'
726 ],
brettw@chromium.org45352272010-10-16 12:46:05 +0900727 'sources/': [
728 ['exclude', '^win/'],
729 ],
mark@chromium.org828adfd2009-03-02 15:53:31 +0900730 'sources!': [
sadrul@chromium.org9bb2c1a2011-05-25 09:20:42 +0900731 'debug/trace_event_win_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900732 'time_win_unittest.cc',
sadrul@chromium.org9bb2c1a2011-05-25 09:20:42 +0900733 'win/win_util_unittest.cc',
mark@chromium.org828adfd2009-03-02 15:53:31 +0900734 ],
735 }],
phajdan.jr@chromium.orgd9ff9c92013-01-09 01:49:07 +0900736 ['use_system_nspr==1', {
737 'dependencies': [
738 'third_party/nspr/nspr.gyp:nspr',
739 ],
740 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900741 ], # conditions
742 'target_conditions': [
743 ['OS == "ios"', {
744 'sources/': [
745 # Pull in specific Mac files for iOS (which have been filtered out
746 # by file name rules).
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900747 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
noyau@chromium.orgc2ad9492012-07-26 02:47:58 +0900748 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
rohitrao@chromium.orgdcc49022012-07-13 20:02:57 +0900749 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900750 ],
751 }],
752 ], # target_conditions
mark@chromium.org15425a12009-02-26 06:26:55 +0900753 },
sgk@google.com2b059ed2009-03-17 08:46:45 +0900754 {
755 'target_name': 'test_support_base',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900756 'type': 'static_library',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900757 'dependencies': [
758 'base',
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900759 'base_static',
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900760 'base_i18n',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900761 '../testing/gmock.gyp:gmock',
762 '../testing/gtest.gyp:gtest',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900763 ],
rvargas@google.com97a20ec2011-04-22 07:22:10 +0900764 'export_dependent_settings': [
765 'base',
766 ],
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900767 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900768 ['toolkit_uses_gtk==1', {
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900769 'dependencies': [
770 # test_suite initializes GTK.
771 '../build/linux/system.gyp:gtk',
772 ],
773 }],
joaodasilva@chromium.orgefe510f2011-06-21 02:44:05 +0900774 ['os_posix==0', {
775 'sources!': [
776 'test/scoped_locale.cc',
777 'test/scoped_locale.h',
778 ],
779 }],
robert.nagy@gmail.combddca342011-11-23 08:41:45 +0900780 ['os_bsd==1', {
robert.nagy@gmail.comea54e462011-10-25 07:05:27 +0900781 'sources!': [
782 'test/test_file_util_linux.cc',
783 ],
784 }],
brettw@chromium.orgf4850792010-08-16 13:42:26 +0900785 ],
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900786 'sources': [
brettw@chromium.orge0a88f32010-10-10 11:42:32 +0900787 'perftimer.cc',
rsesek@chromium.org083fda42013-02-01 09:19:28 +0900788 'test/expectations/expectation.cc',
789 'test/expectations/expectation.h',
leng@chromium.orgc9ca67f2012-07-13 18:21:34 +0900790 'test/main_hook.cc',
791 'test/main_hook.h',
792 'test/main_hook_ios.mm',
thakis@chromium.org5e435992010-12-18 10:18:29 +0900793 'test/mock_chrome_application_mac.h',
794 'test/mock_chrome_application_mac.mm',
vandebo@chromium.orgfab003a2012-03-03 08:13:40 +0900795 'test/mock_devices_changed_observer.cc',
796 'test/mock_devices_changed_observer.h',
stevet@chromium.orge493ba32011-06-28 23:29:06 +0900797 'test/mock_time_provider.cc',
798 'test/mock_time_provider.h',
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +0900799 'test/multiprocess_test.cc',
800 'test/multiprocess_test.h',
nileshagrawal@chromium.org11fadcd2012-05-30 04:36:32 +0900801 'test/multiprocess_test_android.cc',
akalin@chromium.org4fb2deb2012-12-28 04:58:00 +0900802 'test/null_task_runner.cc',
803 'test/null_task_runner.h',
brettw@chromium.orgafb572a2010-10-10 09:21:35 +0900804 'test/perf_test_suite.cc',
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +0900805 'test/perf_test_suite.h',
joaodasilva@chromium.orgefe510f2011-06-21 02:44:05 +0900806 'test/scoped_locale.cc',
807 'test/scoped_locale.h',
pastarmovj@chromium.orge61bf332012-09-27 09:45:36 +0900808 'test/scoped_path_override.cc',
809 'test/scoped_path_override.h',
francoisk777@gmail.com80356342012-04-02 19:16:55 +0900810 'test/sequenced_task_runner_test_template.cc',
811 'test/sequenced_task_runner_test_template.h',
akalin@chromium.org38d2e292012-03-09 15:20:18 +0900812 'test/task_runner_test_template.cc',
813 'test/task_runner_test_template.h',
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900814 'test/test_file_util.h',
815 'test/test_file_util_linux.cc',
816 'test/test_file_util_mac.cc',
817 'test/test_file_util_posix.cc',
818 'test/test_file_util_win.cc',
leng@chromium.orgc9ca67f2012-07-13 18:21:34 +0900819 'test/test_listener_ios.h',
820 'test/test_listener_ios.mm',
akalin@chromium.org1955a282012-12-20 07:18:29 +0900821 'test/test_pending_task.cc',
822 'test/test_pending_task.h',
rogerta@chromium.orgea6545c2011-08-25 05:02:42 +0900823 'test/test_reg_util_win.cc',
824 'test/test_reg_util_win.h',
gab@chromium.orgc669f0d2012-09-12 16:14:55 +0900825 'test/test_shortcut_win.cc',
826 'test/test_shortcut_win.h',
akalin@chromium.org1955a282012-12-20 07:18:29 +0900827 'test/test_simple_task_runner.cc',
828 'test/test_simple_task_runner.h',
brettw@chromium.org694bb6f2010-08-16 13:18:41 +0900829 'test/test_suite.cc',
830 'test/test_suite.h',
wangxianzhu@chromium.org8df22a62012-06-02 02:20:04 +0900831 'test/test_support_android.cc',
832 'test/test_support_android.h',
rohitrao@chromium.orga8e028e2012-07-26 04:38:38 +0900833 'test/test_support_ios.h',
834 'test/test_support_ios.mm',
sergeyu@chromium.org0f6abbc2010-10-06 04:03:05 +0900835 'test/test_switches.cc',
836 'test/test_switches.h',
837 'test/test_timeouts.cc',
838 'test/test_timeouts.h',
jochen@chromium.orgf5593332011-06-28 15:43:20 +0900839 'test/thread_test_helper.cc',
840 'test/thread_test_helper.h',
jbates@chromium.orgf44a6882011-10-29 12:16:52 +0900841 'test/trace_event_analyzer.cc',
842 'test/trace_event_analyzer.h',
akalin@chromium.orgd79b68c2012-02-29 12:57:29 +0900843 'test/values_test_util.cc',
844 'test/values_test_util.h',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900845 ],
msarda@chromium.org75a27f92012-09-05 19:18:39 +0900846 'target_conditions': [
847 ['OS == "ios"', {
848 'sources/': [
849 # Pull in specific Mac files for iOS (which have been filtered out
850 # by file name rules).
851 ['include', '^test/test_file_util_mac\\.cc$'],
852 ],
853 }],
854 ], # target_conditions
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900855 },
856 {
857 'target_name': 'test_support_perf',
evan@chromium.org0b930f22011-05-20 08:18:53 +0900858 'type': 'static_library',
phajdan.jr@chromium.orgf02d1442009-08-04 03:35:06 +0900859 'dependencies': [
860 'base',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900861 '../testing/gtest.gyp:gtest',
862 ],
863 'sources': [
864 'perftimer.cc',
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900865 'test/run_all_perftests.cc',
sgk@google.com2b059ed2009-03-17 08:46:45 +0900866 ],
867 'direct_dependent_settings': {
868 'defines': [
869 'PERF_TEST',
870 ],
871 },
sgk@google.com300c8752009-03-21 08:13:26 +0900872 'conditions': [
mark@chromium.org639d3b52011-05-13 03:18:34 +0900873 ['toolkit_uses_gtk==1', {
sgk@google.com300c8752009-03-21 08:13:26 +0900874 'dependencies': [
875 # Needed to handle the #include chain:
brettw@chromium.orga52632f2009-10-10 03:20:30 +0900876 # base/test/perf_test_suite.h
877 # base/test/test_suite.h
sgk@google.com300c8752009-03-21 08:13:26 +0900878 # gtk/gtk.h
879 '../build/linux/system.gyp:gtk',
880 ],
881 }],
882 ],
sgk@google.com2b059ed2009-03-17 08:46:45 +0900883 },
mark@chromium.org15425a12009-02-26 06:26:55 +0900884 ],
885 'conditions': [
stuartmorgan@chromium.orgd4a108f2012-07-16 19:12:33 +0900886 ['OS!="ios"', {
887 'targets': [
888 {
889 'target_name': 'check_example',
890 'type': 'executable',
891 'sources': [
892 'check_example.cc',
893 ],
894 'dependencies': [
895 'base',
896 ],
897 },
898 ],
899 }],
bradnelson@google.come7fc5fd2013-01-22 08:23:57 +0900900 ['OS == "win" and target_arch=="ia32"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900901 'targets': [
902 {
903 'target_name': 'base_nacl_win64',
904 'type': '<(component)',
905 'variables': {
906 'base_target': 1,
907 },
908 'dependencies': [
909 'base_static_win64',
910 'allocator/allocator.gyp:allocator_extension_thunks_win64',
911 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
912 ],
913 # TODO(gregoryd): direct_dependent_settings should be shared with the
914 # 32-bit target, but it doesn't work due to a bug in gyp
915 'direct_dependent_settings': {
916 'include_dirs': [
917 '..',
918 ],
919 },
920 'defines': [
921 '<@(nacl_win64_defines)',
922 ],
sergeyu@chromium.orge2585912012-07-27 07:53:13 +0900923 'sources!': [
924 # base64.cc depends on modp_b64.
925 'base64.cc',
926 ],
bradnelson@google.com130e7662012-06-08 03:43:44 +0900927 'configurations': {
928 'Common_Base': {
929 'msvs_target_platform': 'x64',
930 },
931 },
932 'conditions': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +0900933 ['component == "shared_library"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +0900934 'sources!': [
935 'debug/debug_on_start_win.cc',
936 ],
937 }],
938 ],
939 },
940 {
941 'target_name': 'base_i18n_nacl_win64',
942 'type': '<(component)',
943 # TODO(gregoryd): direct_dependent_settings should be shared with the
944 # 32-bit target, but it doesn't work due to a bug in gyp
945 'direct_dependent_settings': {
946 'include_dirs': [
947 '..',
948 ],
949 },
950 'defines': [
951 '<@(nacl_win64_defines)',
952 'BASE_I18N_IMPLEMENTATION',
953 ],
954 'include_dirs': [
955 '..',
956 ],
957 'sources': [
958 'i18n/icu_util_nacl_win64.cc',
959 ],
960 'configurations': {
961 'Common_Base': {
962 'msvs_target_platform': 'x64',
963 },
964 },
965 },
bradnelson@google.come7fc5fd2013-01-22 08:23:57 +0900966 {
967 # TODO(rvargas): Remove this when gyp finally supports a clean model.
968 # See bug 36232.
969 'target_name': 'base_static_win64',
970 'type': 'static_library',
971 'sources': [
972 'base_switches.cc',
973 'base_switches.h',
974 'win/pe_image.cc',
975 'win/pe_image.h',
976 ],
977 'sources!': [
978 # base64.cc depends on modp_b64.
979 'base64.cc',
980 ],
981 'include_dirs': [
982 '..',
983 ],
984 'configurations': {
985 'Common_Base': {
986 'msvs_target_platform': 'x64',
987 },
988 },
989 'defines': [
990 'NACL_WIN64',
991 ],
992 # TODO(rvargas): Bug 78117. Remove this.
993 'msvs_disabled_warnings': [
994 4244,
995 ],
996 },
bradnelson@google.com130e7662012-06-08 03:43:44 +0900997 ],
998 }],
stuartmorgan@chromium.org894c3dc2012-07-12 00:09:10 +0900999 ['os_posix==1 and OS!="mac" and OS!="ios"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +09001000 'targets': [
1001 {
1002 'target_name': 'symbolize',
1003 'type': 'static_library',
1004 'toolsets': ['host', 'target'],
1005 'variables': {
1006 'chromium_code': 0,
1007 },
1008 'conditions': [
bradnelson@google.com040b1d12012-06-08 10:01:57 +09001009 ['OS == "solaris"', {
bradnelson@google.com130e7662012-06-08 03:43:44 +09001010 'include_dirs': [
1011 '/usr/gnu/include',
1012 '/usr/gnu/include/libelf',
1013 ],
1014 },],
1015 ],
1016 'cflags': [
1017 '-Wno-sign-compare',
1018 ],
1019 'cflags!': [
1020 '-Wextra',
1021 ],
1022 'sources': [
1023 'third_party/symbolize/config.h',
1024 'third_party/symbolize/demangle.cc',
1025 'third_party/symbolize/demangle.h',
1026 'third_party/symbolize/glog/logging.h',
1027 'third_party/symbolize/glog/raw_logging.h',
1028 'third_party/symbolize/symbolize.cc',
1029 'third_party/symbolize/symbolize.h',
1030 'third_party/symbolize/utilities.h',
1031 ],
1032 'include_dirs': [
1033 '..',
1034 ],
1035 },
1036 {
1037 'target_name': 'xdg_mime',
1038 'type': 'static_library',
1039 'toolsets': ['host', 'target'],
1040 'variables': {
1041 'chromium_code': 0,
1042 },
1043 'cflags!': [
1044 '-Wextra',
1045 ],
1046 'sources': [
1047 'third_party/xdg_mime/xdgmime.c',
1048 'third_party/xdg_mime/xdgmime.h',
1049 'third_party/xdg_mime/xdgmimealias.c',
1050 'third_party/xdg_mime/xdgmimealias.h',
1051 'third_party/xdg_mime/xdgmimecache.c',
1052 'third_party/xdg_mime/xdgmimecache.h',
1053 'third_party/xdg_mime/xdgmimeglob.c',
1054 'third_party/xdg_mime/xdgmimeglob.h',
1055 'third_party/xdg_mime/xdgmimeicon.c',
1056 'third_party/xdg_mime/xdgmimeicon.h',
1057 'third_party/xdg_mime/xdgmimeint.c',
1058 'third_party/xdg_mime/xdgmimeint.h',
1059 'third_party/xdg_mime/xdgmimemagic.c',
1060 'third_party/xdg_mime/xdgmimemagic.h',
1061 'third_party/xdg_mime/xdgmimeparent.c',
1062 'third_party/xdg_mime/xdgmimeparent.h',
1063 ],
1064 },
1065 ],
1066 }],
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001067 ['OS == "android"', {
1068 'targets': [
1069 {
1070 'target_name': 'base_jni_headers',
1071 'type': 'none',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001072 'sources': [
1073 'android/java/src/org/chromium/base/BuildInfo.java',
digit@chromium.orgfcf6b522013-01-10 02:09:24 +09001074 'android/java/src/org/chromium/base/CpuFeatures.java',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001075 'android/java/src/org/chromium/base/LocaleUtils.java',
benm@chromium.orgaf3548e2012-08-03 21:43:29 +09001076 'android/java/src/org/chromium/base/PathService.java',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001077 'android/java/src/org/chromium/base/PathUtils.java',
1078 'android/java/src/org/chromium/base/SystemMessageHandler.java',
bulach@chromium.orgacb2f592012-10-16 20:58:08 +09001079 'android/java/src/org/chromium/base/SystemMonitor.java',
james.wei@intel.com07a85622013-01-30 15:24:49 +09001080 'android/java/src/org/chromium/base/ThreadUtils.java',
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001081 ],
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001082 'variables': {
bulach@chromium.org4c248ed2012-07-20 05:02:55 +09001083 'jni_gen_dir': 'base',
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001084 },
1085 'includes': [ '../build/jni_generator.gypi' ],
1086 },
1087 {
1088 'target_name': 'base_java',
1089 'type': 'none',
1090 'variables': {
1091 'package_name': 'base',
cjhopman@chromium.org3d684452012-09-13 10:44:03 +09001092 'java_in_dir': '../base/android/java',
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001093 },
1094 'includes': [ '../build/java.gypi' ],
1095 },
jnd@chromium.org996e15c2012-09-01 03:27:55 +09001096 {
1097 'target_name': 'base_java_test_support',
1098 'type': 'none',
1099 'dependencies': [
1100 'base_java',
1101 ],
1102 'variables': {
1103 'package_name': 'base_javatests',
nyquist@chromium.org691fd772012-09-25 07:22:27 +09001104 'java_in_dir': '../base/test/android/javatests',
jnd@chromium.org996e15c2012-09-01 03:27:55 +09001105 },
1106 'includes': [ '../build/java.gypi' ],
1107 },
yfriedman@chromium.org71995f32012-04-17 13:39:52 +09001108 ],
1109 }],
jam@chromium.org7059e302012-03-01 10:58:05 +09001110 ['OS == "win"', {
mark@chromium.org15425a12009-02-26 06:26:55 +09001111 'targets': [
1112 {
1113 'target_name': 'debug_message',
1114 'type': 'executable',
1115 'sources': [
1116 'debug_message.cc',
1117 ],
sgk@google.com36d40a42009-05-22 11:39:14 +09001118 'msvs_settings': {
1119 'VCLinkerTool': {
1120 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1121 },
1122 },
mark@chromium.org15425a12009-02-26 06:26:55 +09001123 },
1124 ],
1125 }],
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001126 # Special target to wrap a gtest_target_type == shared_library
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001127 # base_unittests into an android apk for execution.
1128 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
1129 # in the gyp make generator. What is the correct way to extract
1130 # this path from gyp and into 'raw' for input to antfiles?
1131 # Hard-coding in the gypfile seems a poor choice.
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001132 ['OS == "android" and gtest_target_type == "shared_library"', {
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001133 'targets': [
1134 {
1135 'target_name': 'base_unittests_apk',
1136 'type': 'none',
1137 'dependencies': [
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001138 'base_java',
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001139 'base_unittests',
1140 ],
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001141 'variables': {
1142 'test_suite_name': 'base_unittests',
yfriedman@chromium.orga3e321d2012-05-30 08:19:13 +09001143 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
nileshagrawal@chromium.orgeb72f272012-05-26 05:17:49 +09001144 },
1145 'includes': [ '../build/apk_test.gypi' ],
bradnelson@google.com040b1d12012-06-08 10:01:57 +09001146 },
1147 ],
jrg@chromium.org37eb4e92012-04-20 06:02:09 +09001148 }],
maruel@chromium.org59861d62012-07-28 09:03:41 +09001149 ['test_isolation_mode != "noop"', {
1150 'targets': [
1151 {
1152 'target_name': 'base_unittests_run',
1153 'type': 'none',
1154 'dependencies': [
1155 'base_unittests',
1156 ],
1157 'includes': [
maruel@chromium.org11b56902012-10-20 13:16:31 +09001158 '../build/isolate.gypi',
maruel@chromium.org59861d62012-07-28 09:03:41 +09001159 'base_unittests.isolate',
1160 ],
maruel@chromium.org11b56902012-10-20 13:16:31 +09001161 'sources': [
1162 'base_unittests.isolate',
maruel@chromium.org59861d62012-07-28 09:03:41 +09001163 ],
1164 },
1165 ],
1166 }],
mark@chromium.org15425a12009-02-26 06:26:55 +09001167 ],
1168}