blob: d59ebc14e6c58a285673202b01c9e0414b363105 [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 ],
22 'export_dependent_settings': [
23 'base',
24 ],
[email protected]d34d79f2009-10-14 22:06:1425 'sources': [
26 'i18n/file_util_icu.cc',
27 'i18n/file_util_icu.h',
28 'i18n/icu_string_conversions.cc',
29 'i18n/icu_string_conversions.h',
30 'i18n/icu_util.cc',
31 'i18n/icu_util.h',
32 'i18n/number_formatting.cc',
33 'i18n/number_formatting.h',
34 'i18n/time_formatting.cc',
35 'i18n/time_formatting.h',
36 'i18n/word_iterator.cc',
37 'i18n/word_iterator.h',
38 ],
[email protected]2f80c312009-02-25 21:26:5539 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:4640 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:2641 'dependencies': [
42 '../build/linux/system.gyp:gtk',
43 ],
44 }],
[email protected]2f80c312009-02-25 21:26:5545 ],
46 },
47 {
48 'target_name': 'base_unittests',
49 'type': 'executable',
[email protected]9e450f22009-03-10 23:12:1650 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
[email protected]2f80c312009-02-25 21:26:5551 'sources': [
[email protected]c7f475ed2009-09-08 17:25:4052 # Infrastructure files.
53 'multiprocess_test.h',
[email protected]fb895c62009-10-09 18:20:3054 'test/run_all_unittests.cc',
55 'test/test_suite.h',
[email protected]c7f475ed2009-09-08 17:25:4056
57 # Tests.
[email protected]2f80c312009-02-25 21:26:5558 'at_exit_unittest.cc',
59 'atomicops_unittest.cc',
[email protected]978df342009-11-24 06:21:5360 'base64_unittest.cc',
[email protected]6d1729e2009-11-18 23:08:3961 'bits_unittest.cc',
[email protected]baeb22f52009-12-03 21:11:3462 'cancellation_flag_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5563 'command_line_unittest.cc',
64 'condition_variable_unittest.cc',
[email protected]28ae8fe2009-06-05 18:25:0665 'crypto/rsa_private_key_unittest.cc',
66 'crypto/signature_creator_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:5667 'crypto/signature_verifier_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5568 'data_pack_unittest.cc',
[email protected]96fd0032009-04-24 00:13:0869 'debug_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5570 'directory_watcher_unittest.cc',
[email protected]2b07b8412009-11-25 15:26:3471 'event_trace_consumer_win_unittest.cc',
72 'event_trace_controller_win_unittest.cc',
73 'event_trace_provider_win_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5574 'field_trial_unittest.cc',
[email protected]3f04f2b2009-04-30 19:40:0375 'file_descriptor_shuffle_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5576 'file_path_unittest.cc',
77 'file_util_unittest.cc',
78 'file_version_info_unittest.cc',
[email protected]5290aaa2009-05-28 06:02:5679 'gfx/rect_unittest.cc',
[email protected]d5bb49f2009-05-30 14:39:5980 'gmock_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5581 'histogram_unittest.cc',
82 'hmac_unittest.cc',
[email protected]925d5d602009-08-19 14:56:3883 'id_map_unittest.cc',
[email protected]d0767cb542009-10-08 17:38:3084 'i18n/file_util_icu_unittest.cc',
[email protected]d6e58c6e2009-10-10 20:40:5085 'i18n/icu_string_conversions_unittest.cc',
[email protected]fb895c62009-10-09 18:20:3086 'i18n/word_iterator_unittest.cc',
[email protected]93d49d72009-10-23 20:00:2087 'json/json_reader_unittest.cc',
88 'json/json_writer_unittest.cc',
89 'json/string_escape_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5590 'lazy_instance_unittest.cc',
[email protected]48ca9012009-08-11 21:38:5491 'leak_tracker_unittest.cc',
92 'linked_list_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5593 'linked_ptr_unittest.cc',
[email protected]8b386ced2009-10-27 15:55:5294 'mac_util_unittest.mm',
[email protected]2f80c312009-02-25 21:26:5595 'message_loop_unittest.cc',
[email protected]b44d5cc2009-06-15 10:30:4496 'message_pump_glib_unittest.cc',
[email protected]2f80c312009-02-25 21:26:5597 'object_watcher_unittest.cc',
98 'observer_list_unittest.cc',
99 'path_service_unittest.cc',
100 'pe_image_unittest.cc',
101 'pickle_unittest.cc',
102 'pr_time_unittest.cc',
103 'process_util_unittest.cc',
104 'rand_util_unittest.cc',
105 'ref_counted_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55106 'scoped_bstr_win_unittest.cc',
107 'scoped_comptr_win_unittest.cc',
108 'scoped_ptr_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31109 'scoped_temp_dir_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28110 'scoped_variant_win_unittest.cc',
[email protected]c2ad1e32009-11-04 19:29:58111 'sha1_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55112 'sha2_unittest.cc',
113 'shared_memory_unittest.cc',
114 'simple_thread_unittest.cc',
115 'singleton_unittest.cc',
116 'stack_container_unittest.cc',
117 'stats_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55118 'string_piece_unittest.cc',
[email protected]0477554f2010-01-21 19:29:25119 'string_split_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55120 'string_tokenizer_unittest.cc',
121 'string_util_unittest.cc',
122 'sys_info_unittest.cc',
[email protected]a2494cb2009-11-08 19:04:54123 'sys_string_conversions_mac_unittest.mm',
[email protected]2f80c312009-02-25 21:26:55124 'sys_string_conversions_unittest.cc',
[email protected]5b6c1a802009-07-17 18:14:47125 'task_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55126 'thread_collision_warner_unittest.cc',
127 'thread_local_storage_unittest.cc',
128 'thread_local_unittest.cc',
129 'thread_unittest.cc',
130 'time_unittest.cc',
131 'time_win_unittest.cc',
132 'timer_unittest.cc',
[email protected]0716cba2009-12-17 12:37:58133 'tools_sanity_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55134 'tracked_objects_unittest.cc',
135 'tuple_unittest.cc',
[email protected]b9f93832009-11-13 19:27:48136 'utf_offset_string_conversions_unittest.cc',
[email protected]ce85f602009-11-07 01:34:53137 'utf_string_conversions_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55138 'values_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31139 'version_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55140 'waitable_event_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31141 'waitable_event_watcher_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55142 'watchdog_unittest.cc',
[email protected]3125d6462009-09-01 20:50:17143 'weak_ptr_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55144 'win_util_unittest.cc',
145 'wmi_util_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55146 'worker_pool_unittest.cc',
147 ],
148 'include_dirs': [
149 # word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
150 # #include for unicode/uchar.h. This should probably be cleaned up.
[email protected]280629492009-09-09 06:49:08151 '../third_party/icu/public/common',
[email protected]2f80c312009-02-25 21:26:55152 ],
153 'dependencies': [
154 'base',
[email protected]d34d79f2009-10-14 22:06:14155 'base_i18n',
[email protected]ce3157102009-05-28 07:23:16156 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55157 '../testing/gtest.gyp:gtest',
158 ],
159 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46160 ['OS == "linux" or OS == "freebsd"', {
[email protected]8b03e8d2009-03-02 06:53:31161 'sources!': [
162 'file_version_info_unittest.cc',
[email protected]2d4f7b42009-04-03 20:21:52163 'worker_pool_linux_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31164 ],
[email protected]3c4e30152009-11-25 00:17:53165 'conditions': [
166 [ 'linux_use_tcmalloc==1', {
167 'dependencies': [
[email protected]96a1e3a2009-11-26 14:50:13168 'allocator/allocator.gyp:allocator',
[email protected]3c4e30152009-11-25 00:17:53169 ],
170 },
171 ],
172 ],
[email protected]9d384032009-03-20 23:13:26173 'dependencies': [
174 '../build/linux/system.gyp:gtk',
[email protected]db7286d2009-04-10 16:36:34175 '../build/linux/system.gyp:nss',
[email protected]a97488f2009-09-17 21:37:19176 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]9d384032009-03-20 23:13:26177 ],
[email protected]fb66f9d2009-09-07 16:39:46178 }, { # OS != "linux" and OS != "freebsd"
[email protected]b44d5cc2009-06-15 10:30:44179 'sources!': [
180 'message_pump_glib_unittest.cc',
181 ]
[email protected]8b03e8d2009-03-02 06:53:31182 }],
[email protected]2f80c312009-02-25 21:26:55183 # This is needed to trigger the dll copy step on windows.
184 # TODO(mark): This should not be necessary.
[email protected]8b03e8d2009-03-02 06:53:31185 ['OS == "win"', {
186 'dependencies': [
[email protected]280629492009-09-09 06:49:08187 '../third_party/icu/icu.gyp:icudata',
[email protected]8b03e8d2009-03-02 06:53:31188 ],
189 'sources!': [
[email protected]3f04f2b2009-04-30 19:40:03190 'file_descriptor_shuffle_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31191 ],
192 }, { # OS != "win"
193 'sources!': [
[email protected]2b07b8412009-11-25 15:26:34194 'event_trace_consumer_win_unittest.cc',
195 'event_trace_controller_win_unittest.cc',
196 'event_trace_provider_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31197 'object_watcher_unittest.cc',
198 'pe_image_unittest.cc',
199 'scoped_bstr_win_unittest.cc',
200 'scoped_comptr_win_unittest.cc',
[email protected]e00d39192009-03-19 04:22:28201 'scoped_variant_win_unittest.cc',
[email protected]8b03e8d2009-03-02 06:53:31202 'system_monitor_unittest.cc',
203 'time_win_unittest.cc',
204 'win_util_unittest.cc',
205 'wmi_util_unittest.cc',
206 ],
207 }],
[email protected]2f80c312009-02-25 21:26:55208 ],
209 },
[email protected]e8ef09a2009-03-16 23:46:45210 {
211 'target_name': 'test_support_base',
[email protected]653bd5f032009-04-08 12:55:49212 'type': '<(library)',
[email protected]e8ef09a2009-03-16 23:46:45213 'dependencies': [
214 'base',
[email protected]7d1ba9392009-08-03 18:35:06215 ],
216 'sources': [
[email protected]fb895c62009-10-09 18:20:30217 'test/test_file_util.h',
218 'test/test_file_util_linux.cc',
219 'test/test_file_util_mac.cc',
220 'test/test_file_util_posix.cc',
221 'test/test_file_util_win.cc',
[email protected]7d1ba9392009-08-03 18:35:06222 ],
[email protected]7d1ba9392009-08-03 18:35:06223 },
224 {
225 'target_name': 'test_support_perf',
226 'type': '<(library)',
227 'dependencies': [
228 'base',
[email protected]e8ef09a2009-03-16 23:46:45229 '../testing/gtest.gyp:gtest',
230 ],
231 'sources': [
232 'perftimer.cc',
[email protected]fb895c62009-10-09 18:20:30233 'test/run_all_perftests.cc',
[email protected]e8ef09a2009-03-16 23:46:45234 ],
235 'direct_dependent_settings': {
236 'defines': [
237 'PERF_TEST',
238 ],
239 },
[email protected]9d384032009-03-20 23:13:26240 'conditions': [
[email protected]fb66f9d2009-09-07 16:39:46241 ['OS == "linux" or OS == "freebsd"', {
[email protected]9d384032009-03-20 23:13:26242 'dependencies': [
243 # Needed to handle the #include chain:
[email protected]fb895c62009-10-09 18:20:30244 # base/test/perf_test_suite.h
245 # base/test/test_suite.h
[email protected]9d384032009-03-20 23:13:26246 # gtk/gtk.h
247 '../build/linux/system.gyp:gtk',
248 ],
249 }],
250 ],
[email protected]e8ef09a2009-03-16 23:46:45251 },
[email protected]2f80c312009-02-25 21:26:55252 ],
253 'conditions': [
254 [ 'OS == "win"', {
255 'targets': [
256 {
257 'target_name': 'debug_message',
258 'type': 'executable',
259 'sources': [
260 'debug_message.cc',
261 ],
[email protected]3f8bfc362009-05-22 02:39:14262 'msvs_settings': {
263 'VCLinkerTool': {
264 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
265 },
266 },
[email protected]2f80c312009-02-25 21:26:55267 },
268 ],
269 }],
[email protected]fb66f9d2009-09-07 16:39:46270 [ 'OS == "linux" or OS == "freebsd"', {
[email protected]24a0e29c2009-07-29 23:02:55271 'targets': [
272 {
273 'target_name': 'linux_versioninfo',
274 'type': '<(library)',
275 'sources': [
276 'file_version_info_linux.cc',
277 ],
278 'include_dirs': [
279 '..',
280 '<(SHARED_INTERMEDIATE_DIR)',
281 ],
282 'actions': [
283 {
284 'action_name': 'linux_version',
285 'variables': {
286 'lastchange_path':
287 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
288 'version_py_path': '../chrome/tools/build/version.py',
289 'version_path': '../chrome/VERSION',
290 'template_input_path': 'file_version_info_linux.h.version',
291 },
292 'conditions': [
293 [ 'branding == "Chrome"', {
294 'variables': {
295 'branding_path':
296 '../chrome/app/theme/google_chrome/BRANDING',
297 },
298 }, { # else branding!="Chrome"
299 'variables': {
300 'branding_path':
301 '../chrome/app/theme/chromium/BRANDING',
302 },
303 }],
304 ],
305 'inputs': [
306 '<(template_input_path)',
307 '<(version_path)',
308 '<(branding_path)',
309 '<(lastchange_path)',
310 ],
311 'outputs': [
312 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
313 ],
314 'action': [
315 'python',
316 '<(version_py_path)',
317 '-f', '<(version_path)',
318 '-f', '<(branding_path)',
319 '-f', '<(lastchange_path)',
320 '<(template_input_path)',
321 '<@(_outputs)',
322 ],
323 'message': 'Generating version information',
324 },
325 ],
326 },
327 ],
328 }],
[email protected]2f80c312009-02-25 21:26:55329 ],
330}
[email protected]f5c990c2009-10-06 03:02:38331
332# Local Variables:
333# tab-width:2
334# indent-tabs-mode:nil
335# End:
336# vim: set expandtab tabstop=2 shiftwidth=2: