blob: c18ca6308e18ee5d47b9085b4d8d4be503285808 [file] [log] [blame]
[email protected]ef8c3cf2012-01-24 04:37:291# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
[email protected]ef4fa4072009-12-04 22:46:509 'includes': [
[email protected]99ff9932011-09-07 14:14:5410 '../build/win_precompile.gypi',
[email protected]ef4fa4072009-12-04 22:46:5011 'base.gypi',
12 ],
[email protected]2f80c312009-02-25 21:26:5513 'targets': [
14 {
[email protected]83c1c3c2012-06-07 18:43:4415 'target_name': 'base',
16 'type': '<(component)',
17 'toolsets': ['host', 'target'],
18 'variables': {
19 'base_target': 1,
20 'enable_wexit_time_destructors': 1,
21 'optimize': 'max',
22 },
23 'dependencies': [
24 'base_static',
25 'allocator/allocator.gyp:allocator_extension_thunks',
26 '../testing/gtest.gyp:gtest_prod',
27 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
29 ],
30 # TODO(gregoryd): direct_dependent_settings should be shared with the
31 # 64-bit target, but it doesn't work due to a bug in gyp
32 'direct_dependent_settings': {
33 'include_dirs': [
34 '..',
35 ],
36 },
37 'conditions': [
[email protected]9ac2db692012-06-08 01:01:5738 ['use_glib==1', {
[email protected]83c1c3c2012-06-07 18:43:4439 'conditions': [
[email protected]9ac2db692012-06-08 01:01:5740 ['chromeos==1', {
41 'sources/': [ ['include', '_chromeos\\.cc$'] ]
42 }],
43 ['linux_use_tcmalloc==0', {
44 'defines': [
45 'NO_TCMALLOC',
46 ],
47 'direct_dependent_settings': {
[email protected]83c1c3c2012-06-07 18:43:4448 'defines': [
49 'NO_TCMALLOC',
50 ],
[email protected]83c1c3c2012-06-07 18:43:4451 },
[email protected]9ac2db692012-06-08 01:01:5752 }],
53 ['toolkit_uses_gtk==1', {
[email protected]83c1c3c2012-06-07 18:43:4454 'dependencies': [
55 '../build/linux/system.gyp:gtk',
56 ],
57 'export_dependent_settings': [
58 '../build/linux/system.gyp:gtk',
59 ],
60 }],
61 ],
62 'dependencies': [
63 'symbolize',
64 '../build/linux/system.gyp:glib',
65 '../build/linux/system.gyp:x11',
66 'xdg_mime',
67 ],
68 'defines': [
69 'USE_SYMBOLIZE',
70 ],
71 'cflags': [
72 '-Wno-write-strings',
73 ],
74 'export_dependent_settings': [
75 '../build/linux/system.gyp:glib',
76 '../build/linux/system.gyp:x11',
77 ],
78 }, { # use_glib!=1
79 'sources/': [
80 ['exclude', '/xdg_user_dirs/'],
[email protected]feb727e2012-07-13 11:02:5781 ['exclude', '_nss\\.cc$'],
[email protected]83c1c3c2012-06-07 18:43:4482 ],
83 }],
[email protected]9ac2db692012-06-08 01:01:5784 ['OS == "android" and _toolset == "host"', {
[email protected]83c1c3c2012-06-07 18:43:4485 # Base for host support is the minimum required to run the
86 # ssl false start blacklist tool. It requires further changes
87 # to generically support host builds (and tests).
88 # Note: when building for host, gyp has OS == "android",
89 # hence the *_android.cc files are included but the actual code
90 # doesn't have OS_ANDROID / ANDROID defined.
91 'conditions': [
92 # Host build on linux depends on system.gyp::gtk as
93 # default linux build has TOOLKIT_GTK defined.
94 ['host_os == "linux"', {
95 'sources/': [
96 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
97 ],
98 'dependencies': [
99 '../build/linux/system.gyp:gtk',
100 ],
101 'export_dependent_settings': [
102 '../build/linux/system.gyp:gtk',
103 ],
104 }],
105 ['host_os == "mac"', {
106 'sources/': [
107 ['exclude', '^native_library_linux\\.cc$'],
108 ['exclude', '^process_util_linux\\.cc$'],
109 ['exclude', '^sys_info_linux\\.cc$'],
110 ['exclude', '^sys_string_conversions_linux\\.cc$'],
111 ['exclude', '^worker_pool_linux\\.cc$'],
112 ],
113 }],
114 ],
115 }],
[email protected]9ac2db692012-06-08 01:01:57116 ['OS == "android" and _toolset == "target"', {
[email protected]83c1c3c2012-06-07 18:43:44117 'conditions': [
118 ['target_arch == "ia32"', {
119 'sources/': [
120 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
121 ],
122 }],
123 ],
124 'dependencies': [
125 'symbolize',
126 '../third_party/ashmem/ashmem.gyp:ashmem',
127 '../third_party/icu/icu.gyp:icuuc',
[email protected]83c1c3c2012-06-07 18:43:44128 'base_jni_headers',
129 ],
130 'include_dirs': [
131 '<(SHARED_INTERMEDIATE_DIR)/base',
132 ],
133 'link_settings': {
134 'libraries': [
135 '-llog',
136 ],
137 },
138 'defines': [
139 'USE_SYMBOLIZE',
140 ],
141 'sources!': [
142 'debug/stack_trace.cc',
143 'debug/stack_trace_posix.cc',
144 ],
145 }],
[email protected]9ac2db692012-06-08 01:01:57146 ['os_bsd==1', {
[email protected]83c1c3c2012-06-07 18:43:44147 'include_dirs': [
148 '/usr/local/include',
149 ],
150 'link_settings': {
151 'libraries': [
152 '-L/usr/local/lib -lexecinfo',
[email protected]9ac2db692012-06-08 01:01:57153 ],
[email protected]83c1c3c2012-06-07 18:43:44154 },
[email protected]83c1c3c2012-06-07 18:43:44155 }],
[email protected]9ac2db692012-06-08 01:01:57156 ['OS == "linux"', {
157 'link_settings': {
158 'libraries': [
159 # We need rt for clock_gettime().
160 '-lrt',
161 # For 'native_library_linux.cc'
162 '-ldl',
163 ],
164 },
165 }],
166 ['OS == "mac"', {
[email protected]83c1c3c2012-06-07 18:43:44167 'link_settings': {
168 'libraries': [
169 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
170 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
171 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
172 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
173 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
174 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
175 ],
176 },
177 'dependencies': [
178 '../third_party/mach_override/mach_override.gyp:mach_override',
179 ],
180 }],
[email protected]62cafe02012-07-15 14:24:46181 ['OS == "ios"', {
182 'link_settings': {
183 'libraries': [
184 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
185 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
186 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
187 ],
188 },
189 }],
[email protected]9ac2db692012-06-08 01:01:57190 ['OS != "win"', {
[email protected]83c1c3c2012-06-07 18:43:44191 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
192 },],
[email protected]9ac2db692012-06-08 01:01:57193 ['component=="shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44194 'conditions': [
195 ['OS=="win"', {
196 'sources!': [
197 'debug/debug_on_start_win.cc',
198 ],
199 }],
200 ],
201 }],
202 ],
203 'sources': [
204 'third_party/nspr/prcpucfg.h',
205 'third_party/nspr/prcpucfg_win.h',
206 'third_party/nspr/prtypes.h',
207 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
208 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
209 'auto_reset.h',
210 'base64.cc',
211 'base64.h',
212 'event_recorder.h',
213 'event_recorder_stubs.cc',
214 'event_recorder_win.cc',
215 'file_descriptor_shuffle.cc',
216 'file_descriptor_shuffle.h',
217 'linux_util.cc',
218 'linux_util.h',
219 'md5.cc',
220 'md5.h',
221 'message_pump_android.cc',
222 'message_pump_android.h',
223 'message_pump_glib.cc',
224 'message_pump_glib.h',
225 'message_pump_gtk.cc',
226 'message_pump_gtk.h',
227 'message_pump_observer.h',
228 'message_pump_aurax11.cc',
229 'message_pump_aurax11.h',
230 'message_pump_libevent.cc',
231 'message_pump_libevent.h',
232 'message_pump_mac.h',
233 'message_pump_mac.mm',
234 'metrics/field_trial.cc',
235 'metrics/field_trial.h',
236 'string16.cc',
237 'string16.h',
238 'sync_socket.h',
239 'sync_socket_win.cc',
240 'sync_socket_posix.cc',
241 'time_mac.cc',
242 'time_posix.cc',
243 ],
244 },
245 {
[email protected]d34d79f2009-10-14 22:06:14246 'target_name': 'base_i18n',
[email protected]c743d4c72011-08-31 22:15:48247 'type': '<(component)',
[email protected]1d88ef32011-12-20 19:59:10248 'variables': {
249 'enable_wexit_time_destructors': 1,
250 'optimize': 'max',
251 },
[email protected]2f80c312009-02-25 21:26:55252 'dependencies': [
253 'base',
[email protected]c743d4c72011-08-31 22:15:48254 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d34d79f2009-10-14 22:06:14255 '../third_party/icu/icu.gyp:icui18n',
256 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55257 ],
[email protected]8f6f2022010-03-22 21:24:57258 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34259 ['toolkit_uses_gtk==1', {
[email protected]8f6f2022010-03-22 21:24:57260 'dependencies': [
261 # i18n/rtl.cc uses gtk
262 '../build/linux/system.gyp:gtk',
263 ],
264 }],
265 ],
[email protected]2f80c312009-02-25 21:26:55266 'export_dependent_settings': [
267 'base',
268 ],
[email protected]c743d4c72011-08-31 22:15:48269 'defines': [
270 'BASE_I18N_IMPLEMENTATION',
271 ],
[email protected]d34d79f2009-10-14 22:06:14272 'sources': [
[email protected]c743d4c72011-08-31 22:15:48273 'i18n/base_i18n_export.h',
[email protected]14cd2e62011-02-24 09:20:16274 'i18n/bidi_line_iterator.cc',
275 'i18n/bidi_line_iterator.h',
[email protected]55954d892010-12-15 18:00:54276 'i18n/break_iterator.cc',
277 'i18n/break_iterator.h',
[email protected]0ca5c102010-08-23 14:30:27278 'i18n/char_iterator.cc',
279 'i18n/char_iterator.h',
[email protected]503d03872011-05-06 08:36:26280 'i18n/case_conversion.cc',
281 'i18n/case_conversion.h',
[email protected]d34d79f2009-10-14 22:06:14282 'i18n/file_util_icu.cc',
283 'i18n/file_util_icu.h',
[email protected]193c3512010-05-11 09:19:30284 'i18n/icu_encoding_detection.cc',
285 'i18n/icu_encoding_detection.h',
[email protected]d34d79f2009-10-14 22:06:14286 'i18n/icu_string_conversions.cc',
287 'i18n/icu_string_conversions.h',
288 'i18n/icu_util.cc',
289 'i18n/icu_util.h',
290 'i18n/number_formatting.cc',
291 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:01292 'i18n/rtl.cc',
293 'i18n/rtl.h',
[email protected]923402f32011-10-03 16:25:19294 'i18n/string_search.cc',
295 'i18n/string_search.h',
[email protected]d34d79f2009-10-14 22:06:14296 'i18n/time_formatting.cc',
297 'i18n/time_formatting.h',
[email protected]d34d79f2009-10-14 22:06:14298 ],
[email protected]2f80c312009-02-25 21:26:55299 },
300 {
[email protected]167d52b2011-04-04 22:42:46301 # This is the subset of files from base that should not be used with a
[email protected]23bb71f2011-04-21 22:22:10302 # dynamic library. Note that this library cannot depend on base because
303 # base depends on base_static.
[email protected]167d52b2011-04-04 22:42:46304 'target_name': 'base_static',
[email protected]5a547332011-05-19 23:18:53305 'type': 'static_library',
[email protected]1d88ef32011-12-20 19:59:10306 'variables': {
307 'enable_wexit_time_destructors': 1,
308 'optimize': 'max',
309 },
[email protected]e688d9c2011-09-15 21:17:32310 'toolsets': ['host', 'target'],
[email protected]167d52b2011-04-04 22:42:46311 'sources': [
[email protected]46fe10d62011-05-26 22:03:28312 'base_switches.cc',
313 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46314 'win/pe_image.cc',
315 'win/pe_image.h',
316 ],
317 'include_dirs': [
318 '..',
319 ],
320 },
321 {
322 # TODO(rvargas): Remove this when gyp finally supports a clean model.
323 # See bug 36232.
324 'target_name': 'base_static_win64',
[email protected]5a547332011-05-19 23:18:53325 'type': 'static_library',
[email protected]167d52b2011-04-04 22:42:46326 'sources': [
[email protected]46fe10d62011-05-26 22:03:28327 'base_switches.cc',
328 'base_switches.h',
[email protected]167d52b2011-04-04 22:42:46329 'win/pe_image.cc',
330 'win/pe_image.h',
331 ],
332 'include_dirs': [
333 '..',
334 ],
335 'configurations': {
336 'Common_Base': {
337 'msvs_target_platform': 'x64',
338 },
339 },
340 'defines': [
341 'NACL_WIN64',
342 ],
343 # TODO(rvargas): Bug 78117. Remove this.
344 'msvs_disabled_warnings': [
345 4244,
346 ],
347 },
[email protected]c5549062012-03-21 05:55:06348 # Include this target for a main() function that simply instantiates
349 # and runs a base::TestSuite.
350 {
351 'target_name': 'run_all_unittests',
352 'type': 'static_library',
353 'dependencies': [
354 'test_support_base',
355 ],
356 'sources': [
357 'test/run_all_unittests.cc',
358 ],
359 },
[email protected]6fa1e7ef2012-03-14 11:24:04360 {
[email protected]2f80c312009-02-25 21:26:55361 'target_name': 'base_unittests',
[email protected]d9f96952012-04-19 21:02:09362 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55363 'sources': [
[email protected]c7f475ed2009-09-08 17:25:40364 # Tests.
[email protected]96e7ade2011-12-05 14:42:08365 'android/jni_android_unittest.cc',
[email protected]595b0632012-04-26 20:19:47366 'android/path_utils_unittest.cc',
[email protected]f98d7b92011-09-09 10:17:35367 'android/scoped_java_ref_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55368 'at_exit_unittest.cc',
369 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:53370 'base64_unittest.cc',
[email protected]c6944272012-01-06 22:12:28371 'bind_helpers_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38372 'bind_unittest.cc',
[email protected]81814bce2011-09-10 03:03:00373 'bind_unittest.nc',
[email protected]6d1729e2009-11-18 23:08:39374 'bits_unittest.cc',
[email protected]08aa02762011-11-11 16:09:31375 'build_time_unittest.cc',
[email protected]2041cf342010-02-19 03:15:59376 'callback_unittest.cc',
[email protected]481915a772011-09-10 03:14:35377 'callback_unittest.nc',
[email protected]b77576f52011-11-24 04:12:04378 'cancelable_callback_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55379 'command_line_unittest.cc',
[email protected]14cd2e62011-02-24 09:20:16380 'cpu_unittest.cc',
[email protected]58580352010-10-26 04:07:50381 'debug/leak_tracker_unittest.cc',
382 'debug/stack_trace_unittest.cc',
[email protected]366ae242011-05-10 02:23:58383 'debug/trace_event_unittest.cc',
[email protected]58580352010-10-26 04:07:50384 'debug/trace_event_win_unittest.cc',
[email protected]76b90d312010-08-03 03:00:50385 'environment_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03386 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55387 'file_path_unittest.cc',
[email protected]77e07b842012-04-23 18:40:57388 'file_util_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55389 'file_util_unittest.cc',
390 'file_version_info_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14391 'files/dir_reader_posix_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:59392 'gmock_unittest.cc',
[email protected]7e49ad32012-06-14 14:22:07393 'guid_unittest.cc',
[email protected]b3aabd342012-06-04 19:33:56394 'hi_res_timer_manager_unittest.cc',
[email protected]925d5d602009-08-19 14:56:38395 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:54396 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:27397 'i18n/char_iterator_unittest.cc',
[email protected]503d03872011-05-06 08:36:26398 'i18n/case_conversion_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:30399 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:50400 'i18n/icu_string_conversions_unittest.cc',
[email protected]7a3b2632011-06-22 20:40:22401 'i18n/number_formatting_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:01402 'i18n/rtl_unittest.cc',
[email protected]258dca42011-09-21 00:17:19403 'i18n/string_search_unittest.cc',
[email protected]60e6c842011-05-30 11:45:43404 'i18n/time_formatting_unittest.cc',
[email protected]6e680cf2012-05-16 15:23:30405 'json/json_parser_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20406 'json/json_reader_unittest.cc',
[email protected]193f946b2011-12-22 18:31:47407 'json/json_value_converter_unittest.cc',
[email protected]8d77b632011-11-17 16:17:23408 'json/json_value_serializer_unittest.cc',
[email protected]93d49d72009-10-23 20:00:20409 'json/json_writer_unittest.cc',
410 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55411 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:54412 'linked_list_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36413 'logging_unittest.cc',
[email protected]06ff3c52012-03-01 01:58:05414 'mac/closure_blocks_leopard_compat_unittest.cc',
[email protected]28f56492011-10-19 00:36:56415 'mac/foundation_util_unittest.mm',
[email protected]0378bf42011-01-01 18:20:14416 'mac/mac_util_unittest.mm',
[email protected]10756c52011-04-20 22:30:35417 'mac/objc_property_releaser_unittest.mm',
[email protected]d47af2172011-12-01 23:56:17418 'mac/scoped_sending_event_unittest.mm',
[email protected]47f19be2011-04-25 23:54:07419 'md5_unittest.cc',
[email protected]cd924d62012-02-23 17:52:20420 'memory/aligned_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15421 'memory/linked_ptr_unittest.cc',
[email protected]b4ae4442011-04-27 18:37:03422 'memory/mru_cache_unittest.cc',
[email protected]1dda9772011-07-22 13:22:23423 'memory/ref_counted_memory_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15424 'memory/ref_counted_unittest.cc',
[email protected]656d2ab12012-02-09 09:50:58425 'memory/scoped_nsobject_unittest.mm',
[email protected]3b63f8f42011-03-28 01:54:15426 'memory/scoped_ptr_unittest.cc',
[email protected]6e29d6f32012-01-25 00:33:05427 'memory/scoped_ptr_unittest.nc',
[email protected]e5721c182011-03-28 22:27:34428 'memory/scoped_vector_unittest.cc',
[email protected]3b63f8f42011-03-28 01:54:15429 'memory/singleton_unittest.cc',
430 'memory/weak_ptr_unittest.cc',
[email protected]4c44b8442012-06-15 16:36:12431 'memory/weak_ptr_unittest.nc',
[email protected]656475d2010-05-06 18:34:24432 'message_loop_proxy_impl_unittest.cc',
[email protected]c31af70db22011-08-18 23:13:01433 'message_loop_proxy_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55434 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44435 'message_pump_glib_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23436 'message_pump_libevent_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38437 'metrics/field_trial_unittest.cc',
438 'metrics/histogram_unittest.cc',
439 'metrics/stats_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55440 'observer_list_unittest.cc',
441 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55442 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14443 'platform_file_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55444 'pr_time_unittest.cc',
445 'process_util_unittest.cc',
[email protected]b80ffe22012-07-11 15:35:02446 'process_util_unittest_ios.cc',
[email protected]9f958442010-03-19 18:42:41447 'process_util_unittest_mac.h',
448 'process_util_unittest_mac.mm',
[email protected]dbe5d2072011-11-08 17:09:21449 'profiler/tracked_time_unittest.cc',
[email protected]45644f62011-11-23 00:58:23450 'property_bag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55451 'rand_util_unittest.cc',
[email protected]e0785902011-05-19 23:34:17452 'scoped_native_library_unittest.cc',
[email protected]28f57b32012-06-22 21:47:30453 'scoped_observer.h',
[email protected]e0785902011-05-19 23:34:17454 'scoped_temp_dir_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58455 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55456 'shared_memory_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55457 'stack_container_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47458 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44459 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55460 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25461 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55462 'string_tokenizer_unittest.cc',
463 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12464 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37465 'stringprintf_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39466 'synchronization/cancellation_flag_unittest.cc',
[email protected]bc581a682011-01-01 23:16:20467 'synchronization/condition_variable_unittest.cc',
468 'synchronization/lock_unittest.cc',
[email protected]44f9c952011-01-02 06:05:39469 'synchronization/waitable_event_unittest.cc',
470 'synchronization/waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55471 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54472 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55473 'sys_string_conversions_unittest.cc',
[email protected]e41d7dd2011-05-18 07:29:56474 'system_monitor/system_monitor_unittest.cc',
[email protected]95991b12012-04-17 02:48:06475 'task_runner_util_unittest.cc',
[email protected]b38d3572011-02-15 01:27:38476 'template_util_unittest.cc',
[email protected]ce5d0472012-04-02 10:16:55477 'test/sequenced_worker_pool_owner.cc',
478 'test/sequenced_worker_pool_owner.h',
[email protected]7a79dafb2011-10-29 03:16:52479 'test/trace_event_analyzer_unittest.cc',
[email protected]c9177502011-01-01 04:48:49480 'threading/non_thread_safe_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16481 'threading/platform_thread_unittest.cc',
[email protected]098def22012-01-01 05:42:34482 'threading/sequenced_worker_pool_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36483 'threading/simple_thread_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16484 'threading/thread_checker_unittest.cc',
[email protected]34b99632011-01-01 01:01:06485 'threading/thread_collision_warner_unittest.cc',
[email protected]1357c322010-12-30 22:18:56486 'threading/thread_local_storage_unittest.cc',
487 'threading/thread_local_unittest.cc',
[email protected]34b99632011-01-01 01:01:06488 'threading/thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36489 'threading/watchdog_unittest.cc',
490 'threading/worker_pool_posix_unittest.cc',
491 'threading/worker_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55492 'time_unittest.cc',
493 'time_win_unittest.cc',
494 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58495 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55496 'tracked_objects_unittest.cc',
497 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48498 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53499 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55500 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31501 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36502 'vlog_unittest.cc',
[email protected]f21ed6f2011-12-22 22:07:41503 'win/dllmain.cc',
[email protected]c43b0dc2011-12-03 04:31:13504 'win/enum_variant_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40505 'win/event_trace_consumer_unittest.cc',
506 'win/event_trace_controller_unittest.cc',
507 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45508 'win/i18n_unittest.cc',
[email protected]c43b0dc2011-12-03 04:31:13509 'win/iunknown_impl_unittest.cc',
[email protected]a8d1ebbe2011-01-01 18:26:16510 'win/object_watcher_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54511 'win/pe_image_unittest.cc',
512 'win/registry_unittest.cc',
[email protected]da00f002011-12-07 21:44:28513 'win/sampling_profiler_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05514 'win/scoped_bstr_unittest.cc',
515 'win/scoped_comptr_unittest.cc',
[email protected]e8f5ff52012-04-04 19:57:50516 'win/scoped_process_information_unittest.cc',
[email protected]a8c782f2012-07-10 17:35:52517 'win/scoped_startup_info_ex_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05518 'win/scoped_variant_unittest.cc',
[email protected]a8e20582010-12-31 17:18:50519 'win/win_util_unittest.cc',
[email protected]ecb924c2011-03-17 00:34:09520 'win/wrapped_window_proc_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55521 ],
[email protected]2f80c312009-02-25 21:26:55522 'dependencies': [
523 'base',
[email protected]d34d79f2009-10-14 22:06:14524 'base_i18n',
[email protected]167d52b2011-04-04 22:42:46525 'base_static',
[email protected]c5549062012-03-21 05:55:06526 'run_all_unittests',
[email protected]6fa18d12010-08-16 04:18:41527 'test_support_base',
[email protected]23bb71f2011-04-21 22:22:10528 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ce3157102009-05-28 07:23:16529 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55530 '../testing/gtest.gyp:gtest',
[email protected]60e6c842011-05-30 11:45:43531 '../third_party/icu/icu.gyp:icui18n',
532 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:55533 ],
[email protected]81814bce2011-09-10 03:03:00534 'includes': ['../build/nocompile.gypi'],
535 'variables': {
536 # TODO(ajwong): Is there a way to autodetect this?
537 'module_dir': 'base'
538 },
[email protected]2f80c312009-02-25 21:26:55539 'conditions': [
[email protected]923402f32011-10-03 16:25:19540 ['OS == "android"', {
[email protected]923402f32011-10-03 16:25:19541 'sources!': [
[email protected]923402f32011-10-03 16:25:19542 # TODO(michaelbai): Removed the below once the fix upstreamed.
[email protected]595b0632012-04-26 20:19:47543 'debug/stack_trace_unittest.cc',
[email protected]923402f32011-10-03 16:25:19544 'memory/mru_cache_unittest.cc',
[email protected]923402f32011-10-03 16:25:19545 'synchronization/cancellation_flag_unittest.cc',
[email protected]923402f32011-10-03 16:25:19546 ],
[email protected]cef04bcf2012-02-24 00:09:38547 'dependencies': [
[email protected]fae37d62012-03-08 12:39:13548 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
[email protected]cef04bcf2012-02-24 00:09:38549 ],
[email protected]595b0632012-04-26 20:19:47550 'conditions': [
[email protected]a44d1212012-05-25 20:17:49551 ['gtest_target_type == "shared_library"', {
[email protected]595b0632012-04-26 20:19:47552 'dependencies': [
553 '../testing/android/native_test.gyp:native_test_native_code',
554 ],
555 }, { # gtest_target_type != shared_library
556 'sources!': [
557 # The below files are excluded because of the missing JNI.
558 'android/jni_android_unittest.cc',
559 'android/path_utils_unittest.cc',
560 'android/scoped_java_ref_unittest.cc',
561 ],
562 }],
[email protected]d9f96952012-04-19 21:02:09563 ],
564 }],
[email protected]4bfc2dc2012-07-11 15:09:10565 ['OS == "ios"', {
566 'sources/': [
567 # Only test the iOS-meaningful portion of process_utils.
568 ['exclude', '^process_util_unittest'],
[email protected]feb727e2012-07-13 11:02:57569 ['include', '^process_util_unittest_ios\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10570 # Requires spawning processes.
[email protected]feb727e2012-07-13 11:02:57571 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10572 # TODO(ios): Remove these as base/ is unforked.
573 # For now, exclude everything that doesn't build as-is, just to
574 # get a minimal target building.
[email protected]feb727e2012-07-13 11:02:57575 ['exclude', '^memory/aligned_memory_unittest\\.cc$'],
576 ['exclude', '^shared_memory_unittest\\.cc$'],
577 ['exclude', '^sys_info_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10578 ['exclude', '^system_monitor'],
[email protected]feb727e2012-07-13 11:02:57579 # Unittests that don't pass.
580 ['exclude', '^message_loop_unittest\\.cc$'],
581 ['exclude', '^synchronization/waitable_event_watcher_unittest\\.cc$'],
582 ['exclude', '^timer_unittest\\.cc$'],
[email protected]4bfc2dc2012-07-11 15:09:10583 ],
584 }],
[email protected]258dca42011-09-21 00:17:19585 ['use_glib==1', {
[email protected]8b03e8d2009-03-02 06:53:31586 'sources!': [
587 'file_version_info_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31588 ],
[email protected]63dc3782010-10-19 19:09:30589 'conditions': [
590 [ 'linux_use_tcmalloc==1', {
591 'dependencies': [
592 'allocator/allocator.gyp:allocator',
593 ],
594 },
595 ],
[email protected]258dca42011-09-21 00:17:19596 [ 'toolkit_uses_gtk==1', {
597 'sources': [
598 'nix/xdg_util_unittest.cc',
599 ],
600 'dependencies': [
601 '../build/linux/system.gyp:gtk',
602 ]
603 }],
[email protected]63dc3782010-10-19 19:09:30604 ],
[email protected]9d384032009-03-20 23:13:26605 'dependencies': [
[email protected]258dca42011-09-21 00:17:19606 '../build/linux/system.gyp:glib',
[email protected]638e9df42011-05-31 17:19:30607 '../build/linux/system.gyp:ssl',
[email protected]a97488f2009-09-17 21:37:19608 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26609 ],
[email protected]258dca42011-09-21 00:17:19610 }, { # use_glib!=1
[email protected]b44d5cc2009-06-15 10:30:44611 'sources!': [
612 'message_pump_glib_unittest.cc',
613 ]
[email protected]8b03e8d2009-03-02 06:53:31614 }],
[email protected]2f80c312009-02-25 21:26:55615 # This is needed to trigger the dll copy step on windows.
616 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31617 ['OS == "win"', {
618 'dependencies': [
[email protected]280629492009-09-09 06:49:08619 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31620 ],
621 'sources!': [
[email protected]3f04f2b2009-04-30 19:40:03622 'file_descriptor_shuffle_unittest.cc',
[email protected]d88e17f2012-06-29 21:09:14623 'files/dir_reader_posix_unittest.cc',
[email protected]541c4db2010-12-30 18:29:28624 'threading/worker_pool_posix_unittest.cc',
[email protected]b4339c3a2011-05-13 16:19:23625 'message_pump_libevent_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31626 ],
627 }, { # OS != "win"
[email protected]92508df2011-08-04 22:23:55628 'dependencies': [
629 '../third_party/libevent/libevent.gyp:libevent'
630 ],
[email protected]ce0e72462010-10-16 03:46:05631 'sources/': [
632 ['exclude', '^win/'],
633 ],
[email protected]8b03e8d2009-03-02 06:53:31634 'sources!': [
[email protected]3381f172011-05-25 00:20:42635 'debug/trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31636 'time_win_unittest.cc',
[email protected]3381f172011-05-25 00:20:42637 'win/win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31638 ],
639 }],
[email protected]06ff3c52012-03-01 01:58:05640 ['OS=="mac"', {
641 'dependencies': [
642 'closure_blocks_leopard_compat',
643 ],
644 }],
[email protected]4bfc2dc2012-07-11 15:09:10645 ], # conditions
646 'target_conditions': [
647 ['OS == "ios"', {
648 'sources/': [
649 # Pull in specific Mac files for iOS (which have been filtered out
650 # by file name rules).
[email protected]feb727e2012-07-13 11:02:57651 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
652 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
[email protected]4bfc2dc2012-07-11 15:09:10653 ],
654 }],
655 ], # target_conditions
[email protected]2f80c312009-02-25 21:26:55656 },
[email protected]e8ef09a2009-03-16 23:46:45657 {
658 'target_name': 'test_support_base',
[email protected]5a547332011-05-19 23:18:53659 'type': 'static_library',
[email protected]e8ef09a2009-03-16 23:46:45660 'dependencies': [
661 'base',
[email protected]23bb71f2011-04-21 22:22:10662 'base_static',
[email protected]afa8020c2010-08-16 04:42:26663 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41664 '../testing/gmock.gyp:gmock',
665 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06666 ],
[email protected]23bb71f2011-04-21 22:22:10667 'export_dependent_settings': [
668 'base',
669 ],
[email protected]afa8020c2010-08-16 04:42:26670 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34671 ['toolkit_uses_gtk==1', {
[email protected]afa8020c2010-08-16 04:42:26672 'dependencies': [
673 # test_suite initializes GTK.
674 '../build/linux/system.gyp:gtk',
675 ],
676 }],
[email protected]3ae445e82011-06-20 17:44:05677 ['os_posix==0', {
678 'sources!': [
679 'test/scoped_locale.cc',
680 'test/scoped_locale.h',
681 ],
682 }],
[email protected]c48aef92011-11-22 23:41:45683 ['os_bsd==1', {
[email protected]167ec822011-10-24 22:05:27684 'sources!': [
685 'test/test_file_util_linux.cc',
686 ],
687 }],
[email protected]afa8020c2010-08-16 04:42:26688 ],
[email protected]7d1ba9392009-08-03 18:35:06689 'sources': [
[email protected]bc052ef52010-10-10 02:42:32690 'perftimer.cc',
[email protected]73b32422012-07-13 09:21:34691 'test/main_hook.cc',
692 'test/main_hook.h',
693 'test/main_hook_ios.mm',
[email protected]a3668802010-12-18 01:18:29694 'test/mock_chrome_application_mac.h',
695 'test/mock_chrome_application_mac.mm',
[email protected]df6c4192012-03-02 23:13:40696 'test/mock_devices_changed_observer.cc',
697 'test/mock_devices_changed_observer.h',
[email protected]c4996f762011-06-28 14:29:06698 'test/mock_time_provider.cc',
699 'test/mock_time_provider.h',
[email protected]20e14912010-08-17 19:40:11700 'test/multiprocess_test.cc',
701 'test/multiprocess_test.h',
[email protected]04de3802012-05-29 19:36:32702 'test/multiprocess_test_android.cc',
[email protected]99cc51e2010-10-10 00:21:35703 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11704 'test/perf_test_suite.h',
[email protected]3ae445e82011-06-20 17:44:05705 'test/scoped_locale.cc',
706 'test/scoped_locale.h',
[email protected]ce5d0472012-04-02 10:16:55707 'test/sequenced_task_runner_test_template.cc',
708 'test/sequenced_task_runner_test_template.h',
[email protected]c8cae7c2012-03-09 06:20:18709 'test/task_runner_test_template.cc',
710 'test/task_runner_test_template.h',
[email protected]fb895c62009-10-09 18:20:30711 'test/test_file_util.h',
712 'test/test_file_util_linux.cc',
713 'test/test_file_util_mac.cc',
714 'test/test_file_util_posix.cc',
715 'test/test_file_util_win.cc',
[email protected]73b32422012-07-13 09:21:34716 'test/test_listener_ios.h',
717 'test/test_listener_ios.mm',
[email protected]a8f85882011-08-24 20:02:42718 'test/test_reg_util_win.cc',
719 'test/test_reg_util_win.h',
[email protected]6fa18d12010-08-16 04:18:41720 'test/test_suite.cc',
721 'test/test_suite.h',
[email protected]7ed054db2012-06-01 17:20:04722 'test/test_support_android.cc',
723 'test/test_support_android.h',
[email protected]cbb9f50f2010-10-05 19:03:05724 'test/test_switches.cc',
725 'test/test_switches.h',
726 'test/test_timeouts.cc',
727 'test/test_timeouts.h',
[email protected]8aaae7b2011-06-28 06:43:20728 'test/thread_test_helper.cc',
729 'test/thread_test_helper.h',
[email protected]7a79dafb2011-10-29 03:16:52730 'test/trace_event_analyzer.cc',
731 'test/trace_event_analyzer.h',
[email protected]6085ccd2012-02-29 03:57:29732 'test/values_test_util.cc',
733 'test/values_test_util.h',
[email protected]7d1ba9392009-08-03 18:35:06734 ],
[email protected]7d1ba9392009-08-03 18:35:06735 },
736 {
[email protected]01971642012-03-07 14:39:56737 'target_name': 'base_unittests_run',
738 'type': 'none',
739 'dependencies': [
740 'base_unittests',
741 ],
[email protected]256f4bd2012-04-12 01:59:29742 'includes': [
743 'base_unittests.isolate',
744 ],
[email protected]01971642012-03-07 14:39:56745 'actions': [
746 {
[email protected]0a88a652012-03-09 00:34:45747 'action_name': 'isolate',
748 'inputs': [
[email protected]256f4bd2012-04-12 01:59:29749 'base_unittests.isolate',
750 '<@(isolate_dependency_tracked)',
[email protected]0a88a652012-03-09 00:34:45751 ],
752 'outputs': [
[email protected]01971642012-03-07 14:39:56753 '<(PRODUCT_DIR)/base_unittests.results',
754 ],
755 'action': [
756 'python',
[email protected]256f4bd2012-04-12 01:59:29757 '../tools/isolate/isolate.py',
[email protected]7270a3e2012-06-23 01:14:55758 '<(test_isolation_mode)',
[email protected]0ef3a522012-05-15 14:56:33759 '--outdir', '<(test_isolation_outdir)',
[email protected]5b7903542012-04-23 03:05:36760 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
761 '--variable', 'OS', '<(OS)',
[email protected]01971642012-03-07 14:39:56762 '--result', '<@(_outputs)',
[email protected]7270a3e2012-06-23 01:14:55763 '--isolate', 'base_unittests.isolate',
[email protected]01971642012-03-07 14:39:56764 ],
765 },
766 ],
767 },
768 {
[email protected]7d1ba9392009-08-03 18:35:06769 'target_name': 'test_support_perf',
[email protected]5a547332011-05-19 23:18:53770 'type': 'static_library',
[email protected]7d1ba9392009-08-03 18:35:06771 'dependencies': [
772 'base',
[email protected]e8ef09a2009-03-16 23:46:45773 '../testing/gtest.gyp:gtest',
774 ],
775 'sources': [
776 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30777 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45778 ],
779 'direct_dependent_settings': {
780 'defines': [
781 'PERF_TEST',
782 ],
783 },
[email protected]9d384032009-03-20 23:13:26784 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34785 ['toolkit_uses_gtk==1', {
[email protected]9d384032009-03-20 23:13:26786 'dependencies': [
787 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30788 # base/test/perf_test_suite.h
789 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26790 # gtk/gtk.h
791 '../build/linux/system.gyp:gtk',
792 ],
793 }],
794 ],
[email protected]e8ef09a2009-03-16 23:46:45795 },
[email protected]2f80c312009-02-25 21:26:55796 ],
797 'conditions': [
[email protected]23396202012-07-16 10:12:33798 ['OS!="ios"', {
799 'targets': [
800 {
801 'target_name': 'check_example',
802 'type': 'executable',
803 'sources': [
804 'check_example.cc',
805 ],
806 'dependencies': [
807 'base',
808 ],
809 },
810 ],
811 }],
[email protected]9ac2db692012-06-08 01:01:57812 ['OS == "win"', {
[email protected]83c1c3c2012-06-07 18:43:44813 'targets': [
814 {
815 'target_name': 'base_nacl_win64',
816 'type': '<(component)',
817 'variables': {
818 'base_target': 1,
819 },
820 'dependencies': [
821 'base_static_win64',
822 'allocator/allocator.gyp:allocator_extension_thunks_win64',
823 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
824 ],
825 # TODO(gregoryd): direct_dependent_settings should be shared with the
826 # 32-bit target, but it doesn't work due to a bug in gyp
827 'direct_dependent_settings': {
828 'include_dirs': [
829 '..',
830 ],
831 },
832 'defines': [
833 '<@(nacl_win64_defines)',
834 ],
835 'configurations': {
836 'Common_Base': {
837 'msvs_target_platform': 'x64',
838 },
839 },
840 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57841 ['component == "shared_library"', {
[email protected]83c1c3c2012-06-07 18:43:44842 'sources!': [
843 'debug/debug_on_start_win.cc',
844 ],
845 }],
846 ],
847 },
848 {
849 'target_name': 'base_i18n_nacl_win64',
850 'type': '<(component)',
851 # TODO(gregoryd): direct_dependent_settings should be shared with the
852 # 32-bit target, but it doesn't work due to a bug in gyp
853 'direct_dependent_settings': {
854 'include_dirs': [
855 '..',
856 ],
857 },
858 'defines': [
859 '<@(nacl_win64_defines)',
860 'BASE_I18N_IMPLEMENTATION',
861 ],
862 'include_dirs': [
863 '..',
864 ],
865 'sources': [
866 'i18n/icu_util_nacl_win64.cc',
867 ],
868 'configurations': {
869 'Common_Base': {
870 'msvs_target_platform': 'x64',
871 },
872 },
873 },
874 ],
875 }],
[email protected]4bfc2dc2012-07-11 15:09:10876 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]83c1c3c2012-06-07 18:43:44877 'targets': [
878 {
879 'target_name': 'symbolize',
880 'type': 'static_library',
881 'toolsets': ['host', 'target'],
882 'variables': {
883 'chromium_code': 0,
884 },
885 'conditions': [
[email protected]9ac2db692012-06-08 01:01:57886 ['OS == "solaris"', {
[email protected]83c1c3c2012-06-07 18:43:44887 'include_dirs': [
888 '/usr/gnu/include',
889 '/usr/gnu/include/libelf',
890 ],
891 },],
892 ],
893 'cflags': [
894 '-Wno-sign-compare',
895 ],
896 'cflags!': [
897 '-Wextra',
898 ],
899 'sources': [
900 'third_party/symbolize/config.h',
901 'third_party/symbolize/demangle.cc',
902 'third_party/symbolize/demangle.h',
903 'third_party/symbolize/glog/logging.h',
904 'third_party/symbolize/glog/raw_logging.h',
905 'third_party/symbolize/symbolize.cc',
906 'third_party/symbolize/symbolize.h',
907 'third_party/symbolize/utilities.h',
908 ],
909 'include_dirs': [
910 '..',
911 ],
912 },
913 {
914 'target_name': 'xdg_mime',
915 'type': 'static_library',
916 'toolsets': ['host', 'target'],
917 'variables': {
918 'chromium_code': 0,
919 },
920 'cflags!': [
921 '-Wextra',
922 ],
923 'sources': [
924 'third_party/xdg_mime/xdgmime.c',
925 'third_party/xdg_mime/xdgmime.h',
926 'third_party/xdg_mime/xdgmimealias.c',
927 'third_party/xdg_mime/xdgmimealias.h',
928 'third_party/xdg_mime/xdgmimecache.c',
929 'third_party/xdg_mime/xdgmimecache.h',
930 'third_party/xdg_mime/xdgmimeglob.c',
931 'third_party/xdg_mime/xdgmimeglob.h',
932 'third_party/xdg_mime/xdgmimeicon.c',
933 'third_party/xdg_mime/xdgmimeicon.h',
934 'third_party/xdg_mime/xdgmimeint.c',
935 'third_party/xdg_mime/xdgmimeint.h',
936 'third_party/xdg_mime/xdgmimemagic.c',
937 'third_party/xdg_mime/xdgmimemagic.h',
938 'third_party/xdg_mime/xdgmimeparent.c',
939 'third_party/xdg_mime/xdgmimeparent.h',
940 ],
941 },
942 ],
943 }],
[email protected]65208a02012-04-17 04:39:52944 ['OS == "android"', {
945 'targets': [
946 {
947 'target_name': 'base_jni_headers',
948 'type': 'none',
949 'variables': {
950 'java_sources': [
[email protected]dccbbb12012-06-26 21:05:56951 'android/java/src/org/chromium/base/BuildInfo.java',
952 'android/java/src/org/chromium/base/LocaleUtils.java',
953 'android/java/src/org/chromium/base/PathUtils.java',
954 'android/java/src/org/chromium/base/SystemMessageHandler.java',
[email protected]65208a02012-04-17 04:39:52955 ],
956 'jni_headers': [
957 '<(SHARED_INTERMEDIATE_DIR)/base/jni/build_info_jni.h',
[email protected]c205e0c2012-05-05 03:11:38958 '<(SHARED_INTERMEDIATE_DIR)/base/jni/locale_utils_jni.h',
[email protected]65208a02012-04-17 04:39:52959 '<(SHARED_INTERMEDIATE_DIR)/base/jni/path_utils_jni.h',
960 '<(SHARED_INTERMEDIATE_DIR)/base/jni/system_message_handler_jni.h',
961 ],
962 },
963 'includes': [ '../build/jni_generator.gypi' ],
964 },
965 {
966 'target_name': 'base_java',
967 'type': 'none',
968 'variables': {
969 'package_name': 'base',
970 'java_in_dir': 'android/java',
971 },
972 'includes': [ '../build/java.gypi' ],
973 },
974 ],
975 }],
[email protected]06ff3c52012-03-01 01:58:05976 ['OS == "win"', {
[email protected]2f80c312009-02-25 21:26:55977 'targets': [
978 {
979 'target_name': 'debug_message',
980 'type': 'executable',
981 'sources': [
982 'debug_message.cc',
983 ],
[email protected]3f8bfc362009-05-22 02:39:14984 'msvs_settings': {
985 'VCLinkerTool': {
986 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
987 },
988 },
[email protected]2f80c312009-02-25 21:26:55989 },
990 ],
991 }],
[email protected]06ff3c52012-03-01 01:58:05992 ['OS=="mac"', {
[email protected]9ac2db692012-06-08 01:01:57993 'targets': [
994 {
995 'target_name': 'closure_blocks_leopard_compat',
996 'sources': [
997 'mac/closure_blocks_leopard_compat.h',
998 ],
999 'conditions': [
1000 ['mac_sdk == "10.5"', {
1001 'type': 'shared_library',
1002 'product_name': 'closure_blocks_leopard_compat_stub',
1003 'variables': {
1004 # This target controls stripping directly. See below.
1005 'mac_strip': 0,
1006 },
1007 'sources': [
1008 'mac/closure_blocks_leopard_compat.S',
1009 ],
1010 'xcode_settings': {
1011 # These values are taken from libSystem.dylib in the 10.5
1012 # SDK. Setting LD_DYLIB_INSTALL_NAME causes anything linked
1013 # against this stub library to look for the symbols it
1014 # provides in the real libSystem at runtime. When using ld
1015 # from Xcode 4 or later (ld64-123.2 and up), giving two
1016 # libraries with the same "install name" to the linker will
1017 # cause it to print "ld: warning: dylibs with same install
1018 # name". This is harmless, and ld will behave as intended
1019 # here.
1020 #
1021 # The real library's compatibility version is used, and the
1022 # value of the current version from the SDK is used to make
1023 # it appear as though anything linked against this stub was
1024 # linked against the real thing.
1025 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib',
1026 'DYLIB_COMPATIBILITY_VERSION': '1.0.0',
1027 'DYLIB_CURRENT_VERSION': '111.1.4',
[email protected]06ff3c52012-03-01 01:58:051028
1029 # Turn on stripping (yes, even in debug mode), and add the -c
1030 # flag. This is what produces a stub library (MH_DYLIB_STUB)
1031 # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files
1032 # contain symbol tables and everything else needed for
1033 # linking, but are stripped of section contents. This is the
1034 # same way that the stub libraries in Mac OS X SDKs are
1035 # created. dyld will refuse to load a stub library, so this
1036 # provides some insurance in case anyone tries to load the
1037 # stub at runtime.
1038 'DEPLOYMENT_POSTPROCESSING': 'YES',
1039 'STRIP_STYLE': 'non-global',
1040 'STRIPFLAGS': '-c',
1041 },
1042 }, { # else: mac_sdk != "10.5"
1043 # When using the 10.6 SDK or newer, the necessary definitions
1044 # are already present in libSystem.dylib. There is no need to
1045 # build a stub dylib to provide these symbols at link time.
1046 # This target is still useful to cause those symbols to be
1047 # treated as weak imports in dependents, who still must
1048 # #include closure_blocks_leopard_compat.h to get weak imports.
1049 'type': 'none',
1050 }],
1051 ],
1052 },
1053 ],
1054 }],
[email protected]a44d1212012-05-25 20:17:491055 # Special target to wrap a gtest_target_type == shared_library
[email protected]d9f96952012-04-19 21:02:091056 # base_unittests into an android apk for execution.
1057 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
1058 # in the gyp make generator. What is the correct way to extract
1059 # this path from gyp and into 'raw' for input to antfiles?
1060 # Hard-coding in the gypfile seems a poor choice.
[email protected]a44d1212012-05-25 20:17:491061 ['OS == "android" and gtest_target_type == "shared_library"', {
[email protected]d9f96952012-04-19 21:02:091062 'targets': [
1063 {
1064 'target_name': 'base_unittests_apk',
1065 'type': 'none',
1066 'dependencies': [
[email protected]a44d1212012-05-25 20:17:491067 'base_java',
[email protected]d9f96952012-04-19 21:02:091068 'base_unittests',
1069 ],
[email protected]a44d1212012-05-25 20:17:491070 'variables': {
1071 'test_suite_name': 'base_unittests',
[email protected]ef7ed7a2012-05-29 23:19:131072 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
[email protected]a44d1212012-05-25 20:17:491073 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',],
1074 },
1075 'includes': [ '../build/apk_test.gypi' ],
[email protected]9ac2db692012-06-08 01:01:571076 },
1077 ],
[email protected]d9f96952012-04-19 21:02:091078 }],
[email protected]2f80c312009-02-25 21:26:551079 ],
1080}