[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 1 | # 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] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 9 | 'includes': [ |
| 10 | 'base.gypi', |
| 11 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 12 | 'targets': [ |
| 13 | { |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 14 | 'target_name': 'base_i18n', |
[email protected] | 653bd5f03 | 2009-04-08 12:55:49 | [diff] [blame] | 15 | 'type': '<(library)', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 16 | 'msvs_guid': '968F3222-9798-4D21-BE08-15ECB5EF2994', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 17 | 'dependencies': [ |
| 18 | 'base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 19 | '../third_party/icu/icu.gyp:icui18n', |
| 20 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 21 | ], |
[email protected] | 8f6f202 | 2010-03-22 21:24:57 | [diff] [blame] | 22 | '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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 30 | 'export_dependent_settings': [ |
| 31 | 'base', |
| 32 | ], |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 33 | '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] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 42 | 'i18n/rtl.cc', |
| 43 | 'i18n/rtl.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 44 | 'i18n/time_formatting.cc', |
| 45 | 'i18n/time_formatting.h', |
| 46 | 'i18n/word_iterator.cc', |
| 47 | 'i18n/word_iterator.h', |
| 48 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 49 | }, |
| 50 | { |
| 51 | 'target_name': 'base_unittests', |
| 52 | 'type': 'executable', |
[email protected] | 9e450f2 | 2009-03-10 23:12:16 | [diff] [blame] | 53 | 'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 54 | 'sources': [ |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 55 | # Infrastructure files. |
| 56 | 'multiprocess_test.h', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 57 | 'test/run_all_unittests.cc', |
| 58 | 'test/test_suite.h', |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 59 | |
| 60 | # Tests. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 61 | 'at_exit_unittest.cc', |
| 62 | 'atomicops_unittest.cc', |
[email protected] | 978df34 | 2009-11-24 06:21:53 | [diff] [blame] | 63 | 'base64_unittest.cc', |
[email protected] | 6d1729e | 2009-11-18 23:08:39 | [diff] [blame] | 64 | 'bits_unittest.cc', |
[email protected] | 2041cf34 | 2010-02-19 03:15:59 | [diff] [blame] | 65 | 'callback_unittest.cc', |
[email protected] | baeb22f5 | 2009-12-03 21:11:34 | [diff] [blame] | 66 | 'cancellation_flag_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 67 | 'command_line_unittest.cc', |
| 68 | 'condition_variable_unittest.cc', |
[email protected] | 39422e3 | 2010-03-25 19:13:00 | [diff] [blame^] | 69 | 'crypto/encryptor_unittest.cc', |
[email protected] | 28ae8fe | 2009-06-05 18:25:06 | [diff] [blame] | 70 | 'crypto/rsa_private_key_unittest.cc', |
| 71 | 'crypto/signature_creator_unittest.cc', |
[email protected] | 5290aaa | 2009-05-28 06:02:56 | [diff] [blame] | 72 | 'crypto/signature_verifier_unittest.cc', |
[email protected] | 39422e3 | 2010-03-25 19:13:00 | [diff] [blame^] | 73 | 'crypto/symmetric_key_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 74 | 'data_pack_unittest.cc', |
[email protected] | 96fd003 | 2009-04-24 00:13:08 | [diff] [blame] | 75 | 'debug_util_unittest.cc', |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 76 | 'dir_reader_posix_unittest.cc', |
[email protected] | 2b07b841 | 2009-11-25 15:26:34 | [diff] [blame] | 77 | 'event_trace_consumer_win_unittest.cc', |
| 78 | 'event_trace_controller_win_unittest.cc', |
| 79 | 'event_trace_provider_win_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 80 | 'field_trial_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 81 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 82 | 'file_path_unittest.cc', |
| 83 | 'file_util_unittest.cc', |
| 84 | 'file_version_info_unittest.cc', |
[email protected] | d5bb49f | 2009-05-30 14:39:59 | [diff] [blame] | 85 | 'gmock_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 86 | 'histogram_unittest.cc', |
| 87 | 'hmac_unittest.cc', |
[email protected] | 925d5d60 | 2009-08-19 14:56:38 | [diff] [blame] | 88 | 'id_map_unittest.cc', |
[email protected] | d0767cb54 | 2009-10-08 17:38:30 | [diff] [blame] | 89 | 'i18n/file_util_icu_unittest.cc', |
[email protected] | d6e58c6e | 2009-10-10 20:40:50 | [diff] [blame] | 90 | 'i18n/icu_string_conversions_unittest.cc', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 91 | 'i18n/rtl_unittest.cc', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 92 | 'i18n/word_iterator_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 93 | 'json/json_reader_unittest.cc', |
| 94 | 'json/json_writer_unittest.cc', |
| 95 | 'json/string_escape_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 96 | 'lazy_instance_unittest.cc', |
[email protected] | 48ca901 | 2009-08-11 21:38:54 | [diff] [blame] | 97 | 'leak_tracker_unittest.cc', |
| 98 | 'linked_list_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 99 | 'linked_ptr_unittest.cc', |
[email protected] | 8b386ced | 2009-10-27 15:55:52 | [diff] [blame] | 100 | 'mac_util_unittest.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 101 | 'message_loop_unittest.cc', |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 102 | 'message_pump_glib_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 103 | '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] | 9f95844 | 2010-03-19 18:42:41 | [diff] [blame] | 110 | 'process_util_unittest_mac.h', |
| 111 | 'process_util_unittest_mac.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 112 | 'rand_util_unittest.cc', |
| 113 | 'ref_counted_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 114 | 'scoped_bstr_win_unittest.cc', |
| 115 | 'scoped_comptr_win_unittest.cc', |
[email protected] | da2566e1 | 2010-03-10 06:23:35 | [diff] [blame] | 116 | 'scoped_native_library_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 117 | 'scoped_ptr_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 118 | 'scoped_temp_dir_unittest.cc', |
[email protected] | e00d3919 | 2009-03-19 04:22:28 | [diff] [blame] | 119 | 'scoped_variant_win_unittest.cc', |
[email protected] | c2ad1e3 | 2009-11-04 19:29:58 | [diff] [blame] | 120 | 'sha1_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 121 | '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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 127 | 'string_piece_unittest.cc', |
[email protected] | 0477554f | 2010-01-21 19:29:25 | [diff] [blame] | 128 | 'string_split_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 129 | 'string_tokenizer_unittest.cc', |
| 130 | 'string_util_unittest.cc', |
| 131 | 'sys_info_unittest.cc', |
[email protected] | a2494cb | 2009-11-08 19:04:54 | [diff] [blame] | 132 | 'sys_string_conversions_mac_unittest.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 133 | 'sys_string_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 134 | '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] | 0716cba | 2009-12-17 12:37:58 | [diff] [blame] | 141 | 'tools_sanity_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 142 | 'tracked_objects_unittest.cc', |
| 143 | 'tuple_unittest.cc', |
[email protected] | b9f9383 | 2009-11-13 19:27:48 | [diff] [blame] | 144 | 'utf_offset_string_conversions_unittest.cc', |
[email protected] | ce85f60 | 2009-11-07 01:34:53 | [diff] [blame] | 145 | 'utf_string_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 146 | 'values_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 147 | 'version_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 148 | 'waitable_event_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 149 | 'waitable_event_watcher_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 150 | 'watchdog_unittest.cc', |
[email protected] | 3125d646 | 2009-09-01 20:50:17 | [diff] [blame] | 151 | 'weak_ptr_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 152 | 'win_util_unittest.cc', |
| 153 | 'wmi_util_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 154 | '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] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 159 | '../third_party/icu/public/common', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 160 | ], |
| 161 | 'dependencies': [ |
| 162 | 'base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 163 | 'base_i18n', |
[email protected] | ce315710 | 2009-05-28 07:23:16 | [diff] [blame] | 164 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 165 | '../testing/gtest.gyp:gtest', |
| 166 | ], |
| 167 | 'conditions': [ |
[email protected] | b5c72b82 | 2010-02-18 16:11:37 | [diff] [blame] | 168 | ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 169 | 'sources!': [ |
| 170 | 'file_version_info_unittest.cc', |
[email protected] | 2d4f7b4 | 2009-04-03 20:21:52 | [diff] [blame] | 171 | 'worker_pool_linux_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 172 | ], |
[email protected] | 3c4e3015 | 2009-11-25 00:17:53 | [diff] [blame] | 173 | 'conditions': [ |
| 174 | [ 'linux_use_tcmalloc==1', { |
| 175 | 'dependencies': [ |
[email protected] | 96a1e3a | 2009-11-26 14:50:13 | [diff] [blame] | 176 | 'allocator/allocator.gyp:allocator', |
[email protected] | 3c4e3015 | 2009-11-25 00:17:53 | [diff] [blame] | 177 | ], |
| 178 | }, |
| 179 | ], |
| 180 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 181 | 'dependencies': [ |
| 182 | '../build/linux/system.gyp:gtk', |
[email protected] | db7286d | 2009-04-10 16:36:34 | [diff] [blame] | 183 | '../build/linux/system.gyp:nss', |
[email protected] | a97488f | 2009-09-17 21:37:19 | [diff] [blame] | 184 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 185 | ], |
[email protected] | b5c72b82 | 2010-02-18 16:11:37 | [diff] [blame] | 186 | }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris" |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 187 | 'sources!': [ |
| 188 | 'message_pump_glib_unittest.cc', |
| 189 | ] |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 190 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 191 | # This is needed to trigger the dll copy step on windows. |
| 192 | # TODO(mark): This should not be necessary. |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 193 | ['OS == "win"', { |
| 194 | 'dependencies': [ |
[email protected] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 195 | '../third_party/icu/icu.gyp:icudata', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 196 | ], |
| 197 | 'sources!': [ |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 198 | 'dir_reader_posix_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 199 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 200 | ], |
| 201 | }, { # OS != "win" |
| 202 | 'sources!': [ |
[email protected] | 2b07b841 | 2009-11-25 15:26:34 | [diff] [blame] | 203 | 'event_trace_consumer_win_unittest.cc', |
| 204 | 'event_trace_controller_win_unittest.cc', |
| 205 | 'event_trace_provider_win_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 206 | 'object_watcher_unittest.cc', |
| 207 | 'pe_image_unittest.cc', |
| 208 | 'scoped_bstr_win_unittest.cc', |
| 209 | 'scoped_comptr_win_unittest.cc', |
[email protected] | e00d3919 | 2009-03-19 04:22:28 | [diff] [blame] | 210 | 'scoped_variant_win_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 211 | 'system_monitor_unittest.cc', |
| 212 | 'time_win_unittest.cc', |
| 213 | 'win_util_unittest.cc', |
| 214 | 'wmi_util_unittest.cc', |
| 215 | ], |
| 216 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 217 | ], |
| 218 | }, |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 219 | { |
| 220 | 'target_name': 'test_support_base', |
[email protected] | 653bd5f03 | 2009-04-08 12:55:49 | [diff] [blame] | 221 | 'type': '<(library)', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 222 | 'dependencies': [ |
| 223 | 'base', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 224 | ], |
| 225 | 'sources': [ |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 226 | '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] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 231 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 232 | }, |
| 233 | { |
| 234 | 'target_name': 'test_support_perf', |
| 235 | 'type': '<(library)', |
| 236 | 'dependencies': [ |
| 237 | 'base', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 238 | '../testing/gtest.gyp:gtest', |
| 239 | ], |
| 240 | 'sources': [ |
| 241 | 'perftimer.cc', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 242 | 'test/run_all_perftests.cc', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 243 | ], |
| 244 | 'direct_dependent_settings': { |
| 245 | 'defines': [ |
| 246 | 'PERF_TEST', |
| 247 | ], |
| 248 | }, |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 249 | 'conditions': [ |
[email protected] | b5c72b82 | 2010-02-18 16:11:37 | [diff] [blame] | 250 | ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 251 | 'dependencies': [ |
| 252 | # Needed to handle the #include chain: |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 253 | # base/test/perf_test_suite.h |
| 254 | # base/test/test_suite.h |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 255 | # gtk/gtk.h |
| 256 | '../build/linux/system.gyp:gtk', |
| 257 | ], |
| 258 | }], |
| 259 | ], |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 260 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 261 | ], |
| 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] | 3f8bfc36 | 2009-05-22 02:39:14 | [diff] [blame] | 271 | 'msvs_settings': { |
| 272 | 'VCLinkerTool': { |
| 273 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 274 | }, |
| 275 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 276 | }, |
| 277 | ], |
| 278 | }], |
[email protected] | b5c72b82 | 2010-02-18 16:11:37 | [diff] [blame] | 279 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
[email protected] | 24a0e29c | 2009-07-29 23:02:55 | [diff] [blame] | 280 | '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] | 19f60a5 | 2010-02-17 16:49:27 | [diff] [blame] | 318 | '<(lastchange_path)', |
[email protected] | 24a0e29c | 2009-07-29 23:02:55 | [diff] [blame] | 319 | ], |
| 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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 338 | ], |
| 339 | } |
[email protected] | f5c990c | 2009-10-06 03:02:38 | [diff] [blame] | 340 | |
| 341 | # Local Variables: |
| 342 | # tab-width:2 |
| 343 | # indent-tabs-mode:nil |
| 344 | # End: |
| 345 | # vim: set expandtab tabstop=2 shiftwidth=2: |