[email protected] | ef8c3cf | 2012-01-24 04:37:29 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 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': [ |
[email protected] | 99ff993 | 2011-09-07 14:14:54 | [diff] [blame] | 10 | '../build/win_precompile.gypi', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 11 | 'base.gypi', |
| 12 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 13 | 'targets': [ |
| 14 | { |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 15 | 'target_name': 'base_i18n', |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 16 | 'type': '<(component)', |
[email protected] | 1d88ef3 | 2011-12-20 19:59:10 | [diff] [blame] | 17 | 'variables': { |
| 18 | 'enable_wexit_time_destructors': 1, |
| 19 | 'optimize': 'max', |
| 20 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 21 | 'dependencies': [ |
| 22 | 'base', |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 23 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 24 | '../third_party/icu/icu.gyp:icui18n', |
| 25 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 26 | ], |
[email protected] | 8f6f202 | 2010-03-22 21:24:57 | [diff] [blame] | 27 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 28 | ['toolkit_uses_gtk==1', { |
[email protected] | 8f6f202 | 2010-03-22 21:24:57 | [diff] [blame] | 29 | 'dependencies': [ |
| 30 | # i18n/rtl.cc uses gtk |
| 31 | '../build/linux/system.gyp:gtk', |
| 32 | ], |
| 33 | }], |
| 34 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 35 | 'export_dependent_settings': [ |
| 36 | 'base', |
| 37 | ], |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 38 | 'defines': [ |
| 39 | 'BASE_I18N_IMPLEMENTATION', |
| 40 | ], |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 41 | 'sources': [ |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 42 | 'i18n/base_i18n_export.h', |
[email protected] | 14cd2e6 | 2011-02-24 09:20:16 | [diff] [blame] | 43 | 'i18n/bidi_line_iterator.cc', |
| 44 | 'i18n/bidi_line_iterator.h', |
[email protected] | 55954d89 | 2010-12-15 18:00:54 | [diff] [blame] | 45 | 'i18n/break_iterator.cc', |
| 46 | 'i18n/break_iterator.h', |
[email protected] | 0ca5c10 | 2010-08-23 14:30:27 | [diff] [blame] | 47 | 'i18n/char_iterator.cc', |
| 48 | 'i18n/char_iterator.h', |
[email protected] | 503d0387 | 2011-05-06 08:36:26 | [diff] [blame] | 49 | 'i18n/case_conversion.cc', |
| 50 | 'i18n/case_conversion.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 51 | 'i18n/file_util_icu.cc', |
| 52 | 'i18n/file_util_icu.h', |
[email protected] | 193c351 | 2010-05-11 09:19:30 | [diff] [blame] | 53 | 'i18n/icu_encoding_detection.cc', |
| 54 | 'i18n/icu_encoding_detection.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 55 | 'i18n/icu_string_conversions.cc', |
| 56 | 'i18n/icu_string_conversions.h', |
| 57 | 'i18n/icu_util.cc', |
| 58 | 'i18n/icu_util.h', |
| 59 | 'i18n/number_formatting.cc', |
| 60 | 'i18n/number_formatting.h', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 61 | 'i18n/rtl.cc', |
| 62 | 'i18n/rtl.h', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 63 | 'i18n/string_search.cc', |
| 64 | 'i18n/string_search.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 65 | 'i18n/time_formatting.cc', |
| 66 | 'i18n/time_formatting.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 67 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 68 | }, |
| 69 | { |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 70 | # This is the subset of files from base that should not be used with a |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 71 | # dynamic library. Note that this library cannot depend on base because |
| 72 | # base depends on base_static. |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 73 | 'target_name': 'base_static', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 74 | 'type': 'static_library', |
[email protected] | 1d88ef3 | 2011-12-20 19:59:10 | [diff] [blame] | 75 | 'variables': { |
| 76 | 'enable_wexit_time_destructors': 1, |
| 77 | 'optimize': 'max', |
| 78 | }, |
[email protected] | e688d9c | 2011-09-15 21:17:32 | [diff] [blame] | 79 | 'toolsets': ['host', 'target'], |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 80 | 'sources': [ |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 81 | 'base_switches.cc', |
| 82 | 'base_switches.h', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 83 | 'win/pe_image.cc', |
| 84 | 'win/pe_image.h', |
| 85 | ], |
| 86 | 'include_dirs': [ |
| 87 | '..', |
| 88 | ], |
| 89 | }, |
| 90 | { |
| 91 | # TODO(rvargas): Remove this when gyp finally supports a clean model. |
| 92 | # See bug 36232. |
| 93 | 'target_name': 'base_static_win64', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 94 | 'type': 'static_library', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 95 | 'sources': [ |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 96 | 'base_switches.cc', |
| 97 | 'base_switches.h', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 98 | 'win/pe_image.cc', |
| 99 | 'win/pe_image.h', |
| 100 | ], |
| 101 | 'include_dirs': [ |
| 102 | '..', |
| 103 | ], |
| 104 | 'configurations': { |
| 105 | 'Common_Base': { |
| 106 | 'msvs_target_platform': 'x64', |
| 107 | }, |
| 108 | }, |
| 109 | 'defines': [ |
| 110 | 'NACL_WIN64', |
| 111 | ], |
| 112 | # TODO(rvargas): Bug 78117. Remove this. |
| 113 | 'msvs_disabled_warnings': [ |
| 114 | 4244, |
| 115 | ], |
| 116 | }, |
| 117 | { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 118 | 'target_name': 'base_unittests', |
| 119 | 'type': 'executable', |
| 120 | 'sources': [ |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 121 | # Infrastructure files. |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 122 | 'test/run_all_unittests.cc', |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 123 | |
| 124 | # Tests. |
[email protected] | 96e7ade | 2011-12-05 14:42:08 | [diff] [blame] | 125 | 'android/jni_android_unittest.cc', |
[email protected] | f98d7b9 | 2011-09-09 10:17:35 | [diff] [blame] | 126 | 'android/scoped_java_ref_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 127 | 'at_exit_unittest.cc', |
| 128 | 'atomicops_unittest.cc', |
[email protected] | 978df34 | 2009-11-24 06:21:53 | [diff] [blame] | 129 | 'base64_unittest.cc', |
[email protected] | c694427 | 2012-01-06 22:12:28 | [diff] [blame] | 130 | 'bind_helpers_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 131 | 'bind_unittest.cc', |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 132 | 'bind_unittest.nc', |
[email protected] | 6d1729e | 2009-11-18 23:08:39 | [diff] [blame] | 133 | 'bits_unittest.cc', |
[email protected] | 08aa0276 | 2011-11-11 16:09:31 | [diff] [blame] | 134 | 'build_time_unittest.cc', |
[email protected] | 2041cf34 | 2010-02-19 03:15:59 | [diff] [blame] | 135 | 'callback_unittest.cc', |
[email protected] | 481915a77 | 2011-09-10 03:14:35 | [diff] [blame] | 136 | 'callback_unittest.nc', |
[email protected] | b77576f5 | 2011-11-24 04:12:04 | [diff] [blame] | 137 | 'cancelable_callback_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 138 | 'command_line_unittest.cc', |
[email protected] | 14cd2e6 | 2011-02-24 09:20:16 | [diff] [blame] | 139 | 'cpu_unittest.cc', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 140 | 'debug/leak_tracker_unittest.cc', |
| 141 | 'debug/stack_trace_unittest.cc', |
[email protected] | 366ae24 | 2011-05-10 02:23:58 | [diff] [blame] | 142 | 'debug/trace_event_unittest.cc', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 143 | 'debug/trace_event_win_unittest.cc', |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 144 | 'dir_reader_posix_unittest.cc', |
[email protected] | 76b90d31 | 2010-08-03 03:00:50 | [diff] [blame] | 145 | 'environment_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 146 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 147 | 'file_path_unittest.cc', |
| 148 | 'file_util_unittest.cc', |
| 149 | 'file_version_info_unittest.cc', |
[email protected] | d5bb49f | 2009-05-30 14:39:59 | [diff] [blame] | 150 | 'gmock_unittest.cc', |
[email protected] | 925d5d60 | 2009-08-19 14:56:38 | [diff] [blame] | 151 | 'id_map_unittest.cc', |
[email protected] | 55954d89 | 2010-12-15 18:00:54 | [diff] [blame] | 152 | 'i18n/break_iterator_unittest.cc', |
[email protected] | 0ca5c10 | 2010-08-23 14:30:27 | [diff] [blame] | 153 | 'i18n/char_iterator_unittest.cc', |
[email protected] | 503d0387 | 2011-05-06 08:36:26 | [diff] [blame] | 154 | 'i18n/case_conversion_unittest.cc', |
[email protected] | d0767cb54 | 2009-10-08 17:38:30 | [diff] [blame] | 155 | 'i18n/file_util_icu_unittest.cc', |
[email protected] | d6e58c6e | 2009-10-10 20:40:50 | [diff] [blame] | 156 | 'i18n/icu_string_conversions_unittest.cc', |
[email protected] | 7a3b263 | 2011-06-22 20:40:22 | [diff] [blame] | 157 | 'i18n/number_formatting_unittest.cc', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 158 | 'i18n/rtl_unittest.cc', |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 159 | 'i18n/string_search_unittest.cc', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 160 | 'i18n/time_formatting_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 161 | 'json/json_reader_unittest.cc', |
[email protected] | 193f946b | 2011-12-22 18:31:47 | [diff] [blame] | 162 | 'json/json_value_converter_unittest.cc', |
[email protected] | 8d77b63 | 2011-11-17 16:17:23 | [diff] [blame] | 163 | 'json/json_value_serializer_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 164 | 'json/json_writer_unittest.cc', |
| 165 | 'json/string_escape_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 166 | 'lazy_instance_unittest.cc', |
[email protected] | 48ca901 | 2009-08-11 21:38:54 | [diff] [blame] | 167 | 'linked_list_unittest.cc', |
[email protected] | 521b0c4 | 2010-10-01 23:02:36 | [diff] [blame] | 168 | 'logging_unittest.cc', |
[email protected] | 28f5649 | 2011-10-19 00:36:56 | [diff] [blame] | 169 | 'mac/foundation_util_unittest.mm', |
[email protected] | 0378bf4 | 2011-01-01 18:20:14 | [diff] [blame] | 170 | 'mac/mac_util_unittest.mm', |
[email protected] | 10756c5 | 2011-04-20 22:30:35 | [diff] [blame] | 171 | 'mac/objc_property_releaser_unittest.mm', |
[email protected] | d47af217 | 2011-12-01 23:56:17 | [diff] [blame] | 172 | 'mac/scoped_sending_event_unittest.mm', |
[email protected] | 47f19be | 2011-04-25 23:54:07 | [diff] [blame] | 173 | 'md5_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 174 | 'memory/linked_ptr_unittest.cc', |
[email protected] | b4ae444 | 2011-04-27 18:37:03 | [diff] [blame] | 175 | 'memory/mru_cache_unittest.cc', |
[email protected] | 1dda977 | 2011-07-22 13:22:23 | [diff] [blame] | 176 | 'memory/ref_counted_memory_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 177 | 'memory/ref_counted_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 178 | 'memory/scoped_ptr_unittest.cc', |
[email protected] | 6e29d6f3 | 2012-01-25 00:33:05 | [diff] [blame^] | 179 | 'memory/scoped_ptr_unittest.nc', |
[email protected] | e5721c18 | 2011-03-28 22:27:34 | [diff] [blame] | 180 | 'memory/scoped_vector_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 181 | 'memory/singleton_unittest.cc', |
| 182 | 'memory/weak_ptr_unittest.cc', |
[email protected] | 656475d | 2010-05-06 18:34:24 | [diff] [blame] | 183 | 'message_loop_proxy_impl_unittest.cc', |
[email protected] | c31af70db2 | 2011-08-18 23:13:01 | [diff] [blame] | 184 | 'message_loop_proxy_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 185 | 'message_loop_unittest.cc', |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 186 | 'message_pump_glib_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 187 | 'message_pump_libevent_unittest.cc', |
[email protected] | 835d7c8 | 2010-10-14 04:38:38 | [diff] [blame] | 188 | 'metrics/field_trial_unittest.cc', |
| 189 | 'metrics/histogram_unittest.cc', |
| 190 | 'metrics/stats_table_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 191 | 'observer_list_unittest.cc', |
| 192 | 'path_service_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 193 | 'pickle_unittest.cc', |
[email protected] | 3fb43ed1 | 2010-09-10 03:01:14 | [diff] [blame] | 194 | 'platform_file_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 195 | 'pr_time_unittest.cc', |
| 196 | 'process_util_unittest.cc', |
[email protected] | 9f95844 | 2010-03-19 18:42:41 | [diff] [blame] | 197 | 'process_util_unittest_mac.h', |
| 198 | 'process_util_unittest_mac.mm', |
[email protected] | dbe5d207 | 2011-11-08 17:09:21 | [diff] [blame] | 199 | 'profiler/tracked_time_unittest.cc', |
[email protected] | 45644f6 | 2011-11-23 00:58:23 | [diff] [blame] | 200 | 'property_bag_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 201 | 'rand_util_unittest.cc', |
[email protected] | e078590 | 2011-05-19 23:34:17 | [diff] [blame] | 202 | 'scoped_native_library_unittest.cc', |
| 203 | 'scoped_temp_dir_unittest.cc', |
[email protected] | c2ad1e3 | 2009-11-04 19:29:58 | [diff] [blame] | 204 | 'sha1_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 205 | 'shared_memory_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 206 | 'stack_container_unittest.cc', |
[email protected] | 3c1304e2 | 2010-11-13 20:05:47 | [diff] [blame] | 207 | 'string16_unittest.cc', |
[email protected] | 528c56d | 2010-07-30 19:28:44 | [diff] [blame] | 208 | 'string_number_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 209 | 'string_piece_unittest.cc', |
[email protected] | 0477554f | 2010-01-21 19:29:25 | [diff] [blame] | 210 | 'string_split_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 211 | 'string_tokenizer_unittest.cc', |
| 212 | 'string_util_unittest.cc', |
[email protected] | 176ab80 | 2010-11-18 02:15:12 | [diff] [blame] | 213 | 'stringize_macros_unittest.cc', |
[email protected] | e6811ed5 | 2010-08-17 03:45:37 | [diff] [blame] | 214 | 'stringprintf_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 215 | 'synchronization/cancellation_flag_unittest.cc', |
[email protected] | bc581a68 | 2011-01-01 23:16:20 | [diff] [blame] | 216 | 'synchronization/condition_variable_unittest.cc', |
| 217 | 'synchronization/lock_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 218 | 'synchronization/waitable_event_unittest.cc', |
| 219 | 'synchronization/waitable_event_watcher_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 220 | 'sys_info_unittest.cc', |
[email protected] | a2494cb | 2009-11-08 19:04:54 | [diff] [blame] | 221 | 'sys_string_conversions_mac_unittest.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 222 | 'sys_string_conversions_unittest.cc', |
[email protected] | e41d7dd | 2011-05-18 07:29:56 | [diff] [blame] | 223 | 'system_monitor/system_monitor_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 224 | 'template_util_unittest.cc', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 225 | 'test/trace_event_analyzer_unittest.cc', |
[email protected] | c917750 | 2011-01-01 04:48:49 | [diff] [blame] | 226 | 'threading/non_thread_safe_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 227 | 'threading/platform_thread_unittest.cc', |
[email protected] | 098def2 | 2012-01-01 05:42:34 | [diff] [blame] | 228 | 'threading/sequenced_worker_pool_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 229 | 'threading/simple_thread_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 230 | 'threading/thread_checker_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 231 | 'threading/thread_collision_warner_unittest.cc', |
[email protected] | 1357c32 | 2010-12-30 22:18:56 | [diff] [blame] | 232 | 'threading/thread_local_storage_unittest.cc', |
| 233 | 'threading/thread_local_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 234 | 'threading/thread_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 235 | 'threading/watchdog_unittest.cc', |
| 236 | 'threading/worker_pool_posix_unittest.cc', |
| 237 | 'threading/worker_pool_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 238 | 'time_unittest.cc', |
| 239 | 'time_win_unittest.cc', |
| 240 | 'timer_unittest.cc', |
[email protected] | 0716cba | 2009-12-17 12:37:58 | [diff] [blame] | 241 | 'tools_sanity_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 242 | 'tracked_objects_unittest.cc', |
| 243 | 'tuple_unittest.cc', |
[email protected] | b9f9383 | 2009-11-13 19:27:48 | [diff] [blame] | 244 | 'utf_offset_string_conversions_unittest.cc', |
[email protected] | ce85f60 | 2009-11-07 01:34:53 | [diff] [blame] | 245 | 'utf_string_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 246 | 'values_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 247 | 'version_unittest.cc', |
[email protected] | 99b7c57f | 2010-09-29 19:26:36 | [diff] [blame] | 248 | 'vlog_unittest.cc', |
[email protected] | f21ed6f | 2011-12-22 22:07:41 | [diff] [blame] | 249 | 'win/dllmain.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 250 | 'win/enum_variant_unittest.cc', |
[email protected] | ba50d192 | 2010-11-06 15:39:40 | [diff] [blame] | 251 | 'win/event_trace_consumer_unittest.cc', |
| 252 | 'win/event_trace_controller_unittest.cc', |
| 253 | 'win/event_trace_provider_unittest.cc', |
[email protected] | 337ca07 | 2010-11-16 15:28:45 | [diff] [blame] | 254 | 'win/i18n_unittest.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 255 | 'win/iunknown_impl_unittest.cc', |
[email protected] | a8d1ebbe | 2011-01-01 18:26:16 | [diff] [blame] | 256 | 'win/object_watcher_unittest.cc', |
[email protected] | 2d650398 | 2010-10-17 04:41:54 | [diff] [blame] | 257 | 'win/pe_image_unittest.cc', |
| 258 | 'win/registry_unittest.cc', |
[email protected] | da00f00 | 2011-12-07 21:44:28 | [diff] [blame] | 259 | 'win/sampling_profiler_unittest.cc', |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 260 | 'win/scoped_bstr_unittest.cc', |
| 261 | 'win/scoped_comptr_unittest.cc', |
| 262 | 'win/scoped_variant_unittest.cc', |
[email protected] | a8e2058 | 2010-12-31 17:18:50 | [diff] [blame] | 263 | 'win/win_util_unittest.cc', |
[email protected] | ecb924c | 2011-03-17 00:34:09 | [diff] [blame] | 264 | 'win/wrapped_window_proc_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 265 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 266 | 'dependencies': [ |
| 267 | 'base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 268 | 'base_i18n', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 269 | 'base_static', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 270 | 'test_support_base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 271 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | ce315710 | 2009-05-28 07:23:16 | [diff] [blame] | 272 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 273 | '../testing/gtest.gyp:gtest', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 274 | '../third_party/icu/icu.gyp:icui18n', |
| 275 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 276 | ], |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 277 | 'includes': ['../build/nocompile.gypi'], |
| 278 | 'variables': { |
| 279 | # TODO(ajwong): Is there a way to autodetect this? |
| 280 | 'module_dir': 'base' |
| 281 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 282 | 'conditions': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 283 | ['OS == "android"', { |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 284 | 'sources!': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 285 | # TODO(michaelbai): Removed the below once the fix upstreamed. |
| 286 | 'memory/mru_cache_unittest.cc', |
| 287 | 'process_util_unittest.cc', |
| 288 | 'synchronization/cancellation_flag_unittest.cc', |
| 289 | # TODO(michaelbai): The below files are excluded because of the |
| 290 | # missing JNI and should be added back once JNI is ready. |
[email protected] | b5c911a0 | 2011-12-06 23:28:21 | [diff] [blame] | 291 | 'android/jni_android_unittest.cc', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 292 | 'android/scoped_java_ref_unittest.cc', |
| 293 | 'debug/stack_trace_unittest.cc', |
| 294 | ], |
| 295 | }], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 296 | ['use_glib==1', { |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 297 | 'sources!': [ |
| 298 | 'file_version_info_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 299 | ], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 300 | 'conditions': [ |
| 301 | [ 'linux_use_tcmalloc==1', { |
| 302 | 'dependencies': [ |
| 303 | 'allocator/allocator.gyp:allocator', |
| 304 | ], |
| 305 | }, |
| 306 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 307 | [ 'toolkit_uses_gtk==1', { |
| 308 | 'sources': [ |
| 309 | 'nix/xdg_util_unittest.cc', |
| 310 | ], |
| 311 | 'dependencies': [ |
| 312 | '../build/linux/system.gyp:gtk', |
| 313 | ] |
| 314 | }], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 315 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 316 | 'dependencies': [ |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 317 | '../build/linux/system.gyp:glib', |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 318 | '../build/linux/system.gyp:ssl', |
[email protected] | a97488f | 2009-09-17 21:37:19 | [diff] [blame] | 319 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 320 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 321 | }, { # use_glib!=1 |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 322 | 'sources!': [ |
| 323 | 'message_pump_glib_unittest.cc', |
| 324 | ] |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 325 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 326 | # This is needed to trigger the dll copy step on windows. |
| 327 | # TODO(mark): This should not be necessary. |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 328 | ['OS == "win"', { |
| 329 | 'dependencies': [ |
[email protected] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 330 | '../third_party/icu/icu.gyp:icudata', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 331 | ], |
| 332 | 'sources!': [ |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 333 | 'dir_reader_posix_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 334 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 541c4db | 2010-12-30 18:29:28 | [diff] [blame] | 335 | 'threading/worker_pool_posix_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 336 | 'message_pump_libevent_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 337 | ], |
| 338 | }, { # OS != "win" |
[email protected] | 92508df | 2011-08-04 22:23:55 | [diff] [blame] | 339 | 'dependencies': [ |
| 340 | '../third_party/libevent/libevent.gyp:libevent' |
| 341 | ], |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 342 | 'sources/': [ |
| 343 | ['exclude', '^win/'], |
| 344 | ], |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 345 | 'sources!': [ |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 346 | 'debug/trace_event_win_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 347 | 'time_win_unittest.cc', |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 348 | 'win/win_util_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 349 | ], |
| 350 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 351 | ], |
| 352 | }, |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 353 | { |
[email protected] | ddb9b33 | 2011-12-02 07:31:09 | [diff] [blame] | 354 | 'target_name': 'check_example', |
| 355 | 'type': 'executable', |
| 356 | 'sources': [ |
| 357 | 'check_example.cc', |
| 358 | ], |
| 359 | 'dependencies': [ |
| 360 | 'base', |
| 361 | ], |
| 362 | }, |
| 363 | { |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 364 | 'target_name': 'test_support_base', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 365 | 'type': 'static_library', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 366 | 'dependencies': [ |
| 367 | 'base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 368 | 'base_static', |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 369 | 'base_i18n', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 370 | '../testing/gmock.gyp:gmock', |
| 371 | '../testing/gtest.gyp:gtest', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 372 | ], |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 373 | 'export_dependent_settings': [ |
| 374 | 'base', |
| 375 | ], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 376 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 377 | ['toolkit_uses_gtk==1', { |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 378 | 'dependencies': [ |
| 379 | # test_suite initializes GTK. |
| 380 | '../build/linux/system.gyp:gtk', |
| 381 | ], |
| 382 | }], |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 383 | ['os_posix==0', { |
| 384 | 'sources!': [ |
| 385 | 'test/scoped_locale.cc', |
| 386 | 'test/scoped_locale.h', |
| 387 | ], |
| 388 | }], |
[email protected] | c48aef9 | 2011-11-22 23:41:45 | [diff] [blame] | 389 | ['os_bsd==1', { |
[email protected] | 167ec82 | 2011-10-24 22:05:27 | [diff] [blame] | 390 | 'sources!': [ |
| 391 | 'test/test_file_util_linux.cc', |
| 392 | ], |
| 393 | }], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 394 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 395 | 'sources': [ |
[email protected] | bc052ef5 | 2010-10-10 02:42:32 | [diff] [blame] | 396 | 'perftimer.cc', |
[email protected] | a366880 | 2010-12-18 01:18:29 | [diff] [blame] | 397 | 'test/mock_chrome_application_mac.h', |
| 398 | 'test/mock_chrome_application_mac.mm', |
[email protected] | c4996f76 | 2011-06-28 14:29:06 | [diff] [blame] | 399 | 'test/mock_time_provider.cc', |
| 400 | 'test/mock_time_provider.h', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 401 | 'test/multiprocess_test.cc', |
| 402 | 'test/multiprocess_test.h', |
[email protected] | 99cc51e | 2010-10-10 00:21:35 | [diff] [blame] | 403 | 'test/perf_test_suite.cc', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 404 | 'test/perf_test_suite.h', |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 405 | 'test/scoped_locale.cc', |
| 406 | 'test/scoped_locale.h', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 407 | 'test/test_file_util.h', |
| 408 | 'test/test_file_util_linux.cc', |
| 409 | 'test/test_file_util_mac.cc', |
| 410 | 'test/test_file_util_posix.cc', |
| 411 | 'test/test_file_util_win.cc', |
[email protected] | a8f8588 | 2011-08-24 20:02:42 | [diff] [blame] | 412 | 'test/test_reg_util_win.cc', |
| 413 | 'test/test_reg_util_win.h', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 414 | 'test/test_suite.cc', |
| 415 | 'test/test_suite.h', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 416 | 'test/test_stub_android.cc', |
[email protected] | cbb9f50f | 2010-10-05 19:03:05 | [diff] [blame] | 417 | 'test/test_switches.cc', |
| 418 | 'test/test_switches.h', |
| 419 | 'test/test_timeouts.cc', |
| 420 | 'test/test_timeouts.h', |
[email protected] | 8aaae7b | 2011-06-28 06:43:20 | [diff] [blame] | 421 | 'test/thread_test_helper.cc', |
| 422 | 'test/thread_test_helper.h', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 423 | 'test/trace_event_analyzer.cc', |
| 424 | 'test/trace_event_analyzer.h', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 425 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 426 | }, |
| 427 | { |
| 428 | 'target_name': 'test_support_perf', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 429 | 'type': 'static_library', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 430 | 'dependencies': [ |
| 431 | 'base', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 432 | '../testing/gtest.gyp:gtest', |
| 433 | ], |
| 434 | 'sources': [ |
| 435 | 'perftimer.cc', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 436 | 'test/run_all_perftests.cc', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 437 | ], |
| 438 | 'direct_dependent_settings': { |
| 439 | 'defines': [ |
| 440 | 'PERF_TEST', |
| 441 | ], |
| 442 | }, |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 443 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 444 | ['toolkit_uses_gtk==1', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 445 | 'dependencies': [ |
| 446 | # Needed to handle the #include chain: |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 447 | # base/test/perf_test_suite.h |
| 448 | # base/test/test_suite.h |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 449 | # gtk/gtk.h |
| 450 | '../build/linux/system.gyp:gtk', |
| 451 | ], |
| 452 | }], |
| 453 | ], |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 454 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 455 | ], |
| 456 | 'conditions': [ |
| 457 | [ 'OS == "win"', { |
| 458 | 'targets': [ |
| 459 | { |
| 460 | 'target_name': 'debug_message', |
| 461 | 'type': 'executable', |
| 462 | 'sources': [ |
| 463 | 'debug_message.cc', |
| 464 | ], |
[email protected] | 3f8bfc36 | 2009-05-22 02:39:14 | [diff] [blame] | 465 | 'msvs_settings': { |
| 466 | 'VCLinkerTool': { |
| 467 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 468 | }, |
| 469 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 470 | }, |
| 471 | ], |
| 472 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 473 | ], |
| 474 | } |