[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 | }, |
[email protected] | c554906 | 2012-03-21 05:55:06 | [diff] [blame] | 117 | # Include this target for a main() function that simply instantiates |
| 118 | # and runs a base::TestSuite. |
| 119 | { |
| 120 | 'target_name': 'run_all_unittests', |
| 121 | 'type': 'static_library', |
| 122 | 'dependencies': [ |
| 123 | 'test_support_base', |
| 124 | ], |
| 125 | 'sources': [ |
| 126 | 'test/run_all_unittests.cc', |
| 127 | ], |
| 128 | }, |
[email protected] | 6fa1e7ef | 2012-03-14 11:24:04 | [diff] [blame] | 129 | { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 130 | 'target_name': 'base_unittests', |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 131 | 'type': '<(gtest_target_type)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 132 | 'sources': [ |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 133 | # Tests. |
[email protected] | 96e7ade | 2011-12-05 14:42:08 | [diff] [blame] | 134 | 'android/jni_android_unittest.cc', |
[email protected] | f98d7b9 | 2011-09-09 10:17:35 | [diff] [blame] | 135 | 'android/scoped_java_ref_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 136 | 'at_exit_unittest.cc', |
| 137 | 'atomicops_unittest.cc', |
[email protected] | 978df34 | 2009-11-24 06:21:53 | [diff] [blame] | 138 | 'base64_unittest.cc', |
[email protected] | c694427 | 2012-01-06 22:12:28 | [diff] [blame] | 139 | 'bind_helpers_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 140 | 'bind_unittest.cc', |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 141 | 'bind_unittest.nc', |
[email protected] | 6d1729e | 2009-11-18 23:08:39 | [diff] [blame] | 142 | 'bits_unittest.cc', |
[email protected] | 08aa0276 | 2011-11-11 16:09:31 | [diff] [blame] | 143 | 'build_time_unittest.cc', |
[email protected] | 2041cf34 | 2010-02-19 03:15:59 | [diff] [blame] | 144 | 'callback_unittest.cc', |
[email protected] | 481915a77 | 2011-09-10 03:14:35 | [diff] [blame] | 145 | 'callback_unittest.nc', |
[email protected] | b77576f5 | 2011-11-24 04:12:04 | [diff] [blame] | 146 | 'cancelable_callback_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 147 | 'command_line_unittest.cc', |
[email protected] | 14cd2e6 | 2011-02-24 09:20:16 | [diff] [blame] | 148 | 'cpu_unittest.cc', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 149 | 'debug/leak_tracker_unittest.cc', |
| 150 | 'debug/stack_trace_unittest.cc', |
[email protected] | 366ae24 | 2011-05-10 02:23:58 | [diff] [blame] | 151 | 'debug/trace_event_unittest.cc', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 152 | 'debug/trace_event_win_unittest.cc', |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 153 | 'dir_reader_posix_unittest.cc', |
[email protected] | 76b90d31 | 2010-08-03 03:00:50 | [diff] [blame] | 154 | 'environment_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 155 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 156 | 'file_path_unittest.cc', |
[email protected] | 77e07b84 | 2012-04-23 18:40:57 | [diff] [blame^] | 157 | 'file_util_proxy_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 158 | 'file_util_unittest.cc', |
| 159 | 'file_version_info_unittest.cc', |
[email protected] | d5bb49f | 2009-05-30 14:39:59 | [diff] [blame] | 160 | 'gmock_unittest.cc', |
[email protected] | 925d5d60 | 2009-08-19 14:56:38 | [diff] [blame] | 161 | 'id_map_unittest.cc', |
[email protected] | 55954d89 | 2010-12-15 18:00:54 | [diff] [blame] | 162 | 'i18n/break_iterator_unittest.cc', |
[email protected] | 0ca5c10 | 2010-08-23 14:30:27 | [diff] [blame] | 163 | 'i18n/char_iterator_unittest.cc', |
[email protected] | 503d0387 | 2011-05-06 08:36:26 | [diff] [blame] | 164 | 'i18n/case_conversion_unittest.cc', |
[email protected] | d0767cb54 | 2009-10-08 17:38:30 | [diff] [blame] | 165 | 'i18n/file_util_icu_unittest.cc', |
[email protected] | d6e58c6e | 2009-10-10 20:40:50 | [diff] [blame] | 166 | 'i18n/icu_string_conversions_unittest.cc', |
[email protected] | 7a3b263 | 2011-06-22 20:40:22 | [diff] [blame] | 167 | 'i18n/number_formatting_unittest.cc', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 168 | 'i18n/rtl_unittest.cc', |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 169 | 'i18n/string_search_unittest.cc', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 170 | 'i18n/time_formatting_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 171 | 'json/json_reader_unittest.cc', |
[email protected] | 193f946b | 2011-12-22 18:31:47 | [diff] [blame] | 172 | 'json/json_value_converter_unittest.cc', |
[email protected] | 8d77b63 | 2011-11-17 16:17:23 | [diff] [blame] | 173 | 'json/json_value_serializer_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 174 | 'json/json_writer_unittest.cc', |
| 175 | 'json/string_escape_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 176 | 'lazy_instance_unittest.cc', |
[email protected] | 48ca901 | 2009-08-11 21:38:54 | [diff] [blame] | 177 | 'linked_list_unittest.cc', |
[email protected] | 521b0c4 | 2010-10-01 23:02:36 | [diff] [blame] | 178 | 'logging_unittest.cc', |
[email protected] | 06ff3c5 | 2012-03-01 01:58:05 | [diff] [blame] | 179 | 'mac/closure_blocks_leopard_compat_unittest.cc', |
[email protected] | 28f5649 | 2011-10-19 00:36:56 | [diff] [blame] | 180 | 'mac/foundation_util_unittest.mm', |
[email protected] | 0378bf4 | 2011-01-01 18:20:14 | [diff] [blame] | 181 | 'mac/mac_util_unittest.mm', |
[email protected] | 10756c5 | 2011-04-20 22:30:35 | [diff] [blame] | 182 | 'mac/objc_property_releaser_unittest.mm', |
[email protected] | d47af217 | 2011-12-01 23:56:17 | [diff] [blame] | 183 | 'mac/scoped_sending_event_unittest.mm', |
[email protected] | 47f19be | 2011-04-25 23:54:07 | [diff] [blame] | 184 | 'md5_unittest.cc', |
[email protected] | cd924d6 | 2012-02-23 17:52:20 | [diff] [blame] | 185 | 'memory/aligned_memory_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 186 | 'memory/linked_ptr_unittest.cc', |
[email protected] | b4ae444 | 2011-04-27 18:37:03 | [diff] [blame] | 187 | 'memory/mru_cache_unittest.cc', |
[email protected] | 1dda977 | 2011-07-22 13:22:23 | [diff] [blame] | 188 | 'memory/ref_counted_memory_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 189 | 'memory/ref_counted_unittest.cc', |
[email protected] | 656d2ab1 | 2012-02-09 09:50:58 | [diff] [blame] | 190 | 'memory/scoped_nsobject_unittest.mm', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 191 | 'memory/scoped_ptr_unittest.cc', |
[email protected] | 6e29d6f3 | 2012-01-25 00:33:05 | [diff] [blame] | 192 | 'memory/scoped_ptr_unittest.nc', |
[email protected] | e5721c18 | 2011-03-28 22:27:34 | [diff] [blame] | 193 | 'memory/scoped_vector_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 194 | 'memory/singleton_unittest.cc', |
| 195 | 'memory/weak_ptr_unittest.cc', |
[email protected] | 656475d | 2010-05-06 18:34:24 | [diff] [blame] | 196 | 'message_loop_proxy_impl_unittest.cc', |
[email protected] | c31af70db2 | 2011-08-18 23:13:01 | [diff] [blame] | 197 | 'message_loop_proxy_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 198 | 'message_loop_unittest.cc', |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 199 | 'message_pump_glib_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 200 | 'message_pump_libevent_unittest.cc', |
[email protected] | 835d7c8 | 2010-10-14 04:38:38 | [diff] [blame] | 201 | 'metrics/field_trial_unittest.cc', |
| 202 | 'metrics/histogram_unittest.cc', |
| 203 | 'metrics/stats_table_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 204 | 'observer_list_unittest.cc', |
| 205 | 'path_service_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 206 | 'pickle_unittest.cc', |
[email protected] | 3fb43ed1 | 2010-09-10 03:01:14 | [diff] [blame] | 207 | 'platform_file_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 208 | 'pr_time_unittest.cc', |
| 209 | 'process_util_unittest.cc', |
[email protected] | 9f95844 | 2010-03-19 18:42:41 | [diff] [blame] | 210 | 'process_util_unittest_mac.h', |
| 211 | 'process_util_unittest_mac.mm', |
[email protected] | dbe5d207 | 2011-11-08 17:09:21 | [diff] [blame] | 212 | 'profiler/tracked_time_unittest.cc', |
[email protected] | 45644f6 | 2011-11-23 00:58:23 | [diff] [blame] | 213 | 'property_bag_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 214 | 'rand_util_unittest.cc', |
[email protected] | e078590 | 2011-05-19 23:34:17 | [diff] [blame] | 215 | 'scoped_native_library_unittest.cc', |
| 216 | 'scoped_temp_dir_unittest.cc', |
[email protected] | c2ad1e3 | 2009-11-04 19:29:58 | [diff] [blame] | 217 | 'sha1_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 218 | 'shared_memory_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 219 | 'stack_container_unittest.cc', |
[email protected] | 3c1304e2 | 2010-11-13 20:05:47 | [diff] [blame] | 220 | 'string16_unittest.cc', |
[email protected] | 528c56d | 2010-07-30 19:28:44 | [diff] [blame] | 221 | 'string_number_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 222 | 'string_piece_unittest.cc', |
[email protected] | 0477554f | 2010-01-21 19:29:25 | [diff] [blame] | 223 | 'string_split_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 224 | 'string_tokenizer_unittest.cc', |
| 225 | 'string_util_unittest.cc', |
[email protected] | 176ab80 | 2010-11-18 02:15:12 | [diff] [blame] | 226 | 'stringize_macros_unittest.cc', |
[email protected] | e6811ed5 | 2010-08-17 03:45:37 | [diff] [blame] | 227 | 'stringprintf_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 228 | 'synchronization/cancellation_flag_unittest.cc', |
[email protected] | bc581a68 | 2011-01-01 23:16:20 | [diff] [blame] | 229 | 'synchronization/condition_variable_unittest.cc', |
| 230 | 'synchronization/lock_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 231 | 'synchronization/waitable_event_unittest.cc', |
| 232 | 'synchronization/waitable_event_watcher_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 233 | 'sys_info_unittest.cc', |
[email protected] | a2494cb | 2009-11-08 19:04:54 | [diff] [blame] | 234 | 'sys_string_conversions_mac_unittest.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 235 | 'sys_string_conversions_unittest.cc', |
[email protected] | e41d7dd | 2011-05-18 07:29:56 | [diff] [blame] | 236 | 'system_monitor/system_monitor_unittest.cc', |
[email protected] | 95991b1 | 2012-04-17 02:48:06 | [diff] [blame] | 237 | 'task_runner_util_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 238 | 'template_util_unittest.cc', |
[email protected] | ce5d047 | 2012-04-02 10:16:55 | [diff] [blame] | 239 | 'test/sequenced_worker_pool_owner.cc', |
| 240 | 'test/sequenced_worker_pool_owner.h', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 241 | 'test/trace_event_analyzer_unittest.cc', |
[email protected] | c917750 | 2011-01-01 04:48:49 | [diff] [blame] | 242 | 'threading/non_thread_safe_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 243 | 'threading/platform_thread_unittest.cc', |
[email protected] | 098def2 | 2012-01-01 05:42:34 | [diff] [blame] | 244 | 'threading/sequenced_worker_pool_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 245 | 'threading/simple_thread_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 246 | 'threading/thread_checker_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 247 | 'threading/thread_collision_warner_unittest.cc', |
[email protected] | 1357c32 | 2010-12-30 22:18:56 | [diff] [blame] | 248 | 'threading/thread_local_storage_unittest.cc', |
| 249 | 'threading/thread_local_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 250 | 'threading/thread_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 251 | 'threading/watchdog_unittest.cc', |
| 252 | 'threading/worker_pool_posix_unittest.cc', |
| 253 | 'threading/worker_pool_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 254 | 'time_unittest.cc', |
| 255 | 'time_win_unittest.cc', |
| 256 | 'timer_unittest.cc', |
[email protected] | 0716cba | 2009-12-17 12:37:58 | [diff] [blame] | 257 | 'tools_sanity_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 258 | 'tracked_objects_unittest.cc', |
| 259 | 'tuple_unittest.cc', |
[email protected] | b9f9383 | 2009-11-13 19:27:48 | [diff] [blame] | 260 | 'utf_offset_string_conversions_unittest.cc', |
[email protected] | ce85f60 | 2009-11-07 01:34:53 | [diff] [blame] | 261 | 'utf_string_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 262 | 'values_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 263 | 'version_unittest.cc', |
[email protected] | 99b7c57f | 2010-09-29 19:26:36 | [diff] [blame] | 264 | 'vlog_unittest.cc', |
[email protected] | f21ed6f | 2011-12-22 22:07:41 | [diff] [blame] | 265 | 'win/dllmain.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 266 | 'win/enum_variant_unittest.cc', |
[email protected] | ba50d192 | 2010-11-06 15:39:40 | [diff] [blame] | 267 | 'win/event_trace_consumer_unittest.cc', |
| 268 | 'win/event_trace_controller_unittest.cc', |
| 269 | 'win/event_trace_provider_unittest.cc', |
[email protected] | 337ca07 | 2010-11-16 15:28:45 | [diff] [blame] | 270 | 'win/i18n_unittest.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 271 | 'win/iunknown_impl_unittest.cc', |
[email protected] | a8d1ebbe | 2011-01-01 18:26:16 | [diff] [blame] | 272 | 'win/object_watcher_unittest.cc', |
[email protected] | 2d650398 | 2010-10-17 04:41:54 | [diff] [blame] | 273 | 'win/pe_image_unittest.cc', |
| 274 | 'win/registry_unittest.cc', |
[email protected] | da00f00 | 2011-12-07 21:44:28 | [diff] [blame] | 275 | 'win/sampling_profiler_unittest.cc', |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 276 | 'win/scoped_bstr_unittest.cc', |
| 277 | 'win/scoped_comptr_unittest.cc', |
[email protected] | e8f5ff5 | 2012-04-04 19:57:50 | [diff] [blame] | 278 | 'win/scoped_process_information_unittest.cc', |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 279 | 'win/scoped_variant_unittest.cc', |
[email protected] | a8e2058 | 2010-12-31 17:18:50 | [diff] [blame] | 280 | 'win/win_util_unittest.cc', |
[email protected] | ecb924c | 2011-03-17 00:34:09 | [diff] [blame] | 281 | 'win/wrapped_window_proc_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 282 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 283 | 'dependencies': [ |
| 284 | 'base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 285 | 'base_i18n', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 286 | 'base_static', |
[email protected] | c554906 | 2012-03-21 05:55:06 | [diff] [blame] | 287 | 'run_all_unittests', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 288 | 'test_support_base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 289 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | ce315710 | 2009-05-28 07:23:16 | [diff] [blame] | 290 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 291 | '../testing/gtest.gyp:gtest', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 292 | '../third_party/icu/icu.gyp:icui18n', |
| 293 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 294 | ], |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 295 | 'includes': ['../build/nocompile.gypi'], |
| 296 | 'variables': { |
| 297 | # TODO(ajwong): Is there a way to autodetect this? |
| 298 | 'module_dir': 'base' |
| 299 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 300 | 'conditions': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 301 | ['OS == "android"', { |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 302 | 'sources!': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 303 | # TODO(michaelbai): Removed the below once the fix upstreamed. |
| 304 | 'memory/mru_cache_unittest.cc', |
| 305 | 'process_util_unittest.cc', |
| 306 | 'synchronization/cancellation_flag_unittest.cc', |
| 307 | # TODO(michaelbai): The below files are excluded because of the |
| 308 | # missing JNI and should be added back once JNI is ready. |
[email protected] | b5c911a0 | 2011-12-06 23:28:21 | [diff] [blame] | 309 | 'android/jni_android_unittest.cc', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 310 | 'android/scoped_java_ref_unittest.cc', |
| 311 | 'debug/stack_trace_unittest.cc', |
| 312 | ], |
[email protected] | cef04bcf | 2012-02-24 00:09:38 | [diff] [blame] | 313 | 'dependencies': [ |
[email protected] | fae37d6 | 2012-03-08 12:39:13 | [diff] [blame] | 314 | 'android/jni_generator/jni_generator.gyp:jni_generator_tests', |
[email protected] | cef04bcf | 2012-02-24 00:09:38 | [diff] [blame] | 315 | ], |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 316 | }], |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 317 | ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { |
| 318 | 'dependencies': [ |
| 319 | '../testing/android/native_test.gyp:native_test_native_code', |
| 320 | ], |
| 321 | }], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 322 | ['use_glib==1', { |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 323 | 'sources!': [ |
| 324 | 'file_version_info_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 325 | ], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 326 | 'conditions': [ |
| 327 | [ 'linux_use_tcmalloc==1', { |
| 328 | 'dependencies': [ |
| 329 | 'allocator/allocator.gyp:allocator', |
| 330 | ], |
| 331 | }, |
| 332 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 333 | [ 'toolkit_uses_gtk==1', { |
| 334 | 'sources': [ |
| 335 | 'nix/xdg_util_unittest.cc', |
| 336 | ], |
| 337 | 'dependencies': [ |
| 338 | '../build/linux/system.gyp:gtk', |
| 339 | ] |
| 340 | }], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 341 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 342 | 'dependencies': [ |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 343 | '../build/linux/system.gyp:glib', |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 344 | '../build/linux/system.gyp:ssl', |
[email protected] | a97488f | 2009-09-17 21:37:19 | [diff] [blame] | 345 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 346 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 347 | }, { # use_glib!=1 |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 348 | 'sources!': [ |
| 349 | 'message_pump_glib_unittest.cc', |
| 350 | ] |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 351 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 352 | # This is needed to trigger the dll copy step on windows. |
| 353 | # TODO(mark): This should not be necessary. |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 354 | ['OS == "win"', { |
| 355 | 'dependencies': [ |
[email protected] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 356 | '../third_party/icu/icu.gyp:icudata', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 357 | ], |
| 358 | 'sources!': [ |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 359 | 'dir_reader_posix_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 360 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 541c4db | 2010-12-30 18:29:28 | [diff] [blame] | 361 | 'threading/worker_pool_posix_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 362 | 'message_pump_libevent_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 363 | ], |
| 364 | }, { # OS != "win" |
[email protected] | 92508df | 2011-08-04 22:23:55 | [diff] [blame] | 365 | 'dependencies': [ |
| 366 | '../third_party/libevent/libevent.gyp:libevent' |
| 367 | ], |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 368 | 'sources/': [ |
| 369 | ['exclude', '^win/'], |
| 370 | ], |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 371 | 'sources!': [ |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 372 | 'debug/trace_event_win_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 373 | 'time_win_unittest.cc', |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 374 | 'win/win_util_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 375 | ], |
| 376 | }], |
[email protected] | 06ff3c5 | 2012-03-01 01:58:05 | [diff] [blame] | 377 | ['OS=="mac"', { |
| 378 | 'dependencies': [ |
| 379 | 'closure_blocks_leopard_compat', |
| 380 | ], |
| 381 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 382 | ], |
| 383 | }, |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 384 | { |
[email protected] | ddb9b33 | 2011-12-02 07:31:09 | [diff] [blame] | 385 | 'target_name': 'check_example', |
| 386 | 'type': 'executable', |
| 387 | 'sources': [ |
| 388 | 'check_example.cc', |
| 389 | ], |
| 390 | 'dependencies': [ |
| 391 | 'base', |
| 392 | ], |
| 393 | }, |
| 394 | { |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 395 | 'target_name': 'test_support_base', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 396 | 'type': 'static_library', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 397 | 'dependencies': [ |
| 398 | 'base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 399 | 'base_static', |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 400 | 'base_i18n', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 401 | '../testing/gmock.gyp:gmock', |
| 402 | '../testing/gtest.gyp:gtest', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 403 | ], |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 404 | 'export_dependent_settings': [ |
| 405 | 'base', |
| 406 | ], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 407 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 408 | ['toolkit_uses_gtk==1', { |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 409 | 'dependencies': [ |
| 410 | # test_suite initializes GTK. |
| 411 | '../build/linux/system.gyp:gtk', |
| 412 | ], |
| 413 | }], |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 414 | ['os_posix==0', { |
| 415 | 'sources!': [ |
| 416 | 'test/scoped_locale.cc', |
| 417 | 'test/scoped_locale.h', |
| 418 | ], |
| 419 | }], |
[email protected] | c48aef9 | 2011-11-22 23:41:45 | [diff] [blame] | 420 | ['os_bsd==1', { |
[email protected] | 167ec82 | 2011-10-24 22:05:27 | [diff] [blame] | 421 | 'sources!': [ |
| 422 | 'test/test_file_util_linux.cc', |
| 423 | ], |
| 424 | }], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 425 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 426 | 'sources': [ |
[email protected] | bc052ef5 | 2010-10-10 02:42:32 | [diff] [blame] | 427 | 'perftimer.cc', |
[email protected] | a366880 | 2010-12-18 01:18:29 | [diff] [blame] | 428 | 'test/mock_chrome_application_mac.h', |
| 429 | 'test/mock_chrome_application_mac.mm', |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 430 | 'test/mock_devices_changed_observer.cc', |
| 431 | 'test/mock_devices_changed_observer.h', |
[email protected] | c4996f76 | 2011-06-28 14:29:06 | [diff] [blame] | 432 | 'test/mock_time_provider.cc', |
| 433 | 'test/mock_time_provider.h', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 434 | 'test/multiprocess_test.cc', |
| 435 | 'test/multiprocess_test.h', |
[email protected] | 99cc51e | 2010-10-10 00:21:35 | [diff] [blame] | 436 | 'test/perf_test_suite.cc', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 437 | 'test/perf_test_suite.h', |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 438 | 'test/scoped_locale.cc', |
| 439 | 'test/scoped_locale.h', |
[email protected] | ce5d047 | 2012-04-02 10:16:55 | [diff] [blame] | 440 | 'test/sequenced_task_runner_test_template.cc', |
| 441 | 'test/sequenced_task_runner_test_template.h', |
[email protected] | c8cae7c | 2012-03-09 06:20:18 | [diff] [blame] | 442 | 'test/task_runner_test_template.cc', |
| 443 | 'test/task_runner_test_template.h', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 444 | 'test/test_file_util.h', |
| 445 | 'test/test_file_util_linux.cc', |
| 446 | 'test/test_file_util_mac.cc', |
| 447 | 'test/test_file_util_posix.cc', |
| 448 | 'test/test_file_util_win.cc', |
[email protected] | a8f8588 | 2011-08-24 20:02:42 | [diff] [blame] | 449 | 'test/test_reg_util_win.cc', |
| 450 | 'test/test_reg_util_win.h', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 451 | 'test/test_suite.cc', |
| 452 | 'test/test_suite.h', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 453 | 'test/test_stub_android.cc', |
[email protected] | cbb9f50f | 2010-10-05 19:03:05 | [diff] [blame] | 454 | 'test/test_switches.cc', |
| 455 | 'test/test_switches.h', |
| 456 | 'test/test_timeouts.cc', |
| 457 | 'test/test_timeouts.h', |
[email protected] | 8aaae7b | 2011-06-28 06:43:20 | [diff] [blame] | 458 | 'test/thread_test_helper.cc', |
| 459 | 'test/thread_test_helper.h', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 460 | 'test/trace_event_analyzer.cc', |
| 461 | 'test/trace_event_analyzer.h', |
[email protected] | 6085ccd | 2012-02-29 03:57:29 | [diff] [blame] | 462 | 'test/values_test_util.cc', |
| 463 | 'test/values_test_util.h', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 464 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 465 | }, |
| 466 | { |
[email protected] | 0197164 | 2012-03-07 14:39:56 | [diff] [blame] | 467 | 'target_name': 'base_unittests_run', |
| 468 | 'type': 'none', |
| 469 | 'dependencies': [ |
| 470 | 'base_unittests', |
| 471 | ], |
[email protected] | 256f4bd | 2012-04-12 01:59:29 | [diff] [blame] | 472 | 'includes': [ |
| 473 | 'base_unittests.isolate', |
| 474 | ], |
[email protected] | 0197164 | 2012-03-07 14:39:56 | [diff] [blame] | 475 | 'actions': [ |
| 476 | { |
[email protected] | 0a88a65 | 2012-03-09 00:34:45 | [diff] [blame] | 477 | 'action_name': 'isolate', |
| 478 | 'inputs': [ |
[email protected] | 256f4bd | 2012-04-12 01:59:29 | [diff] [blame] | 479 | 'base_unittests.isolate', |
| 480 | '<@(isolate_dependency_tracked)', |
[email protected] | 0a88a65 | 2012-03-09 00:34:45 | [diff] [blame] | 481 | ], |
| 482 | 'outputs': [ |
[email protected] | 0197164 | 2012-03-07 14:39:56 | [diff] [blame] | 483 | '<(PRODUCT_DIR)/base_unittests.results', |
| 484 | ], |
| 485 | 'action': [ |
| 486 | 'python', |
[email protected] | 256f4bd | 2012-04-12 01:59:29 | [diff] [blame] | 487 | '../tools/isolate/isolate.py', |
| 488 | '--mode', '<(tests_run)', |
[email protected] | 5b790354 | 2012-04-23 03:05:36 | [diff] [blame] | 489 | '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
| 490 | '--variable', 'OS', '<(OS)', |
[email protected] | 0197164 | 2012-03-07 14:39:56 | [diff] [blame] | 491 | '--result', '<@(_outputs)', |
[email protected] | 256f4bd | 2012-04-12 01:59:29 | [diff] [blame] | 492 | 'base_unittests.isolate', |
[email protected] | 0197164 | 2012-03-07 14:39:56 | [diff] [blame] | 493 | ], |
| 494 | }, |
| 495 | ], |
| 496 | }, |
| 497 | { |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 498 | 'target_name': 'test_support_perf', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 499 | 'type': 'static_library', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 500 | 'dependencies': [ |
| 501 | 'base', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 502 | '../testing/gtest.gyp:gtest', |
| 503 | ], |
| 504 | 'sources': [ |
| 505 | 'perftimer.cc', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 506 | 'test/run_all_perftests.cc', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 507 | ], |
| 508 | 'direct_dependent_settings': { |
| 509 | 'defines': [ |
| 510 | 'PERF_TEST', |
| 511 | ], |
| 512 | }, |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 513 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 514 | ['toolkit_uses_gtk==1', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 515 | 'dependencies': [ |
| 516 | # Needed to handle the #include chain: |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 517 | # base/test/perf_test_suite.h |
| 518 | # base/test/test_suite.h |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 519 | # gtk/gtk.h |
| 520 | '../build/linux/system.gyp:gtk', |
| 521 | ], |
| 522 | }], |
| 523 | ], |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 524 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 525 | ], |
| 526 | 'conditions': [ |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 527 | ['OS == "android"', { |
| 528 | 'targets': [ |
| 529 | { |
| 530 | 'target_name': 'base_jni_headers', |
| 531 | 'type': 'none', |
| 532 | 'variables': { |
| 533 | 'java_sources': [ |
| 534 | 'android/java/org/chromium/base/BuildInfo.java', |
| 535 | 'android/java/org/chromium/base/PathUtils.java', |
| 536 | 'android/java/org/chromium/base/SystemMessageHandler.java', |
| 537 | ], |
| 538 | 'jni_headers': [ |
| 539 | '<(SHARED_INTERMEDIATE_DIR)/base/jni/build_info_jni.h', |
| 540 | '<(SHARED_INTERMEDIATE_DIR)/base/jni/path_utils_jni.h', |
| 541 | '<(SHARED_INTERMEDIATE_DIR)/base/jni/system_message_handler_jni.h', |
| 542 | ], |
| 543 | }, |
| 544 | 'includes': [ '../build/jni_generator.gypi' ], |
| 545 | }, |
| 546 | { |
| 547 | 'target_name': 'base_java', |
| 548 | 'type': 'none', |
| 549 | 'variables': { |
| 550 | 'package_name': 'base', |
| 551 | 'java_in_dir': 'android/java', |
| 552 | }, |
| 553 | 'includes': [ '../build/java.gypi' ], |
| 554 | }, |
| 555 | ], |
| 556 | }], |
[email protected] | 06ff3c5 | 2012-03-01 01:58:05 | [diff] [blame] | 557 | ['OS == "win"', { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 558 | 'targets': [ |
| 559 | { |
| 560 | 'target_name': 'debug_message', |
| 561 | 'type': 'executable', |
| 562 | 'sources': [ |
| 563 | 'debug_message.cc', |
| 564 | ], |
[email protected] | 3f8bfc36 | 2009-05-22 02:39:14 | [diff] [blame] | 565 | 'msvs_settings': { |
| 566 | 'VCLinkerTool': { |
| 567 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 568 | }, |
| 569 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 570 | }, |
| 571 | ], |
| 572 | }], |
[email protected] | 06ff3c5 | 2012-03-01 01:58:05 | [diff] [blame] | 573 | ['OS=="mac"', { |
| 574 | 'targets': [ |
| 575 | { |
| 576 | 'target_name': 'closure_blocks_leopard_compat', |
| 577 | 'sources': [ |
| 578 | 'mac/closure_blocks_leopard_compat.h', |
| 579 | ], |
| 580 | 'conditions': [ |
| 581 | ['mac_sdk == "10.5"', { |
| 582 | 'type': 'shared_library', |
| 583 | 'product_name': 'closure_blocks_leopard_compat_stub', |
| 584 | 'variables': { |
| 585 | # This target controls stripping directly. See below. |
| 586 | 'mac_strip': 0, |
| 587 | }, |
| 588 | 'sources': [ |
| 589 | 'mac/closure_blocks_leopard_compat.S', |
| 590 | ], |
| 591 | 'xcode_settings': { |
| 592 | # These values are taken from libSystem.dylib in the 10.5 |
| 593 | # SDK. Setting LD_DYLIB_INSTALL_NAME causes anything linked |
| 594 | # against this stub library to look for the symbols it |
| 595 | # provides in the real libSystem at runtime. When using ld |
| 596 | # from Xcode 4 or later (ld64-123.2 and up), giving two |
| 597 | # libraries with the same "install name" to the linker will |
| 598 | # cause it to print "ld: warning: dylibs with same install |
| 599 | # name". This is harmless, and ld will behave as intended |
| 600 | # here. |
| 601 | # |
| 602 | # The real library's compatibility version is used, and the |
| 603 | # value of the current version from the SDK is used to make |
| 604 | # it appear as though anything linked against this stub was |
| 605 | # linked against the real thing. |
| 606 | 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib', |
| 607 | 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', |
| 608 | 'DYLIB_CURRENT_VERSION': '111.1.4', |
| 609 | |
| 610 | # Turn on stripping (yes, even in debug mode), and add the -c |
| 611 | # flag. This is what produces a stub library (MH_DYLIB_STUB) |
| 612 | # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files |
| 613 | # contain symbol tables and everything else needed for |
| 614 | # linking, but are stripped of section contents. This is the |
| 615 | # same way that the stub libraries in Mac OS X SDKs are |
| 616 | # created. dyld will refuse to load a stub library, so this |
| 617 | # provides some insurance in case anyone tries to load the |
| 618 | # stub at runtime. |
| 619 | 'DEPLOYMENT_POSTPROCESSING': 'YES', |
| 620 | 'STRIP_STYLE': 'non-global', |
| 621 | 'STRIPFLAGS': '-c', |
| 622 | }, |
| 623 | }, { # else: mac_sdk != "10.5" |
| 624 | # When using the 10.6 SDK or newer, the necessary definitions |
| 625 | # are already present in libSystem.dylib. There is no need to |
| 626 | # build a stub dylib to provide these symbols at link time. |
| 627 | # This target is still useful to cause those symbols to be |
| 628 | # treated as weak imports in dependents, who still must |
| 629 | # #include closure_blocks_leopard_compat.h to get weak imports. |
| 630 | 'type': 'none', |
| 631 | }], |
| 632 | ], |
| 633 | }, |
| 634 | ], |
| 635 | }], |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 636 | # Special target to wrap a <(gtest_target_type)==shared_library |
| 637 | # base_unittests into an android apk for execution. |
| 638 | # TODO(jrg): lib.target comes from _InstallableTargetInstallPath() |
| 639 | # in the gyp make generator. What is the correct way to extract |
| 640 | # this path from gyp and into 'raw' for input to antfiles? |
| 641 | # Hard-coding in the gypfile seems a poor choice. |
| 642 | # TODO(jrg): there has to be a shorter way to do all this. Try |
| 643 | # and convert this entire target cluster into ~5 lines that can be |
| 644 | # trivially copied to other projects with only a deps change, such |
| 645 | # as with a new gtest_target_type called |
| 646 | # 'shared_library_apk_wrapper' that does a lot of this magically. |
| 647 | ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { |
| 648 | 'targets': [ |
| 649 | { |
| 650 | 'target_name': 'base_unittests_apk', |
| 651 | 'type': 'none', |
| 652 | 'dependencies': [ |
| 653 | 'base', # So that android/java/java.gyp:base_java is built |
| 654 | 'base_unittests', |
| 655 | ], |
| 656 | 'actions': [ |
| 657 | { |
| 658 | # Generate apk files (including source and antfile) from |
| 659 | # a template, and builds them. |
| 660 | 'action_name': 'generate_and_build', |
| 661 | 'inputs': [ |
| 662 | '../testing/android/generate_native_test.py', |
| 663 | '<(PRODUCT_DIR)/lib.target/libbase_unittests.so', |
| 664 | '<(PRODUCT_DIR)/chromium_base.jar' |
| 665 | ], |
| 666 | 'outputs': [ |
| 667 | '<(PRODUCT_DIR)/ChromeNativeTests_base_unittests-debug.apk', |
| 668 | ], |
| 669 | 'action': [ |
| 670 | '../testing/android/generate_native_test.py', |
| 671 | '--native_library', |
| 672 | '<(PRODUCT_DIR)/lib.target/libbase_unittests.so', |
| 673 | '--jar', |
| 674 | '<(PRODUCT_DIR)/chromium_base.jar', |
| 675 | '--output', |
| 676 | '<(PRODUCT_DIR)/base_unittests_apk', |
| 677 | '--ant-args', |
| 678 | '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
| 679 | '--ant-compile' |
| 680 | ], |
| 681 | }, |
| 682 | ] |
| 683 | }], |
| 684 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 685 | ], |
| 686 | } |