blob: b1e61e2c82493772543339b6525aecf99c059b25 [file] [log] [blame]
[email protected]76b90d312010-08-03 03:00:501# Copyright (c) 2010 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': [
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': [
[email protected]55954d892010-12-15 18:00:5434 'i18n/break_iterator.cc',
35 'i18n/break_iterator.h',
[email protected]0ca5c102010-08-23 14:30:2736 'i18n/char_iterator.cc',
37 'i18n/char_iterator.h',
[email protected]d34d79f2009-10-14 22:06:1438 'i18n/file_util_icu.cc',
39 'i18n/file_util_icu.h',
[email protected]193c3512010-05-11 09:19:3040 'i18n/icu_encoding_detection.cc',
41 'i18n/icu_encoding_detection.h',
[email protected]d34d79f2009-10-14 22:06:1442 'i18n/icu_string_conversions.cc',
43 'i18n/icu_string_conversions.h',
44 'i18n/icu_util.cc',
45 'i18n/icu_util.h',
46 'i18n/number_formatting.cc',
47 'i18n/number_formatting.h',
[email protected]7cf1b6ce2010-03-20 06:37:0148 'i18n/rtl.cc',
49 'i18n/rtl.h',
[email protected]d34d79f2009-10-14 22:06:1450 'i18n/time_formatting.cc',
51 'i18n/time_formatting.h',
[email protected]d34d79f2009-10-14 22:06:1452 ],
[email protected]2f80c312009-02-25 21:26:5553 },
54 {
55 'target_name': 'base_unittests',
56 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:1657 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:5558 'sources': [
[email protected]c7f475ed2009-09-08 17:25:4059 # Infrastructure files.
[email protected]fb895c62009-10-09 18:20:3060 'test/run_all_unittests.cc',
[email protected]c7f475ed2009-09-08 17:25:4061
62 # Tests.
[email protected]2f80c312009-02-25 21:26:5563 'at_exit_unittest.cc',
64 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:5365 'base64_unittest.cc',
[email protected]6d1729e2009-11-18 23:08:3966 'bits_unittest.cc',
[email protected]2041cf342010-02-19 03:15:5967 'callback_unittest.cc',
[email protected]baeb22f52009-12-03 21:11:3468 'cancellation_flag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5569 'command_line_unittest.cc',
70 'condition_variable_unittest.cc',
[email protected]39422e32010-03-25 19:13:0071 'crypto/encryptor_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:0672 'crypto/rsa_private_key_unittest.cc',
[email protected]74648052010-08-10 19:37:5173 'crypto/rsa_private_key_nss_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:0674 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:5675 'crypto/signature_verifier_unittest.cc',
[email protected]39422e32010-03-25 19:13:0076 'crypto/symmetric_key_unittest.cc',
[email protected]58580352010-10-26 04:07:5077 'debug/leak_tracker_unittest.cc',
78 'debug/stack_trace_unittest.cc',
79 'debug/trace_event_win_unittest.cc',
[email protected]ef73044e2010-03-11 15:25:5480 'dir_reader_posix_unittest.cc',
[email protected]76b90d312010-08-03 03:00:5081 'environment_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:0382 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5583 'file_path_unittest.cc',
84 'file_util_unittest.cc',
85 'file_version_info_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:5986 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5587 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:3888 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:5489 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:2790 'i18n/char_iterator_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:3091 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:5092 'i18n/icu_string_conversions_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:0193 'i18n/rtl_unittest.cc',
[email protected]93d49d72009-10-23 20:00:2094 'json/json_reader_unittest.cc',
95 'json/json_writer_unittest.cc',
96 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5597 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:5498 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5599 'linked_ptr_unittest.cc',
[email protected]5dd879a2010-07-30 05:50:42100 'lock_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36101 'logging_unittest.cc',
[email protected]8b386ced2009-10-27 15:55:52102 'mac_util_unittest.mm',
[email protected]656475d2010-05-06 18:34:24103 'message_loop_proxy_impl_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55104 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44105 'message_pump_glib_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38106 'metrics/field_trial_unittest.cc',
107 'metrics/histogram_unittest.cc',
108 'metrics/stats_table_unittest.cc',
[email protected]d9ddc962010-08-24 04:29:56109 'non_thread_safe_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55110 'object_watcher_unittest.cc',
111 'observer_list_unittest.cc',
112 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55113 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14114 'platform_file_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55115 'pr_time_unittest.cc',
116 'process_util_unittest.cc',
[email protected]9f958442010-03-19 18:42:41117 'process_util_unittest_mac.h',
118 'process_util_unittest_mac.mm',
[email protected]2f80c312009-02-25 21:26:55119 'rand_util_unittest.cc',
120 'ref_counted_unittest.cc',
[email protected]da2566e12010-03-10 06:23:35121 'scoped_native_library_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55122 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31123 'scoped_temp_dir_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58124 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55125 'sha2_unittest.cc',
126 'shared_memory_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55127 'singleton_unittest.cc',
128 'stack_container_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47129 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44130 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55131 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25132 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55133 'string_tokenizer_unittest.cc',
134 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12135 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37136 'stringprintf_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55137 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54138 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55139 'sys_string_conversions_unittest.cc',
[email protected]6fd0ca52010-08-26 06:09:38140 'task_queue_unittest.cc',
[email protected]0384f842010-12-16 19:55:09141 'task_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16142 'threading/platform_thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36143 'threading/simple_thread_unittest.cc',
[email protected]ce072a72010-12-31 20:02:16144 'threading/thread_checker_unittest.cc',
[email protected]34b99632011-01-01 01:01:06145 'threading/thread_collision_warner_unittest.cc',
[email protected]1357c322010-12-30 22:18:56146 'threading/thread_local_storage_unittest.cc',
147 'threading/thread_local_unittest.cc',
[email protected]34b99632011-01-01 01:01:06148 'threading/thread_unittest.cc',
[email protected]ac9ba8fe2010-12-30 18:08:36149 'threading/watchdog_unittest.cc',
150 'threading/worker_pool_posix_unittest.cc',
151 'threading/worker_pool_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55152 'time_unittest.cc',
153 'time_win_unittest.cc',
154 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58155 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55156 'tracked_objects_unittest.cc',
157 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48158 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53159 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55160 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31161 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36162 'vlog_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55163 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31164 'waitable_event_watcher_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17165 'weak_ptr_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40166 'win/event_trace_consumer_unittest.cc',
167 'win/event_trace_controller_unittest.cc',
168 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45169 'win/i18n_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54170 'win/pe_image_unittest.cc',
171 'win/registry_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05172 'win/scoped_bstr_unittest.cc',
173 'win/scoped_comptr_unittest.cc',
174 'win/scoped_variant_unittest.cc',
[email protected]a8e20582010-12-31 17:18:50175 'win/win_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55176 ],
[email protected]2f80c312009-02-25 21:26:55177 'dependencies': [
178 'base',
[email protected]d34d79f2009-10-14 22:06:14179 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41180 'test_support_base',
[email protected]ce3157102009-05-28 07:23:16181 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55182 '../testing/gtest.gyp:gtest',
183 ],
184 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37185 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]8b03e8d2009-03-02 06:53:31186 'sources!': [
187 'file_version_info_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31188 ],
[email protected]11991c32010-04-15 20:40:17189 'sources': [
[email protected]6b0349ef2010-10-16 04:56:06190 'nix/xdg_util_unittest.cc',
[email protected]11991c32010-04-15 20:40:17191 ],
[email protected]63dc3782010-10-19 19:09:30192 'conditions': [
193 [ 'linux_use_tcmalloc==1', {
194 'dependencies': [
195 'allocator/allocator.gyp:allocator',
196 ],
197 },
198 ],
199 ],
[email protected]9d384032009-03-20 23:13:26200 'dependencies': [
201 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34202 '../build/linux/system.gyp:nss',
[email protected]a97488f2009-09-17 21:37:19203 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26204 ],
[email protected]b5c72b822010-02-18 16:11:37205 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]b44d5cc2009-06-15 10:30:44206 'sources!': [
207 'message_pump_glib_unittest.cc',
[email protected]74648052010-08-10 19:37:51208 'crypto/rsa_private_key_nss_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44209 ]
[email protected]8b03e8d2009-03-02 06:53:31210 }],
[email protected]2f80c312009-02-25 21:26:55211 # This is needed to trigger the dll copy step on windows.
212 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31213 ['OS == "win"', {
214 'dependencies': [
[email protected]280629492009-09-09 06:49:08215 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31216 ],
217 'sources!': [
[email protected]ef73044e2010-03-11 15:25:54218 'dir_reader_posix_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:03219 'file_descriptor_shuffle_unittest.cc',
[email protected]541c4db2010-12-30 18:29:28220 'threading/worker_pool_posix_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31221 ],
222 }, { # OS != "win"
[email protected]ce0e72462010-10-16 03:46:05223 'sources/': [
224 ['exclude', '^win/'],
225 ],
[email protected]8b03e8d2009-03-02 06:53:31226 'sources!': [
[email protected]8b03e8d2009-03-02 06:53:31227 'object_watcher_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31228 'system_monitor_unittest.cc',
229 'time_win_unittest.cc',
[email protected]3e569552010-05-07 20:25:49230 'trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31231 'win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31232 ],
233 }],
[email protected]70372d42010-10-22 13:12:34234 [ 'use_openssl==1', {
235 'sources!': [
236 'crypto/rsa_private_key_nss_unittest.cc',
237 ],
238 }],
[email protected]2f80c312009-02-25 21:26:55239 ],
240 },
[email protected]e8ef09a2009-03-16 23:46:45241 {
242 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49243 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45244 'dependencies': [
245 'base',
[email protected]afa8020c2010-08-16 04:42:26246 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41247 '../testing/gmock.gyp:gmock',
248 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06249 ],
[email protected]afa8020c2010-08-16 04:42:26250 'conditions': [
251 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
252 'dependencies': [
253 # test_suite initializes GTK.
254 '../build/linux/system.gyp:gtk',
255 ],
256 }],
257 ],
[email protected]7d1ba9392009-08-03 18:35:06258 'sources': [
[email protected]bc052ef52010-10-10 02:42:32259 'perftimer.cc',
[email protected]a3668802010-12-18 01:18:29260 'test/mock_chrome_application_mac.h',
261 'test/mock_chrome_application_mac.mm',
[email protected]20e14912010-08-17 19:40:11262 'test/multiprocess_test.cc',
263 'test/multiprocess_test.h',
[email protected]99cc51e2010-10-10 00:21:35264 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11265 'test/perf_test_suite.h',
[email protected]fb895c62009-10-09 18:20:30266 'test/test_file_util.h',
267 'test/test_file_util_linux.cc',
268 'test/test_file_util_mac.cc',
269 'test/test_file_util_posix.cc',
270 'test/test_file_util_win.cc',
[email protected]6fa18d12010-08-16 04:18:41271 'test/test_suite.cc',
272 'test/test_suite.h',
[email protected]cbb9f50f2010-10-05 19:03:05273 'test/test_switches.cc',
274 'test/test_switches.h',
275 'test/test_timeouts.cc',
276 'test/test_timeouts.h',
[email protected]7d1ba9392009-08-03 18:35:06277 ],
[email protected]7d1ba9392009-08-03 18:35:06278 },
279 {
280 'target_name': 'test_support_perf',
281 'type': '<(library)',
282 'dependencies': [
283 'base',
[email protected]e8ef09a2009-03-16 23:46:45284 '../testing/gtest.gyp:gtest',
285 ],
286 'sources': [
287 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30288 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45289 ],
290 'direct_dependent_settings': {
291 'defines': [
292 'PERF_TEST',
293 ],
294 },
[email protected]9d384032009-03-20 23:13:26295 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37296 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]9d384032009-03-20 23:13:26297 'dependencies': [
298 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30299 # base/test/perf_test_suite.h
300 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26301 # gtk/gtk.h
302 '../build/linux/system.gyp:gtk',
303 ],
304 }],
305 ],
[email protected]e8ef09a2009-03-16 23:46:45306 },
[email protected]2f80c312009-02-25 21:26:55307 ],
308 'conditions': [
309 [ 'OS == "win"', {
310 'targets': [
311 {
312 'target_name': 'debug_message',
313 'type': 'executable',
314 'sources': [
315 'debug_message.cc',
316 ],
[email protected]3f8bfc362009-05-22 02:39:14317 'msvs_settings': {
318 'VCLinkerTool': {
319 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
320 },
321 },
[email protected]2f80c312009-02-25 21:26:55322 },
323 ],
324 }],
[email protected]2f80c312009-02-25 21:26:55325 ],
326}
[email protected]f5c990c2009-10-06 03:02:38327
328# Local Variables:
329# tab-width:2
330# indent-tabs-mode:nil
331# End:
332# vim: set expandtab tabstop=2 shiftwidth=2: