blob: 70cf46540791f1d63f840f4112642ce5a0572930 [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]2f80c312009-02-25 21:26:5577 'data_pack_unittest.cc',
[email protected]58580352010-10-26 04:07:5078 'debug/leak_tracker_unittest.cc',
79 'debug/stack_trace_unittest.cc',
80 'debug/trace_event_win_unittest.cc',
[email protected]ef73044e2010-03-11 15:25:5481 'dir_reader_posix_unittest.cc',
[email protected]76b90d312010-08-03 03:00:5082 'environment_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:0383 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5584 'file_path_unittest.cc',
85 'file_util_unittest.cc',
86 'file_version_info_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:5987 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5588 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:3889 'id_map_unittest.cc',
[email protected]55954d892010-12-15 18:00:5490 'i18n/break_iterator_unittest.cc',
[email protected]0ca5c102010-08-23 14:30:2791 'i18n/char_iterator_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:3092 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:5093 'i18n/icu_string_conversions_unittest.cc',
[email protected]7cf1b6ce2010-03-20 06:37:0194 'i18n/rtl_unittest.cc',
[email protected]93d49d72009-10-23 20:00:2095 'json/json_reader_unittest.cc',
96 'json/json_writer_unittest.cc',
97 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5598 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:5499 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55100 'linked_ptr_unittest.cc',
[email protected]5dd879a2010-07-30 05:50:42101 'lock_unittest.cc',
[email protected]521b0c42010-10-01 23:02:36102 'logging_unittest.cc',
[email protected]8b386ced2009-10-27 15:55:52103 'mac_util_unittest.mm',
[email protected]656475d2010-05-06 18:34:24104 'message_loop_proxy_impl_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55105 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:44106 'message_pump_glib_unittest.cc',
[email protected]835d7c82010-10-14 04:38:38107 'metrics/field_trial_unittest.cc',
108 'metrics/histogram_unittest.cc',
109 'metrics/stats_table_unittest.cc',
[email protected]d9ddc962010-08-24 04:29:56110 'non_thread_safe_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55111 'object_watcher_unittest.cc',
112 'observer_list_unittest.cc',
113 'path_service_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55114 'pickle_unittest.cc',
[email protected]3fb43ed12010-09-10 03:01:14115 'platform_file_unittest.cc',
[email protected]5dd879a2010-07-30 05:50:42116 'platform_thread_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55117 'pr_time_unittest.cc',
118 'process_util_unittest.cc',
[email protected]9f958442010-03-19 18:42:41119 'process_util_unittest_mac.h',
120 'process_util_unittest_mac.mm',
[email protected]2f80c312009-02-25 21:26:55121 'rand_util_unittest.cc',
122 'ref_counted_unittest.cc',
[email protected]da2566e12010-03-10 06:23:35123 'scoped_native_library_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55124 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31125 'scoped_temp_dir_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58126 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55127 'sha2_unittest.cc',
128 'shared_memory_unittest.cc',
129 'simple_thread_unittest.cc',
130 'singleton_unittest.cc',
131 'stack_container_unittest.cc',
[email protected]3c1304e22010-11-13 20:05:47132 'string16_unittest.cc',
[email protected]528c56d2010-07-30 19:28:44133 'string_number_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55134 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25135 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55136 'string_tokenizer_unittest.cc',
137 'string_util_unittest.cc',
[email protected]176ab802010-11-18 02:15:12138 'stringize_macros_unittest.cc',
[email protected]e6811ed52010-08-17 03:45:37139 'stringprintf_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55140 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54141 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55142 'sys_string_conversions_unittest.cc',
[email protected]6fd0ca52010-08-26 06:09:38143 'task_queue_unittest.cc',
[email protected]d9ddc962010-08-24 04:29:56144 'thread_checker_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55145 'thread_collision_warner_unittest.cc',
146 'thread_local_storage_unittest.cc',
147 'thread_local_unittest.cc',
148 'thread_unittest.cc',
149 'time_unittest.cc',
150 'time_win_unittest.cc',
151 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58152 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55153 'tracked_objects_unittest.cc',
154 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48155 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53156 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55157 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31158 'version_unittest.cc',
[email protected]99b7c57f2010-09-29 19:26:36159 'vlog_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55160 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31161 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55162 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17163 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55164 'win_util_unittest.cc',
[email protected]ba50d1922010-11-06 15:39:40165 'win/event_trace_consumer_unittest.cc',
166 'win/event_trace_controller_unittest.cc',
167 'win/event_trace_provider_unittest.cc',
[email protected]337ca072010-11-16 15:28:45168 'win/i18n_unittest.cc',
[email protected]2d6503982010-10-17 04:41:54169 'win/pe_image_unittest.cc',
170 'win/registry_unittest.cc',
[email protected]ce0e72462010-10-16 03:46:05171 'win/scoped_bstr_unittest.cc',
172 'win/scoped_comptr_unittest.cc',
173 'win/scoped_variant_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55174 'worker_pool_unittest.cc',
175 ],
[email protected]2f80c312009-02-25 21:26:55176 'dependencies': [
177 'base',
[email protected]d34d79f2009-10-14 22:06:14178 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41179 'test_support_base',
[email protected]ce3157102009-05-28 07:23:16180 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55181 '../testing/gtest.gyp:gtest',
182 ],
183 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37184 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]8b03e8d2009-03-02 06:53:31185 'sources!': [
186 'file_version_info_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52187 'worker_pool_linux_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]8b03e8d2009-03-02 06:53:31220 ],
221 }, { # OS != "win"
[email protected]ce0e72462010-10-16 03:46:05222 'sources/': [
223 ['exclude', '^win/'],
224 ],
[email protected]8b03e8d2009-03-02 06:53:31225 'sources!': [
[email protected]8b03e8d2009-03-02 06:53:31226 'object_watcher_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31227 'system_monitor_unittest.cc',
228 'time_win_unittest.cc',
[email protected]3e569552010-05-07 20:25:49229 'trace_event_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31230 'win_util_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31231 ],
232 }],
[email protected]70372d42010-10-22 13:12:34233 [ 'use_openssl==1', {
234 'sources!': [
235 'crypto/rsa_private_key_nss_unittest.cc',
236 ],
237 }],
[email protected]2f80c312009-02-25 21:26:55238 ],
239 },
[email protected]e8ef09a2009-03-16 23:46:45240 {
241 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49242 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45243 'dependencies': [
244 'base',
[email protected]afa8020c2010-08-16 04:42:26245 'base_i18n',
[email protected]6fa18d12010-08-16 04:18:41246 '../testing/gmock.gyp:gmock',
247 '../testing/gtest.gyp:gtest',
[email protected]7d1ba9392009-08-03 18:35:06248 ],
[email protected]afa8020c2010-08-16 04:42:26249 'conditions': [
250 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
251 'dependencies': [
252 # test_suite initializes GTK.
253 '../build/linux/system.gyp:gtk',
254 ],
255 }],
256 ],
[email protected]7d1ba9392009-08-03 18:35:06257 'sources': [
[email protected]bc052ef52010-10-10 02:42:32258 'perftimer.cc',
[email protected]20e14912010-08-17 19:40:11259 'test/multiprocess_test.cc',
260 'test/multiprocess_test.h',
[email protected]99cc51e2010-10-10 00:21:35261 'test/perf_test_suite.cc',
[email protected]20e14912010-08-17 19:40:11262 'test/perf_test_suite.h',
[email protected]fb895c62009-10-09 18:20:30263 'test/test_file_util.h',
264 'test/test_file_util_linux.cc',
265 'test/test_file_util_mac.cc',
266 'test/test_file_util_posix.cc',
267 'test/test_file_util_win.cc',
[email protected]6fa18d12010-08-16 04:18:41268 'test/test_suite.cc',
269 'test/test_suite.h',
[email protected]cbb9f50f2010-10-05 19:03:05270 'test/test_switches.cc',
271 'test/test_switches.h',
272 'test/test_timeouts.cc',
273 'test/test_timeouts.h',
[email protected]7d1ba9392009-08-03 18:35:06274 ],
[email protected]7d1ba9392009-08-03 18:35:06275 },
276 {
277 'target_name': 'test_support_perf',
278 'type': '<(library)',
279 'dependencies': [
280 'base',
[email protected]e8ef09a2009-03-16 23:46:45281 '../testing/gtest.gyp:gtest',
282 ],
283 'sources': [
284 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30285 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45286 ],
287 'direct_dependent_settings': {
288 'defines': [
289 'PERF_TEST',
290 ],
291 },
[email protected]9d384032009-03-20 23:13:26292 'conditions': [
[email protected]b5c72b822010-02-18 16:11:37293 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]9d384032009-03-20 23:13:26294 'dependencies': [
295 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30296 # base/test/perf_test_suite.h
297 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26298 # gtk/gtk.h
299 '../build/linux/system.gyp:gtk',
300 ],
301 }],
302 ],
[email protected]e8ef09a2009-03-16 23:46:45303 },
[email protected]2f80c312009-02-25 21:26:55304 ],
305 'conditions': [
306 [ 'OS == "win"', {
307 'targets': [
308 {
309 'target_name': 'debug_message',
310 'type': 'executable',
311 'sources': [
312 'debug_message.cc',
313 ],
[email protected]3f8bfc362009-05-22 02:39:14314 'msvs_settings': {
315 'VCLinkerTool': {
316 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
317 },
318 },
[email protected]2f80c312009-02-25 21:26:55319 },
320 ],
321 }],
[email protected]2f80c312009-02-25 21:26:55322 ],
323}
[email protected]f5c990c2009-10-06 03:02:38324
325# Local Variables:
326# tab-width:2
327# indent-tabs-mode:nil
328# End:
329# vim: set expandtab tabstop=2 shiftwidth=2: