blob: 72255dec57b3e5da17a550d698d09ff3aeae0123 [file] [log] [blame]
[email protected]2f80c312009-02-25 21:26:551# Copyright (c) 2009 The Chromium Authors. All rights reserved.
2# 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': [
10 'base.gypi',
11 ],
[email protected]2f80c312009-02-25 21:26:5512 'targets': [
13 {
[email protected]d34d79f2009-10-14 22:06:1414 'target_name': 'base_i18n',
[email protected]653bd5f032009-04-08 12:55:4915 'type': '<(library)',
[email protected]d34d79f2009-10-14 22:06:1416 'msvs_guid': '968F3222-9798-4D21-BE08-15ECB5EF2994',
[email protected]2f80c312009-02-25 21:26:5517 'dependencies': [
18 'base',
[email protected]d34d79f2009-10-14 22:06:1419 '../third_party/icu/icu.gyp:icui18n',
20 '../third_party/icu/icu.gyp:icuuc',
[email protected]2f80c312009-02-25 21:26:5521 ],
[email protected]8f6f2022010-03-22 21:24:5722 'conditions': [
23 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
24 'dependencies': [
25 # i18n/rtl.cc uses gtk
26 '../build/linux/system.gyp:gtk',
27 ],
28 }],
29 ],
[email protected]2f80c312009-02-25 21:26:5530 'export_dependent_settings': [
31 'base',
32 ],
[email protected]d34d79f2009-10-14 22:06:1433 'sources': [
34 'i18n/file_util_icu.cc',
35 'i18n/file_util_icu.h',
36 'i18n/icu_string_conversions.cc',
37 'i18n/icu_string_conversions.h',
38 'i18n/icu_util.cc',
39 'i18n/icu_util.h',
40 'i18n/number_formatting.cc',
41 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:0142 'i18n/rtl.cc',
43 'i18n/rtl.h',
[email protected]d34d79f2009-10-14 22:06:1444 'i18n/time_formatting.cc',
45 'i18n/time_formatting.h',
46 'i18n/word_iterator.cc',
47 'i18n/word_iterator.h',
48 ],
[email protected]2f80c312009-02-25 21:26:5549 },
50 {
51 'target_name': 'base_unittests',
52 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:1653 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:5554 'sources': [
[email protected]c7f475ed2009-09-08 17:25:4055 # Infrastructure files.
56 'multiprocess_test.h',
[email protected]fb895c62009-10-09 18:20:3057 'test/run_all_unittests.cc',
58 'test/test_suite.h',
[email protected]c7f475ed2009-09-08 17:25:4059
60 # Tests.
[email protected]2f80c312009-02-25 21:26:5561 'at_exit_unittest.cc',
62 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:5363 'base64_unittest.cc',
[email protected]6d1729e2009-11-18 23:08:3964 'bits_unittest.cc',
[email protected]2041cf342010-02-19 03:15:5965 'callback_unittest.cc',
[email protected]baeb22f52009-12-03 21:11:3466 'cancellation_flag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5567 'command_line_unittest.cc',
68 'condition_variable_unittest.cc',
[email protected]39422e32010-03-25 19:13:0069 'crypto/encryptor_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:0670 'crypto/rsa_private_key_unittest.cc',
71 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:5672 'crypto/signature_verifier_unittest.cc',
[email protected]39422e32010-03-25 19:13:0073 'crypto/symmetric_key_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5574 'data_pack_unittest.cc',
[email protected]96fd0032009-04-24 00:13:0875 'debug_util_unittest.cc',
[email protected]ef73044e2010-03-11 15:25:5476 'dir_reader_posix_unittest.cc',
[email protected]2b07b8412009-11-25 15:26:3477 'event_trace_consumer_win_unittest.cc',
78 'event_trace_controller_win_unittest.cc',
79 'event_trace_provider_win_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5580 'field_trial_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:0381 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5582 'file_path_unittest.cc',
83 'file_util_unittest.cc',
84 'file_version_info_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:5985 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5586 'histogram_unittest.cc',
87 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:3888 'id_map_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:3089 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:5090 'i18n/icu_string_conversions_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:0191 'i18n/rtl_unittest.cc',
[email protected]fb895c62009-10-09 18:20:3092 'i18n/word_iterator_unittest.cc',
[email protected]93d49d72009-10-23 20:00:2093 'json/json_reader_unittest.cc',
94 'json/json_writer_unittest.cc',
95 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5596 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:5497 'leak_tracker_unittest.cc',
98 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5599 'linked_ptr_unittest.cc',
[email protected]8b386ced2009-10-27 15:55:52100 'mac_util_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55101 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44102 'message_pump_glib_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55103 'object_watcher_unittest.cc',
104 'observer_list_unittest.cc',
105 'path_service_unittest.cc',
106 'pe_image_unittest.cc',
107 'pickle_unittest.cc',
108 'pr_time_unittest.cc',
109 'process_util_unittest.cc',
[email protected]9f958442010-03-19 18:42:41110 'process_util_unittest_mac.h',
111 'process_util_unittest_mac.mm',
[email protected]2f80c312009-02-25 21:26:55112 'rand_util_unittest.cc',
113 'ref_counted_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55114 'scoped_bstr_win_unittest.cc',
115 'scoped_comptr_win_unittest.cc',
[email protected]da2566e12010-03-10 06:23:35116 'scoped_native_library_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55117 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31118 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28119 'scoped_variant_win_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58120 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55121 'sha2_unittest.cc',
122 'shared_memory_unittest.cc',
123 'simple_thread_unittest.cc',
124 'singleton_unittest.cc',
125 'stack_container_unittest.cc',
126 'stats_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55127 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25128 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55129 'string_tokenizer_unittest.cc',
130 'string_util_unittest.cc',
131 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54132 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55133 'sys_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55134 'thread_collision_warner_unittest.cc',
135 'thread_local_storage_unittest.cc',
136 'thread_local_unittest.cc',
137 'thread_unittest.cc',
138 'time_unittest.cc',
139 'time_win_unittest.cc',
140 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58141 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55142 'tracked_objects_unittest.cc',
143 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48144 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53145 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55146 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31147 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55148 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31149 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55150 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17151 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55152 'win_util_unittest.cc',
153 'wmi_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55154 'worker_pool_unittest.cc',
155 ],
156 'include_dirs': [
157 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
158 # #include for unicode/uchar.h. This should probably be cleaned up.
[email protected]280629492009-09-09 06:49:08159 '../third_party/icu/public/common',
[email protected]2f80c312009-02-25 21:26:55160 ],
161 'dependencies': [
162 'base',
[email protected]d34d79f2009-10-14 22:06:14163 'base_i18n',
[email protected]ce3157102009-05-28 07:23:16164 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55165 '../testing/gtest.gyp:gtest',
166 ],
167 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37168 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]8b03e8d2009-03-02 06:53:31169 'sources!': [
170 'file_version_info_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52171 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31172 ],
[email protected]3c4e30152009-11-25 00:17:53173 'conditions': [
174 [ 'linux_use_tcmalloc==1', {
175 'dependencies': [
[email protected]96a1e3a2009-11-26 14:50:13176 'allocator/allocator.gyp:allocator',
[email protected]3c4e30152009-11-25 00:17:53177 ],
178 },
179 ],
180 ],
[email protected]9d384032009-03-20 23:13:26181 'dependencies': [
182 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34183 '../build/linux/system.gyp:nss',
[email protected]a97488f2009-09-17 21:37:19184 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26185 ],
[email protected]b5c72b822010-02-18 16:11:37186 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]b44d5cc2009-06-15 10:30:44187 'sources!': [
188 'message_pump_glib_unittest.cc',
189 ]
[email protected]8b03e8d2009-03-02 06:53:31190 }],
[email protected]2f80c312009-02-25 21:26:55191 # This is needed to trigger the dll copy step on windows.
192 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31193 ['OS == "win"', {
194 'dependencies': [
[email protected]280629492009-09-09 06:49:08195 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31196 ],
197 'sources!': [
[email protected]ef73044e2010-03-11 15:25:54198 'dir_reader_posix_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03199 'file_descriptor_shuffle_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31200 ],
201 }, { # OS != "win"
202 'sources!': [
[email protected]2b07b8412009-11-25 15:26:34203 'event_trace_consumer_win_unittest.cc',
204 'event_trace_controller_win_unittest.cc',
205 'event_trace_provider_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31206 'object_watcher_unittest.cc',
207 'pe_image_unittest.cc',
208 'scoped_bstr_win_unittest.cc',
209 'scoped_comptr_win_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28210 'scoped_variant_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31211 'system_monitor_unittest.cc',
212 'time_win_unittest.cc',
213 'win_util_unittest.cc',
214 'wmi_util_unittest.cc',
215 ],
216 }],
[email protected]2f80c312009-02-25 21:26:55217 ],
218 },
[email protected]e8ef09a2009-03-16 23:46:45219 {
220 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49221 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45222 'dependencies': [
223 'base',
[email protected]7d1ba9392009-08-03 18:35:06224 ],
225 'sources': [
[email protected]fb895c62009-10-09 18:20:30226 'test/test_file_util.h',
227 'test/test_file_util_linux.cc',
228 'test/test_file_util_mac.cc',
229 'test/test_file_util_posix.cc',
230 'test/test_file_util_win.cc',
[email protected]7d1ba9392009-08-03 18:35:06231 ],
[email protected]7d1ba9392009-08-03 18:35:06232 },
233 {
234 'target_name': 'test_support_perf',
235 'type': '<(library)',
236 'dependencies': [
237 'base',
[email protected]e8ef09a2009-03-16 23:46:45238 '../testing/gtest.gyp:gtest',
239 ],
240 'sources': [
241 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30242 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45243 ],
244 'direct_dependent_settings': {
245 'defines': [
246 'PERF_TEST',
247 ],
248 },
[email protected]9d384032009-03-20 23:13:26249 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37250 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]9d384032009-03-20 23:13:26251 'dependencies': [
252 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30253 # base/test/perf_test_suite.h
254 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26255 # gtk/gtk.h
256 '../build/linux/system.gyp:gtk',
257 ],
258 }],
259 ],
[email protected]e8ef09a2009-03-16 23:46:45260 },
[email protected]2f80c312009-02-25 21:26:55261 ],
262 'conditions': [
263 [ 'OS == "win"', {
264 'targets': [
265 {
266 'target_name': 'debug_message',
267 'type': 'executable',
268 'sources': [
269 'debug_message.cc',
270 ],
[email protected]3f8bfc362009-05-22 02:39:14271 'msvs_settings': {
272 'VCLinkerTool': {
273 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
274 },
275 },
[email protected]2f80c312009-02-25 21:26:55276 },
277 ],
278 }],
[email protected]b5c72b822010-02-18 16:11:37279 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]24a0e29c2009-07-29 23:02:55280 'targets': [
281 {
282 'target_name': 'linux_versioninfo',
283 'type': '<(library)',
284 'sources': [
285 'file_version_info_linux.cc',
286 ],
287 'include_dirs': [
288 '..',
289 '<(SHARED_INTERMEDIATE_DIR)',
290 ],
291 'actions': [
292 {
293 'action_name': 'linux_version',
294 'variables': {
295 'lastchange_path':
296 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
297 'version_py_path': '../chrome/tools/build/version.py',
298 'version_path': '../chrome/VERSION',
299 'template_input_path': 'file_version_info_linux.h.version',
300 },
301 'conditions': [
302 [ 'branding == "Chrome"', {
303 'variables': {
304 'branding_path':
305 '../chrome/app/theme/google_chrome/BRANDING',
306 },
307 }, { # else branding!="Chrome"
308 'variables': {
309 'branding_path':
310 '../chrome/app/theme/chromium/BRANDING',
311 },
312 }],
313 ],
314 'inputs': [
315 '<(template_input_path)',
316 '<(version_path)',
317 '<(branding_path)',
[email protected]19f60a52010-02-17 16:49:27318 '<(lastchange_path)',
[email protected]24a0e29c2009-07-29 23:02:55319 ],
320 'outputs': [
321 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
322 ],
323 'action': [
324 'python',
325 '<(version_py_path)',
326 '-f', '<(version_path)',
327 '-f', '<(branding_path)',
328 '-f', '<(lastchange_path)',
329 '<(template_input_path)',
330 '<@(_outputs)',
331 ],
332 'message': 'Generating version information',
333 },
334 ],
335 },
336 ],
337 }],
[email protected]2f80c312009-02-25 21:26:55338 ],
339}
[email protected]f5c990c2009-10-06 03:02:38340
341# Local Variables:
342# tab-width:2
343# indent-tabs-mode:nil
344# End:
345# vim: set expandtab tabstop=2 shiftwidth=2: