[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] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 15 | 'target_name': 'base', |
| 16 | 'type': '<(component)', |
| 17 | 'toolsets': ['host', 'target'], |
| 18 | 'variables': { |
| 19 | 'base_target': 1, |
| 20 | 'enable_wexit_time_destructors': 1, |
| 21 | 'optimize': 'max', |
| 22 | }, |
| 23 | 'dependencies': [ |
| 24 | 'base_static', |
| 25 | 'allocator/allocator.gyp:allocator_extension_thunks', |
| 26 | '../testing/gtest.gyp:gtest_prod', |
| 27 | '../third_party/modp_b64/modp_b64.gyp:modp_b64', |
| 28 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 29 | ], |
| 30 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 31 | # 64-bit target, but it doesn't work due to a bug in gyp |
| 32 | 'direct_dependent_settings': { |
| 33 | 'include_dirs': [ |
| 34 | '..', |
| 35 | ], |
| 36 | }, |
| 37 | 'conditions': [ |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 38 | ['use_glib==1', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 39 | 'conditions': [ |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 40 | ['chromeos==1', { |
| 41 | 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
| 42 | }], |
| 43 | ['linux_use_tcmalloc==0', { |
| 44 | 'defines': [ |
| 45 | 'NO_TCMALLOC', |
| 46 | ], |
| 47 | 'direct_dependent_settings': { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 48 | 'defines': [ |
| 49 | 'NO_TCMALLOC', |
| 50 | ], |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 51 | }, |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 52 | }], |
| 53 | ['toolkit_uses_gtk==1', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 54 | 'dependencies': [ |
| 55 | '../build/linux/system.gyp:gtk', |
| 56 | ], |
| 57 | 'export_dependent_settings': [ |
| 58 | '../build/linux/system.gyp:gtk', |
| 59 | ], |
| 60 | }], |
| 61 | ], |
| 62 | 'dependencies': [ |
| 63 | 'symbolize', |
| 64 | '../build/linux/system.gyp:glib', |
| 65 | '../build/linux/system.gyp:x11', |
| 66 | 'xdg_mime', |
| 67 | ], |
| 68 | 'defines': [ |
| 69 | 'USE_SYMBOLIZE', |
| 70 | ], |
| 71 | 'cflags': [ |
| 72 | '-Wno-write-strings', |
| 73 | ], |
| 74 | 'export_dependent_settings': [ |
| 75 | '../build/linux/system.gyp:glib', |
| 76 | '../build/linux/system.gyp:x11', |
| 77 | ], |
| 78 | }, { # use_glib!=1 |
| 79 | 'sources/': [ |
| 80 | ['exclude', '/xdg_user_dirs/'], |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 81 | ['exclude', '_nss\\.cc$'], |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 82 | ], |
| 83 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 84 | ['OS == "android" and _toolset == "host"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 85 | # Base for host support is the minimum required to run the |
| 86 | # ssl false start blacklist tool. It requires further changes |
| 87 | # to generically support host builds (and tests). |
| 88 | # Note: when building for host, gyp has OS == "android", |
| 89 | # hence the *_android.cc files are included but the actual code |
| 90 | # doesn't have OS_ANDROID / ANDROID defined. |
| 91 | 'conditions': [ |
| 92 | # Host build on linux depends on system.gyp::gtk as |
| 93 | # default linux build has TOOLKIT_GTK defined. |
| 94 | ['host_os == "linux"', { |
| 95 | 'sources/': [ |
| 96 | ['include', '^atomicops_internals_x86_gcc\\.cc$'], |
| 97 | ], |
| 98 | 'dependencies': [ |
| 99 | '../build/linux/system.gyp:gtk', |
| 100 | ], |
| 101 | 'export_dependent_settings': [ |
| 102 | '../build/linux/system.gyp:gtk', |
| 103 | ], |
| 104 | }], |
| 105 | ['host_os == "mac"', { |
| 106 | 'sources/': [ |
| 107 | ['exclude', '^native_library_linux\\.cc$'], |
| 108 | ['exclude', '^process_util_linux\\.cc$'], |
| 109 | ['exclude', '^sys_info_linux\\.cc$'], |
| 110 | ['exclude', '^sys_string_conversions_linux\\.cc$'], |
| 111 | ['exclude', '^worker_pool_linux\\.cc$'], |
| 112 | ], |
| 113 | }], |
| 114 | ], |
| 115 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 116 | ['OS == "android" and _toolset == "target"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 117 | 'conditions': [ |
| 118 | ['target_arch == "ia32"', { |
| 119 | 'sources/': [ |
| 120 | ['include', '^atomicops_internals_x86_gcc\\.cc$'], |
| 121 | ], |
| 122 | }], |
| 123 | ], |
| 124 | 'dependencies': [ |
| 125 | 'symbolize', |
| 126 | '../third_party/ashmem/ashmem.gyp:ashmem', |
| 127 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 128 | 'base_jni_headers', |
| 129 | ], |
| 130 | 'include_dirs': [ |
| 131 | '<(SHARED_INTERMEDIATE_DIR)/base', |
| 132 | ], |
| 133 | 'link_settings': { |
| 134 | 'libraries': [ |
| 135 | '-llog', |
| 136 | ], |
| 137 | }, |
| 138 | 'defines': [ |
| 139 | 'USE_SYMBOLIZE', |
| 140 | ], |
| 141 | 'sources!': [ |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 142 | 'debug/stack_trace_posix.cc', |
| 143 | ], |
| 144 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 145 | ['os_bsd==1', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 146 | 'include_dirs': [ |
| 147 | '/usr/local/include', |
| 148 | ], |
| 149 | 'link_settings': { |
| 150 | 'libraries': [ |
| 151 | '-L/usr/local/lib -lexecinfo', |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 152 | ], |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 153 | }, |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 154 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 155 | ['OS == "linux"', { |
| 156 | 'link_settings': { |
| 157 | 'libraries': [ |
| 158 | # We need rt for clock_gettime(). |
| 159 | '-lrt', |
| 160 | # For 'native_library_linux.cc' |
| 161 | '-ldl', |
| 162 | ], |
| 163 | }, |
| 164 | }], |
| 165 | ['OS == "mac"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 166 | 'link_settings': { |
| 167 | 'libraries': [ |
| 168 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
[email protected] | 04a0754 | 2012-07-23 16:51:25 | [diff] [blame] | 169 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 170 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 171 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 172 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 173 | '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
| 174 | '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 175 | ], |
| 176 | }, |
| 177 | 'dependencies': [ |
| 178 | '../third_party/mach_override/mach_override.gyp:mach_override', |
| 179 | ], |
| 180 | }], |
[email protected] | 62cafe0 | 2012-07-15 14:24:46 | [diff] [blame] | 181 | ['OS == "ios"', { |
| 182 | 'link_settings': { |
| 183 | 'libraries': [ |
| 184 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
[email protected] | de6bb90 | 2012-07-25 11:07:44 | [diff] [blame] | 185 | '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
| 186 | '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
[email protected] | 62cafe0 | 2012-07-15 14:24:46 | [diff] [blame] | 187 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 188 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 189 | ], |
| 190 | }, |
| 191 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 192 | ['OS != "win"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 193 | 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
| 194 | },], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 195 | ['component=="shared_library"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 196 | 'conditions': [ |
| 197 | ['OS=="win"', { |
| 198 | 'sources!': [ |
| 199 | 'debug/debug_on_start_win.cc', |
| 200 | ], |
| 201 | }], |
| 202 | ], |
| 203 | }], |
| 204 | ], |
| 205 | 'sources': [ |
| 206 | 'third_party/nspr/prcpucfg.h', |
| 207 | 'third_party/nspr/prcpucfg_win.h', |
| 208 | 'third_party/nspr/prtypes.h', |
| 209 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', |
| 210 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', |
| 211 | 'auto_reset.h', |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 212 | 'event_recorder.h', |
| 213 | 'event_recorder_stubs.cc', |
| 214 | 'event_recorder_win.cc', |
| 215 | 'file_descriptor_shuffle.cc', |
| 216 | 'file_descriptor_shuffle.h', |
| 217 | 'linux_util.cc', |
| 218 | 'linux_util.h', |
| 219 | 'md5.cc', |
| 220 | 'md5.h', |
| 221 | 'message_pump_android.cc', |
| 222 | 'message_pump_android.h', |
| 223 | 'message_pump_glib.cc', |
| 224 | 'message_pump_glib.h', |
| 225 | 'message_pump_gtk.cc', |
| 226 | 'message_pump_gtk.h', |
| 227 | 'message_pump_observer.h', |
| 228 | 'message_pump_aurax11.cc', |
| 229 | 'message_pump_aurax11.h', |
| 230 | 'message_pump_libevent.cc', |
| 231 | 'message_pump_libevent.h', |
| 232 | 'message_pump_mac.h', |
| 233 | 'message_pump_mac.mm', |
| 234 | 'metrics/field_trial.cc', |
| 235 | 'metrics/field_trial.h', |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 236 | 'sync_socket.h', |
| 237 | 'sync_socket_win.cc', |
| 238 | 'sync_socket_posix.cc', |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 239 | ], |
| 240 | }, |
| 241 | { |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 242 | 'target_name': 'base_i18n', |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 243 | 'type': '<(component)', |
[email protected] | 1d88ef3 | 2011-12-20 19:59:10 | [diff] [blame] | 244 | 'variables': { |
| 245 | 'enable_wexit_time_destructors': 1, |
| 246 | 'optimize': 'max', |
| 247 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 248 | 'dependencies': [ |
| 249 | 'base', |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 250 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 251 | '../third_party/icu/icu.gyp:icui18n', |
| 252 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 253 | ], |
[email protected] | 8f6f202 | 2010-03-22 21:24:57 | [diff] [blame] | 254 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 255 | ['toolkit_uses_gtk==1', { |
[email protected] | 8f6f202 | 2010-03-22 21:24:57 | [diff] [blame] | 256 | 'dependencies': [ |
| 257 | # i18n/rtl.cc uses gtk |
| 258 | '../build/linux/system.gyp:gtk', |
| 259 | ], |
| 260 | }], |
| 261 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 262 | 'export_dependent_settings': [ |
| 263 | 'base', |
| 264 | ], |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 265 | 'defines': [ |
| 266 | 'BASE_I18N_IMPLEMENTATION', |
| 267 | ], |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 268 | 'sources': [ |
[email protected] | c743d4c7 | 2011-08-31 22:15:48 | [diff] [blame] | 269 | 'i18n/base_i18n_export.h', |
[email protected] | 14cd2e6 | 2011-02-24 09:20:16 | [diff] [blame] | 270 | 'i18n/bidi_line_iterator.cc', |
| 271 | 'i18n/bidi_line_iterator.h', |
[email protected] | 55954d89 | 2010-12-15 18:00:54 | [diff] [blame] | 272 | 'i18n/break_iterator.cc', |
| 273 | 'i18n/break_iterator.h', |
[email protected] | 0ca5c10 | 2010-08-23 14:30:27 | [diff] [blame] | 274 | 'i18n/char_iterator.cc', |
| 275 | 'i18n/char_iterator.h', |
[email protected] | 503d0387 | 2011-05-06 08:36:26 | [diff] [blame] | 276 | 'i18n/case_conversion.cc', |
| 277 | 'i18n/case_conversion.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 278 | 'i18n/file_util_icu.cc', |
| 279 | 'i18n/file_util_icu.h', |
[email protected] | 193c351 | 2010-05-11 09:19:30 | [diff] [blame] | 280 | 'i18n/icu_encoding_detection.cc', |
| 281 | 'i18n/icu_encoding_detection.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 282 | 'i18n/icu_string_conversions.cc', |
| 283 | 'i18n/icu_string_conversions.h', |
| 284 | 'i18n/icu_util.cc', |
| 285 | 'i18n/icu_util.h', |
| 286 | 'i18n/number_formatting.cc', |
| 287 | 'i18n/number_formatting.h', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 288 | 'i18n/rtl.cc', |
| 289 | 'i18n/rtl.h', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 290 | 'i18n/string_search.cc', |
| 291 | 'i18n/string_search.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 292 | 'i18n/time_formatting.cc', |
| 293 | 'i18n/time_formatting.h', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 294 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 295 | }, |
| 296 | { |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 297 | # 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] | 298 | # dynamic library. Note that this library cannot depend on base because |
| 299 | # base depends on base_static. |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 300 | 'target_name': 'base_static', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 301 | 'type': 'static_library', |
[email protected] | 1d88ef3 | 2011-12-20 19:59:10 | [diff] [blame] | 302 | 'variables': { |
| 303 | 'enable_wexit_time_destructors': 1, |
| 304 | 'optimize': 'max', |
| 305 | }, |
[email protected] | e688d9c | 2011-09-15 21:17:32 | [diff] [blame] | 306 | 'toolsets': ['host', 'target'], |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 307 | 'sources': [ |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 308 | 'base_switches.cc', |
| 309 | 'base_switches.h', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 310 | 'win/pe_image.cc', |
| 311 | 'win/pe_image.h', |
| 312 | ], |
| 313 | 'include_dirs': [ |
| 314 | '..', |
| 315 | ], |
| 316 | }, |
| 317 | { |
| 318 | # TODO(rvargas): Remove this when gyp finally supports a clean model. |
| 319 | # See bug 36232. |
| 320 | 'target_name': 'base_static_win64', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 321 | 'type': 'static_library', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 322 | 'sources': [ |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 323 | 'base_switches.cc', |
| 324 | 'base_switches.h', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 325 | 'win/pe_image.cc', |
| 326 | 'win/pe_image.h', |
| 327 | ], |
[email protected] | 1968d977 | 2012-07-26 22:53:13 | [diff] [blame] | 328 | 'sources!': [ |
| 329 | # base64.cc depends on modp_b64. |
| 330 | 'base64.cc', |
| 331 | ], |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 332 | 'include_dirs': [ |
| 333 | '..', |
| 334 | ], |
| 335 | 'configurations': { |
| 336 | 'Common_Base': { |
| 337 | 'msvs_target_platform': 'x64', |
| 338 | }, |
| 339 | }, |
| 340 | 'defines': [ |
| 341 | 'NACL_WIN64', |
| 342 | ], |
| 343 | # TODO(rvargas): Bug 78117. Remove this. |
| 344 | 'msvs_disabled_warnings': [ |
| 345 | 4244, |
| 346 | ], |
| 347 | }, |
[email protected] | c554906 | 2012-03-21 05:55:06 | [diff] [blame] | 348 | # Include this target for a main() function that simply instantiates |
| 349 | # and runs a base::TestSuite. |
| 350 | { |
| 351 | 'target_name': 'run_all_unittests', |
| 352 | 'type': 'static_library', |
| 353 | 'dependencies': [ |
| 354 | 'test_support_base', |
| 355 | ], |
| 356 | 'sources': [ |
| 357 | 'test/run_all_unittests.cc', |
| 358 | ], |
| 359 | }, |
[email protected] | 6fa1e7ef | 2012-03-14 11:24:04 | [diff] [blame] | 360 | { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 361 | 'target_name': 'base_unittests', |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 362 | 'type': '<(gtest_target_type)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 363 | 'sources': [ |
[email protected] | c7f475ed | 2009-09-08 17:25:40 | [diff] [blame] | 364 | # Tests. |
[email protected] | 96e7ade | 2011-12-05 14:42:08 | [diff] [blame] | 365 | 'android/jni_android_unittest.cc', |
[email protected] | 595b063 | 2012-04-26 20:19:47 | [diff] [blame] | 366 | 'android/path_utils_unittest.cc', |
[email protected] | f98d7b9 | 2011-09-09 10:17:35 | [diff] [blame] | 367 | 'android/scoped_java_ref_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 368 | 'at_exit_unittest.cc', |
| 369 | 'atomicops_unittest.cc', |
[email protected] | 978df34 | 2009-11-24 06:21:53 | [diff] [blame] | 370 | 'base64_unittest.cc', |
[email protected] | c694427 | 2012-01-06 22:12:28 | [diff] [blame] | 371 | 'bind_helpers_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 372 | 'bind_unittest.cc', |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 373 | 'bind_unittest.nc', |
[email protected] | 6d1729e | 2009-11-18 23:08:39 | [diff] [blame] | 374 | 'bits_unittest.cc', |
[email protected] | 08aa0276 | 2011-11-11 16:09:31 | [diff] [blame] | 375 | 'build_time_unittest.cc', |
[email protected] | 2041cf34 | 2010-02-19 03:15:59 | [diff] [blame] | 376 | 'callback_unittest.cc', |
[email protected] | 481915a77 | 2011-09-10 03:14:35 | [diff] [blame] | 377 | 'callback_unittest.nc', |
[email protected] | b77576f5 | 2011-11-24 04:12:04 | [diff] [blame] | 378 | 'cancelable_callback_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 379 | 'command_line_unittest.cc', |
[email protected] | 14cd2e6 | 2011-02-24 09:20:16 | [diff] [blame] | 380 | 'cpu_unittest.cc', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 381 | 'debug/leak_tracker_unittest.cc', |
| 382 | 'debug/stack_trace_unittest.cc', |
[email protected] | 366ae24 | 2011-05-10 02:23:58 | [diff] [blame] | 383 | 'debug/trace_event_unittest.cc', |
[email protected] | e91ce80 | 2012-08-16 04:32:49 | [diff] [blame] | 384 | 'debug/trace_event_unittest.h', |
[email protected] | 5858035 | 2010-10-26 04:07:50 | [diff] [blame] | 385 | 'debug/trace_event_win_unittest.cc', |
[email protected] | 76b90d31 | 2010-08-03 03:00:50 | [diff] [blame] | 386 | 'environment_unittest.cc', |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 387 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 388 | 'file_path_unittest.cc', |
[email protected] | 77e07b84 | 2012-04-23 18:40:57 | [diff] [blame] | 389 | 'file_util_proxy_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 390 | 'file_util_unittest.cc', |
| 391 | 'file_version_info_unittest.cc', |
[email protected] | d88e17f | 2012-06-29 21:09:14 | [diff] [blame] | 392 | 'files/dir_reader_posix_unittest.cc', |
[email protected] | d5bb49f | 2009-05-30 14:39:59 | [diff] [blame] | 393 | 'gmock_unittest.cc', |
[email protected] | 7e49ad3 | 2012-06-14 14:22:07 | [diff] [blame] | 394 | 'guid_unittest.cc', |
[email protected] | b3aabd34 | 2012-06-04 19:33:56 | [diff] [blame] | 395 | 'hi_res_timer_manager_unittest.cc', |
[email protected] | 925d5d60 | 2009-08-19 14:56:38 | [diff] [blame] | 396 | 'id_map_unittest.cc', |
[email protected] | 55954d89 | 2010-12-15 18:00:54 | [diff] [blame] | 397 | 'i18n/break_iterator_unittest.cc', |
[email protected] | 0ca5c10 | 2010-08-23 14:30:27 | [diff] [blame] | 398 | 'i18n/char_iterator_unittest.cc', |
[email protected] | 503d0387 | 2011-05-06 08:36:26 | [diff] [blame] | 399 | 'i18n/case_conversion_unittest.cc', |
[email protected] | d0767cb54 | 2009-10-08 17:38:30 | [diff] [blame] | 400 | 'i18n/file_util_icu_unittest.cc', |
[email protected] | d6e58c6e | 2009-10-10 20:40:50 | [diff] [blame] | 401 | 'i18n/icu_string_conversions_unittest.cc', |
[email protected] | 7a3b263 | 2011-06-22 20:40:22 | [diff] [blame] | 402 | 'i18n/number_formatting_unittest.cc', |
[email protected] | 7cf1b6ce | 2010-03-20 06:37:01 | [diff] [blame] | 403 | 'i18n/rtl_unittest.cc', |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 404 | 'i18n/string_search_unittest.cc', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 405 | 'i18n/time_formatting_unittest.cc', |
[email protected] | e16e873 | 2012-08-07 11:03:11 | [diff] [blame] | 406 | 'ios/device_util_unittest.mm', |
[email protected] | 6e680cf | 2012-05-16 15:23:30 | [diff] [blame] | 407 | 'json/json_parser_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 408 | 'json/json_reader_unittest.cc', |
[email protected] | 193f946b | 2011-12-22 18:31:47 | [diff] [blame] | 409 | 'json/json_value_converter_unittest.cc', |
[email protected] | 8d77b63 | 2011-11-17 16:17:23 | [diff] [blame] | 410 | 'json/json_value_serializer_unittest.cc', |
[email protected] | 93d49d7 | 2009-10-23 20:00:20 | [diff] [blame] | 411 | 'json/json_writer_unittest.cc', |
| 412 | 'json/string_escape_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 413 | 'lazy_instance_unittest.cc', |
[email protected] | 48ca901 | 2009-08-11 21:38:54 | [diff] [blame] | 414 | 'linked_list_unittest.cc', |
[email protected] | 521b0c4 | 2010-10-01 23:02:36 | [diff] [blame] | 415 | 'logging_unittest.cc', |
[email protected] | a5e2cd18 | 2012-07-25 17:47:58 | [diff] [blame] | 416 | 'mac/bind_objc_block_unittest.mm', |
[email protected] | 28f5649 | 2011-10-19 00:36:56 | [diff] [blame] | 417 | 'mac/foundation_util_unittest.mm', |
[email protected] | 0378bf4 | 2011-01-01 18:20:14 | [diff] [blame] | 418 | 'mac/mac_util_unittest.mm', |
[email protected] | 10756c5 | 2011-04-20 22:30:35 | [diff] [blame] | 419 | 'mac/objc_property_releaser_unittest.mm', |
[email protected] | d47af217 | 2011-12-01 23:56:17 | [diff] [blame] | 420 | 'mac/scoped_sending_event_unittest.mm', |
[email protected] | 47f19be | 2011-04-25 23:54:07 | [diff] [blame] | 421 | 'md5_unittest.cc', |
[email protected] | cd924d6 | 2012-02-23 17:52:20 | [diff] [blame] | 422 | 'memory/aligned_memory_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 423 | 'memory/linked_ptr_unittest.cc', |
[email protected] | b4ae444 | 2011-04-27 18:37:03 | [diff] [blame] | 424 | 'memory/mru_cache_unittest.cc', |
[email protected] | 1dda977 | 2011-07-22 13:22:23 | [diff] [blame] | 425 | 'memory/ref_counted_memory_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 426 | 'memory/ref_counted_unittest.cc', |
[email protected] | 656d2ab1 | 2012-02-09 09:50:58 | [diff] [blame] | 427 | 'memory/scoped_nsobject_unittest.mm', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 428 | 'memory/scoped_ptr_unittest.cc', |
[email protected] | 6e29d6f3 | 2012-01-25 00:33:05 | [diff] [blame] | 429 | 'memory/scoped_ptr_unittest.nc', |
[email protected] | e5721c18 | 2011-03-28 22:27:34 | [diff] [blame] | 430 | 'memory/scoped_vector_unittest.cc', |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 431 | 'memory/singleton_unittest.cc', |
| 432 | 'memory/weak_ptr_unittest.cc', |
[email protected] | 4c44b844 | 2012-06-15 16:36:12 | [diff] [blame] | 433 | 'memory/weak_ptr_unittest.nc', |
[email protected] | 656475d | 2010-05-06 18:34:24 | [diff] [blame] | 434 | 'message_loop_proxy_impl_unittest.cc', |
[email protected] | c31af70db2 | 2011-08-18 23:13:01 | [diff] [blame] | 435 | 'message_loop_proxy_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 436 | 'message_loop_unittest.cc', |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 437 | 'message_pump_glib_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 438 | 'message_pump_libevent_unittest.cc', |
[email protected] | 4a32f12 | 2012-07-25 20:02:48 | [diff] [blame] | 439 | 'metrics/bucket_ranges_unittest.cc', |
[email protected] | 835d7c8 | 2010-10-14 04:38:38 | [diff] [blame] | 440 | 'metrics/field_trial_unittest.cc', |
| 441 | 'metrics/histogram_unittest.cc', |
[email protected] | 7c7a4275 | 2012-08-09 05:14:15 | [diff] [blame] | 442 | 'metrics/sparse_histogram_unittest.cc', |
[email protected] | 835d7c8 | 2010-10-14 04:38:38 | [diff] [blame] | 443 | 'metrics/stats_table_unittest.cc', |
[email protected] | 34d06232 | 2012-08-01 21:34:08 | [diff] [blame] | 444 | 'metrics/statistics_recorder_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 445 | 'observer_list_unittest.cc', |
[email protected] | 80e61cc | 2012-07-18 17:26:50 | [diff] [blame] | 446 | 'os_compat_android_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 447 | 'path_service_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 448 | 'pickle_unittest.cc', |
[email protected] | 3fb43ed1 | 2010-09-10 03:01:14 | [diff] [blame] | 449 | 'platform_file_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 450 | 'pr_time_unittest.cc', |
| 451 | 'process_util_unittest.cc', |
[email protected] | b80ffe2 | 2012-07-11 15:35:02 | [diff] [blame] | 452 | 'process_util_unittest_ios.cc', |
[email protected] | 9f95844 | 2010-03-19 18:42:41 | [diff] [blame] | 453 | 'process_util_unittest_mac.h', |
| 454 | 'process_util_unittest_mac.mm', |
[email protected] | dbe5d207 | 2011-11-08 17:09:21 | [diff] [blame] | 455 | 'profiler/tracked_time_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 456 | 'rand_util_unittest.cc', |
[email protected] | e078590 | 2011-05-19 23:34:17 | [diff] [blame] | 457 | 'scoped_native_library_unittest.cc', |
[email protected] | 28f57b3 | 2012-06-22 21:47:30 | [diff] [blame] | 458 | 'scoped_observer.h', |
[email protected] | e078590 | 2011-05-19 23:34:17 | [diff] [blame] | 459 | 'scoped_temp_dir_unittest.cc', |
[email protected] | c2ad1e3 | 2009-11-04 19:29:58 | [diff] [blame] | 460 | 'sha1_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 461 | 'shared_memory_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 462 | 'stack_container_unittest.cc', |
[email protected] | 3c1304e2 | 2010-11-13 20:05:47 | [diff] [blame] | 463 | 'string16_unittest.cc', |
[email protected] | 528c56d | 2010-07-30 19:28:44 | [diff] [blame] | 464 | 'string_number_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 465 | 'string_piece_unittest.cc', |
[email protected] | 0477554f | 2010-01-21 19:29:25 | [diff] [blame] | 466 | 'string_split_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 467 | 'string_tokenizer_unittest.cc', |
| 468 | 'string_util_unittest.cc', |
[email protected] | 176ab80 | 2010-11-18 02:15:12 | [diff] [blame] | 469 | 'stringize_macros_unittest.cc', |
[email protected] | e6811ed5 | 2010-08-17 03:45:37 | [diff] [blame] | 470 | 'stringprintf_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 471 | 'synchronization/cancellation_flag_unittest.cc', |
[email protected] | bc581a68 | 2011-01-01 23:16:20 | [diff] [blame] | 472 | 'synchronization/condition_variable_unittest.cc', |
| 473 | 'synchronization/lock_unittest.cc', |
[email protected] | 44f9c95 | 2011-01-02 06:05:39 | [diff] [blame] | 474 | 'synchronization/waitable_event_unittest.cc', |
| 475 | 'synchronization/waitable_event_watcher_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 476 | 'sys_info_unittest.cc', |
[email protected] | a2494cb | 2009-11-08 19:04:54 | [diff] [blame] | 477 | 'sys_string_conversions_mac_unittest.mm', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 478 | 'sys_string_conversions_unittest.cc', |
[email protected] | e41d7dd | 2011-05-18 07:29:56 | [diff] [blame] | 479 | 'system_monitor/system_monitor_unittest.cc', |
[email protected] | 95991b1 | 2012-04-17 02:48:06 | [diff] [blame] | 480 | 'task_runner_util_unittest.cc', |
[email protected] | b38d357 | 2011-02-15 01:27:38 | [diff] [blame] | 481 | 'template_util_unittest.cc', |
[email protected] | ce5d047 | 2012-04-02 10:16:55 | [diff] [blame] | 482 | 'test/sequenced_worker_pool_owner.cc', |
| 483 | 'test/sequenced_worker_pool_owner.h', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 484 | 'test/trace_event_analyzer_unittest.cc', |
[email protected] | c917750 | 2011-01-01 04:48:49 | [diff] [blame] | 485 | 'threading/non_thread_safe_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 486 | 'threading/platform_thread_unittest.cc', |
[email protected] | 098def2 | 2012-01-01 05:42:34 | [diff] [blame] | 487 | 'threading/sequenced_worker_pool_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 488 | 'threading/simple_thread_unittest.cc', |
[email protected] | ce072a7 | 2010-12-31 20:02:16 | [diff] [blame] | 489 | 'threading/thread_checker_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 490 | 'threading/thread_collision_warner_unittest.cc', |
[email protected] | 1357c32 | 2010-12-30 22:18:56 | [diff] [blame] | 491 | 'threading/thread_local_storage_unittest.cc', |
| 492 | 'threading/thread_local_unittest.cc', |
[email protected] | 34b9963 | 2011-01-01 01:01:06 | [diff] [blame] | 493 | 'threading/thread_unittest.cc', |
[email protected] | ac9ba8fe | 2010-12-30 18:08:36 | [diff] [blame] | 494 | 'threading/watchdog_unittest.cc', |
| 495 | 'threading/worker_pool_posix_unittest.cc', |
| 496 | 'threading/worker_pool_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 497 | 'time_unittest.cc', |
| 498 | 'time_win_unittest.cc', |
| 499 | 'timer_unittest.cc', |
[email protected] | 0716cba | 2009-12-17 12:37:58 | [diff] [blame] | 500 | 'tools_sanity_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 501 | 'tracked_objects_unittest.cc', |
| 502 | 'tuple_unittest.cc', |
[email protected] | b9f9383 | 2009-11-13 19:27:48 | [diff] [blame] | 503 | 'utf_offset_string_conversions_unittest.cc', |
[email protected] | ce85f60 | 2009-11-07 01:34:53 | [diff] [blame] | 504 | 'utf_string_conversions_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 505 | 'values_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 506 | 'version_unittest.cc', |
[email protected] | 99b7c57f | 2010-09-29 19:26:36 | [diff] [blame] | 507 | 'vlog_unittest.cc', |
[email protected] | f21ed6f | 2011-12-22 22:07:41 | [diff] [blame] | 508 | 'win/dllmain.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 509 | 'win/enum_variant_unittest.cc', |
[email protected] | ba50d192 | 2010-11-06 15:39:40 | [diff] [blame] | 510 | 'win/event_trace_consumer_unittest.cc', |
| 511 | 'win/event_trace_controller_unittest.cc', |
| 512 | 'win/event_trace_provider_unittest.cc', |
[email protected] | 337ca07 | 2010-11-16 15:28:45 | [diff] [blame] | 513 | 'win/i18n_unittest.cc', |
[email protected] | c43b0dc | 2011-12-03 04:31:13 | [diff] [blame] | 514 | 'win/iunknown_impl_unittest.cc', |
[email protected] | a8d1ebbe | 2011-01-01 18:26:16 | [diff] [blame] | 515 | 'win/object_watcher_unittest.cc', |
[email protected] | 2d650398 | 2010-10-17 04:41:54 | [diff] [blame] | 516 | 'win/pe_image_unittest.cc', |
| 517 | 'win/registry_unittest.cc', |
[email protected] | da00f00 | 2011-12-07 21:44:28 | [diff] [blame] | 518 | 'win/sampling_profiler_unittest.cc', |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 519 | 'win/scoped_bstr_unittest.cc', |
| 520 | 'win/scoped_comptr_unittest.cc', |
[email protected] | e8f5ff5 | 2012-04-04 19:57:50 | [diff] [blame] | 521 | 'win/scoped_process_information_unittest.cc', |
[email protected] | e1713f2 | 2012-08-27 21:19:00 | [diff] [blame^] | 522 | 'win/startup_information_unittest.cc', |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 523 | 'win/scoped_variant_unittest.cc', |
[email protected] | a8e2058 | 2010-12-31 17:18:50 | [diff] [blame] | 524 | 'win/win_util_unittest.cc', |
[email protected] | ecb924c | 2011-03-17 00:34:09 | [diff] [blame] | 525 | 'win/wrapped_window_proc_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 526 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 527 | 'dependencies': [ |
| 528 | 'base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 529 | 'base_i18n', |
[email protected] | 167d52b | 2011-04-04 22:42:46 | [diff] [blame] | 530 | 'base_static', |
[email protected] | c554906 | 2012-03-21 05:55:06 | [diff] [blame] | 531 | 'run_all_unittests', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 532 | 'test_support_base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 533 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | ce315710 | 2009-05-28 07:23:16 | [diff] [blame] | 534 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 535 | '../testing/gtest.gyp:gtest', |
[email protected] | 60e6c84 | 2011-05-30 11:45:43 | [diff] [blame] | 536 | '../third_party/icu/icu.gyp:icui18n', |
| 537 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 538 | ], |
[email protected] | 81814bce | 2011-09-10 03:03:00 | [diff] [blame] | 539 | 'includes': ['../build/nocompile.gypi'], |
| 540 | 'variables': { |
| 541 | # TODO(ajwong): Is there a way to autodetect this? |
| 542 | 'module_dir': 'base' |
| 543 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 544 | 'conditions': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 545 | ['OS == "android"', { |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 546 | 'sources!': [ |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 547 | # TODO(michaelbai): Removed the below once the fix upstreamed. |
[email protected] | 595b063 | 2012-04-26 20:19:47 | [diff] [blame] | 548 | 'debug/stack_trace_unittest.cc', |
[email protected] | 923402f3 | 2011-10-03 16:25:19 | [diff] [blame] | 549 | ], |
[email protected] | cef04bcf | 2012-02-24 00:09:38 | [diff] [blame] | 550 | 'dependencies': [ |
[email protected] | fae37d6 | 2012-03-08 12:39:13 | [diff] [blame] | 551 | 'android/jni_generator/jni_generator.gyp:jni_generator_tests', |
[email protected] | cef04bcf | 2012-02-24 00:09:38 | [diff] [blame] | 552 | ], |
[email protected] | 595b063 | 2012-04-26 20:19:47 | [diff] [blame] | 553 | 'conditions': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 554 | ['gtest_target_type == "shared_library"', { |
[email protected] | 595b063 | 2012-04-26 20:19:47 | [diff] [blame] | 555 | 'dependencies': [ |
| 556 | '../testing/android/native_test.gyp:native_test_native_code', |
| 557 | ], |
[email protected] | 595b063 | 2012-04-26 20:19:47 | [diff] [blame] | 558 | }], |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 559 | ], |
| 560 | }], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 561 | ['OS == "ios"', { |
| 562 | 'sources/': [ |
| 563 | # Only test the iOS-meaningful portion of process_utils. |
| 564 | ['exclude', '^process_util_unittest'], |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 565 | ['include', '^process_util_unittest_ios\\.cc$'], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 566 | # Requires spawning processes. |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 567 | ['exclude', '^metrics/stats_table_unittest\\.cc$'], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 568 | # TODO(ios): Remove these as base/ is unforked. |
| 569 | # For now, exclude everything that doesn't build as-is, just to |
| 570 | # get a minimal target building. |
[email protected] | 4a32f12 | 2012-07-25 20:02:48 | [diff] [blame] | 571 | # Unittests that don't pass. |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 572 | ['exclude', '^message_loop_unittest\\.cc$'], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 573 | ], |
[email protected] | da19703b | 2012-07-17 14:15:34 | [diff] [blame] | 574 | 'actions': [ |
| 575 | { |
| 576 | 'action_name': 'copy_test_data', |
| 577 | 'variables': { |
| 578 | 'test_data_files': [ |
| 579 | 'data/json/bom_feff.json', |
| 580 | 'data/file_util_unittest', |
| 581 | ], |
| 582 | 'test_data_prefix': 'base', |
| 583 | }, |
| 584 | 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 585 | }, |
| 586 | ], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 587 | }], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 588 | ['use_glib==1', { |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 589 | 'sources!': [ |
| 590 | 'file_version_info_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 591 | ], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 592 | 'conditions': [ |
| 593 | [ 'linux_use_tcmalloc==1', { |
| 594 | 'dependencies': [ |
| 595 | 'allocator/allocator.gyp:allocator', |
| 596 | ], |
| 597 | }, |
| 598 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 599 | [ 'toolkit_uses_gtk==1', { |
| 600 | 'sources': [ |
| 601 | 'nix/xdg_util_unittest.cc', |
| 602 | ], |
| 603 | 'dependencies': [ |
| 604 | '../build/linux/system.gyp:gtk', |
| 605 | ] |
| 606 | }], |
[email protected] | 63dc378 | 2010-10-19 19:09:30 | [diff] [blame] | 607 | ], |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 608 | 'dependencies': [ |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 609 | '../build/linux/system.gyp:glib', |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 610 | '../build/linux/system.gyp:ssl', |
[email protected] | a97488f | 2009-09-17 21:37:19 | [diff] [blame] | 611 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 612 | ], |
[email protected] | 258dca4 | 2011-09-21 00:17:19 | [diff] [blame] | 613 | }, { # use_glib!=1 |
[email protected] | b44d5cc | 2009-06-15 10:30:44 | [diff] [blame] | 614 | 'sources!': [ |
| 615 | 'message_pump_glib_unittest.cc', |
| 616 | ] |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 617 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 618 | # This is needed to trigger the dll copy step on windows. |
| 619 | # TODO(mark): This should not be necessary. |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 620 | ['OS == "win"', { |
| 621 | 'dependencies': [ |
[email protected] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 622 | '../third_party/icu/icu.gyp:icudata', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 623 | ], |
| 624 | 'sources!': [ |
[email protected] | 3f04f2b | 2009-04-30 19:40:03 | [diff] [blame] | 625 | 'file_descriptor_shuffle_unittest.cc', |
[email protected] | d88e17f | 2012-06-29 21:09:14 | [diff] [blame] | 626 | 'files/dir_reader_posix_unittest.cc', |
[email protected] | 541c4db | 2010-12-30 18:29:28 | [diff] [blame] | 627 | 'threading/worker_pool_posix_unittest.cc', |
[email protected] | b4339c3a | 2011-05-13 16:19:23 | [diff] [blame] | 628 | 'message_pump_libevent_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 629 | ], |
| 630 | }, { # OS != "win" |
[email protected] | 92508df | 2011-08-04 22:23:55 | [diff] [blame] | 631 | 'dependencies': [ |
| 632 | '../third_party/libevent/libevent.gyp:libevent' |
| 633 | ], |
[email protected] | ce0e7246 | 2010-10-16 03:46:05 | [diff] [blame] | 634 | 'sources/': [ |
| 635 | ['exclude', '^win/'], |
| 636 | ], |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 637 | 'sources!': [ |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 638 | 'debug/trace_event_win_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 639 | 'time_win_unittest.cc', |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 640 | 'win/win_util_unittest.cc', |
[email protected] | 8b03e8d | 2009-03-02 06:53:31 | [diff] [blame] | 641 | ], |
| 642 | }], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 643 | ], # conditions |
| 644 | 'target_conditions': [ |
| 645 | ['OS == "ios"', { |
| 646 | 'sources/': [ |
| 647 | # Pull in specific Mac files for iOS (which have been filtered out |
| 648 | # by file name rules). |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 649 | ['include', '^mac/objc_property_releaser_unittest\\.mm$'], |
[email protected] | a5e2cd18 | 2012-07-25 17:47:58 | [diff] [blame] | 650 | ['include', '^mac/bind_objc_block_unittest\\.mm$'], |
[email protected] | feb727e | 2012-07-13 11:02:57 | [diff] [blame] | 651 | ['include', '^sys_string_conversions_mac_unittest\\.mm$'], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 652 | ], |
| 653 | }], |
| 654 | ], # target_conditions |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 655 | }, |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 656 | { |
| 657 | 'target_name': 'test_support_base', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 658 | 'type': 'static_library', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 659 | 'dependencies': [ |
| 660 | 'base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 661 | 'base_static', |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 662 | 'base_i18n', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 663 | '../testing/gmock.gyp:gmock', |
| 664 | '../testing/gtest.gyp:gtest', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 665 | ], |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 666 | 'export_dependent_settings': [ |
| 667 | 'base', |
| 668 | ], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 669 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 670 | ['toolkit_uses_gtk==1', { |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 671 | 'dependencies': [ |
| 672 | # test_suite initializes GTK. |
| 673 | '../build/linux/system.gyp:gtk', |
| 674 | ], |
| 675 | }], |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 676 | ['os_posix==0', { |
| 677 | 'sources!': [ |
| 678 | 'test/scoped_locale.cc', |
| 679 | 'test/scoped_locale.h', |
| 680 | ], |
| 681 | }], |
[email protected] | c48aef9 | 2011-11-22 23:41:45 | [diff] [blame] | 682 | ['os_bsd==1', { |
[email protected] | 167ec82 | 2011-10-24 22:05:27 | [diff] [blame] | 683 | 'sources!': [ |
| 684 | 'test/test_file_util_linux.cc', |
| 685 | ], |
| 686 | }], |
[email protected] | afa8020c | 2010-08-16 04:42:26 | [diff] [blame] | 687 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 688 | 'sources': [ |
[email protected] | bc052ef5 | 2010-10-10 02:42:32 | [diff] [blame] | 689 | 'perftimer.cc', |
[email protected] | 73b3242 | 2012-07-13 09:21:34 | [diff] [blame] | 690 | 'test/main_hook.cc', |
| 691 | 'test/main_hook.h', |
| 692 | 'test/main_hook_ios.mm', |
[email protected] | a366880 | 2010-12-18 01:18:29 | [diff] [blame] | 693 | 'test/mock_chrome_application_mac.h', |
| 694 | 'test/mock_chrome_application_mac.mm', |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 695 | 'test/mock_devices_changed_observer.cc', |
| 696 | 'test/mock_devices_changed_observer.h', |
[email protected] | c4996f76 | 2011-06-28 14:29:06 | [diff] [blame] | 697 | 'test/mock_time_provider.cc', |
| 698 | 'test/mock_time_provider.h', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 699 | 'test/multiprocess_test.cc', |
| 700 | 'test/multiprocess_test.h', |
[email protected] | 04de380 | 2012-05-29 19:36:32 | [diff] [blame] | 701 | 'test/multiprocess_test_android.cc', |
[email protected] | 99cc51e | 2010-10-10 00:21:35 | [diff] [blame] | 702 | 'test/perf_test_suite.cc', |
[email protected] | 20e1491 | 2010-08-17 19:40:11 | [diff] [blame] | 703 | 'test/perf_test_suite.h', |
[email protected] | 3ae445e8 | 2011-06-20 17:44:05 | [diff] [blame] | 704 | 'test/scoped_locale.cc', |
| 705 | 'test/scoped_locale.h', |
[email protected] | ce5d047 | 2012-04-02 10:16:55 | [diff] [blame] | 706 | 'test/sequenced_task_runner_test_template.cc', |
| 707 | 'test/sequenced_task_runner_test_template.h', |
[email protected] | c8cae7c | 2012-03-09 06:20:18 | [diff] [blame] | 708 | 'test/task_runner_test_template.cc', |
| 709 | 'test/task_runner_test_template.h', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 710 | 'test/test_file_util.h', |
| 711 | 'test/test_file_util_linux.cc', |
| 712 | 'test/test_file_util_mac.cc', |
| 713 | 'test/test_file_util_posix.cc', |
| 714 | 'test/test_file_util_win.cc', |
[email protected] | 73b3242 | 2012-07-13 09:21:34 | [diff] [blame] | 715 | 'test/test_listener_ios.h', |
| 716 | 'test/test_listener_ios.mm', |
[email protected] | a8f8588 | 2011-08-24 20:02:42 | [diff] [blame] | 717 | 'test/test_reg_util_win.cc', |
| 718 | 'test/test_reg_util_win.h', |
[email protected] | 6fa18d1 | 2010-08-16 04:18:41 | [diff] [blame] | 719 | 'test/test_suite.cc', |
| 720 | 'test/test_suite.h', |
[email protected] | 7ed054db | 2012-06-01 17:20:04 | [diff] [blame] | 721 | 'test/test_support_android.cc', |
| 722 | 'test/test_support_android.h', |
[email protected] | 4d230e3 | 2012-07-25 19:38:38 | [diff] [blame] | 723 | 'test/test_support_ios.h', |
| 724 | 'test/test_support_ios.mm', |
[email protected] | cbb9f50f | 2010-10-05 19:03:05 | [diff] [blame] | 725 | 'test/test_switches.cc', |
| 726 | 'test/test_switches.h', |
| 727 | 'test/test_timeouts.cc', |
| 728 | 'test/test_timeouts.h', |
[email protected] | 8aaae7b | 2011-06-28 06:43:20 | [diff] [blame] | 729 | 'test/thread_test_helper.cc', |
| 730 | 'test/thread_test_helper.h', |
[email protected] | 7a79dafb | 2011-10-29 03:16:52 | [diff] [blame] | 731 | 'test/trace_event_analyzer.cc', |
| 732 | 'test/trace_event_analyzer.h', |
[email protected] | 6085ccd | 2012-02-29 03:57:29 | [diff] [blame] | 733 | 'test/values_test_util.cc', |
| 734 | 'test/values_test_util.h', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 735 | ], |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 736 | }, |
| 737 | { |
| 738 | 'target_name': 'test_support_perf', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 739 | 'type': 'static_library', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 740 | 'dependencies': [ |
| 741 | 'base', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 742 | '../testing/gtest.gyp:gtest', |
| 743 | ], |
| 744 | 'sources': [ |
| 745 | 'perftimer.cc', |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 746 | 'test/run_all_perftests.cc', |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 747 | ], |
| 748 | 'direct_dependent_settings': { |
| 749 | 'defines': [ |
| 750 | 'PERF_TEST', |
| 751 | ], |
| 752 | }, |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 753 | 'conditions': [ |
[email protected] | 79e2336c | 2011-05-12 18:18:34 | [diff] [blame] | 754 | ['toolkit_uses_gtk==1', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 755 | 'dependencies': [ |
| 756 | # Needed to handle the #include chain: |
[email protected] | fb895c6 | 2009-10-09 18:20:30 | [diff] [blame] | 757 | # base/test/perf_test_suite.h |
| 758 | # base/test/test_suite.h |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 759 | # gtk/gtk.h |
| 760 | '../build/linux/system.gyp:gtk', |
| 761 | ], |
| 762 | }], |
| 763 | ], |
[email protected] | e8ef09a | 2009-03-16 23:46:45 | [diff] [blame] | 764 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 765 | ], |
| 766 | 'conditions': [ |
[email protected] | 2339620 | 2012-07-16 10:12:33 | [diff] [blame] | 767 | ['OS!="ios"', { |
| 768 | 'targets': [ |
| 769 | { |
| 770 | 'target_name': 'check_example', |
| 771 | 'type': 'executable', |
| 772 | 'sources': [ |
| 773 | 'check_example.cc', |
| 774 | ], |
| 775 | 'dependencies': [ |
| 776 | 'base', |
| 777 | ], |
| 778 | }, |
| 779 | ], |
| 780 | }], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 781 | ['OS == "win"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 782 | 'targets': [ |
| 783 | { |
| 784 | 'target_name': 'base_nacl_win64', |
| 785 | 'type': '<(component)', |
| 786 | 'variables': { |
| 787 | 'base_target': 1, |
| 788 | }, |
| 789 | 'dependencies': [ |
| 790 | 'base_static_win64', |
| 791 | 'allocator/allocator.gyp:allocator_extension_thunks_win64', |
| 792 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', |
| 793 | ], |
| 794 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 795 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 796 | 'direct_dependent_settings': { |
| 797 | 'include_dirs': [ |
| 798 | '..', |
| 799 | ], |
| 800 | }, |
| 801 | 'defines': [ |
| 802 | '<@(nacl_win64_defines)', |
| 803 | ], |
[email protected] | 1968d977 | 2012-07-26 22:53:13 | [diff] [blame] | 804 | 'sources!': [ |
| 805 | # base64.cc depends on modp_b64. |
| 806 | 'base64.cc', |
| 807 | ], |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 808 | 'configurations': { |
| 809 | 'Common_Base': { |
| 810 | 'msvs_target_platform': 'x64', |
| 811 | }, |
| 812 | }, |
| 813 | 'conditions': [ |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 814 | ['component == "shared_library"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 815 | 'sources!': [ |
| 816 | 'debug/debug_on_start_win.cc', |
| 817 | ], |
| 818 | }], |
| 819 | ], |
| 820 | }, |
| 821 | { |
| 822 | 'target_name': 'base_i18n_nacl_win64', |
| 823 | 'type': '<(component)', |
| 824 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 825 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 826 | 'direct_dependent_settings': { |
| 827 | 'include_dirs': [ |
| 828 | '..', |
| 829 | ], |
| 830 | }, |
| 831 | 'defines': [ |
| 832 | '<@(nacl_win64_defines)', |
| 833 | 'BASE_I18N_IMPLEMENTATION', |
| 834 | ], |
| 835 | 'include_dirs': [ |
| 836 | '..', |
| 837 | ], |
| 838 | 'sources': [ |
| 839 | 'i18n/icu_util_nacl_win64.cc', |
| 840 | ], |
| 841 | 'configurations': { |
| 842 | 'Common_Base': { |
| 843 | 'msvs_target_platform': 'x64', |
| 844 | }, |
| 845 | }, |
| 846 | }, |
| 847 | ], |
| 848 | }], |
[email protected] | 4bfc2dc | 2012-07-11 15:09:10 | [diff] [blame] | 849 | ['os_posix==1 and OS!="mac" and OS!="ios"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 850 | 'targets': [ |
| 851 | { |
| 852 | 'target_name': 'symbolize', |
| 853 | 'type': 'static_library', |
| 854 | 'toolsets': ['host', 'target'], |
| 855 | 'variables': { |
| 856 | 'chromium_code': 0, |
| 857 | }, |
| 858 | 'conditions': [ |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 859 | ['OS == "solaris"', { |
[email protected] | 83c1c3c | 2012-06-07 18:43:44 | [diff] [blame] | 860 | 'include_dirs': [ |
| 861 | '/usr/gnu/include', |
| 862 | '/usr/gnu/include/libelf', |
| 863 | ], |
| 864 | },], |
| 865 | ], |
| 866 | 'cflags': [ |
| 867 | '-Wno-sign-compare', |
| 868 | ], |
| 869 | 'cflags!': [ |
| 870 | '-Wextra', |
| 871 | ], |
| 872 | 'sources': [ |
| 873 | 'third_party/symbolize/config.h', |
| 874 | 'third_party/symbolize/demangle.cc', |
| 875 | 'third_party/symbolize/demangle.h', |
| 876 | 'third_party/symbolize/glog/logging.h', |
| 877 | 'third_party/symbolize/glog/raw_logging.h', |
| 878 | 'third_party/symbolize/symbolize.cc', |
| 879 | 'third_party/symbolize/symbolize.h', |
| 880 | 'third_party/symbolize/utilities.h', |
| 881 | ], |
| 882 | 'include_dirs': [ |
| 883 | '..', |
| 884 | ], |
| 885 | }, |
| 886 | { |
| 887 | 'target_name': 'xdg_mime', |
| 888 | 'type': 'static_library', |
| 889 | 'toolsets': ['host', 'target'], |
| 890 | 'variables': { |
| 891 | 'chromium_code': 0, |
| 892 | }, |
| 893 | 'cflags!': [ |
| 894 | '-Wextra', |
| 895 | ], |
| 896 | 'sources': [ |
| 897 | 'third_party/xdg_mime/xdgmime.c', |
| 898 | 'third_party/xdg_mime/xdgmime.h', |
| 899 | 'third_party/xdg_mime/xdgmimealias.c', |
| 900 | 'third_party/xdg_mime/xdgmimealias.h', |
| 901 | 'third_party/xdg_mime/xdgmimecache.c', |
| 902 | 'third_party/xdg_mime/xdgmimecache.h', |
| 903 | 'third_party/xdg_mime/xdgmimeglob.c', |
| 904 | 'third_party/xdg_mime/xdgmimeglob.h', |
| 905 | 'third_party/xdg_mime/xdgmimeicon.c', |
| 906 | 'third_party/xdg_mime/xdgmimeicon.h', |
| 907 | 'third_party/xdg_mime/xdgmimeint.c', |
| 908 | 'third_party/xdg_mime/xdgmimeint.h', |
| 909 | 'third_party/xdg_mime/xdgmimemagic.c', |
| 910 | 'third_party/xdg_mime/xdgmimemagic.h', |
| 911 | 'third_party/xdg_mime/xdgmimeparent.c', |
| 912 | 'third_party/xdg_mime/xdgmimeparent.h', |
| 913 | ], |
| 914 | }, |
| 915 | ], |
| 916 | }], |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 917 | ['OS == "android"', { |
| 918 | 'targets': [ |
| 919 | { |
| 920 | 'target_name': 'base_jni_headers', |
| 921 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 922 | 'sources': [ |
| 923 | 'android/java/src/org/chromium/base/BuildInfo.java', |
| 924 | 'android/java/src/org/chromium/base/LocaleUtils.java', |
[email protected] | f152b67b | 2012-08-03 12:43:29 | [diff] [blame] | 925 | 'android/java/src/org/chromium/base/PathService.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 926 | 'android/java/src/org/chromium/base/PathUtils.java', |
| 927 | 'android/java/src/org/chromium/base/SystemMessageHandler.java', |
| 928 | ], |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 929 | 'variables': { |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 930 | 'jni_gen_dir': 'base', |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 931 | }, |
| 932 | 'includes': [ '../build/jni_generator.gypi' ], |
| 933 | }, |
| 934 | { |
| 935 | 'target_name': 'base_java', |
| 936 | 'type': 'none', |
| 937 | 'variables': { |
| 938 | 'package_name': 'base', |
| 939 | 'java_in_dir': 'android/java', |
| 940 | }, |
| 941 | 'includes': [ '../build/java.gypi' ], |
| 942 | }, |
| 943 | ], |
| 944 | }], |
[email protected] | 06ff3c5 | 2012-03-01 01:58:05 | [diff] [blame] | 945 | ['OS == "win"', { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 946 | 'targets': [ |
| 947 | { |
| 948 | 'target_name': 'debug_message', |
| 949 | 'type': 'executable', |
| 950 | 'sources': [ |
| 951 | 'debug_message.cc', |
| 952 | ], |
[email protected] | 3f8bfc36 | 2009-05-22 02:39:14 | [diff] [blame] | 953 | 'msvs_settings': { |
| 954 | 'VCLinkerTool': { |
| 955 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 956 | }, |
| 957 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 958 | }, |
| 959 | ], |
| 960 | }], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 961 | # Special target to wrap a gtest_target_type == shared_library |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 962 | # base_unittests into an android apk for execution. |
| 963 | # TODO(jrg): lib.target comes from _InstallableTargetInstallPath() |
| 964 | # in the gyp make generator. What is the correct way to extract |
| 965 | # this path from gyp and into 'raw' for input to antfiles? |
| 966 | # Hard-coding in the gypfile seems a poor choice. |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 967 | ['OS == "android" and gtest_target_type == "shared_library"', { |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 968 | 'targets': [ |
| 969 | { |
| 970 | 'target_name': 'base_unittests_apk', |
| 971 | 'type': 'none', |
| 972 | 'dependencies': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 973 | 'base_java', |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 974 | 'base_unittests', |
| 975 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 976 | 'variables': { |
| 977 | 'test_suite_name': 'base_unittests', |
[email protected] | ef7ed7a | 2012-05-29 23:19:13 | [diff] [blame] | 978 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 979 | }, |
| 980 | 'includes': [ '../build/apk_test.gypi' ], |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 981 | }, |
[email protected] | f546098 | 2012-07-26 22:39:03 | [diff] [blame] | 982 | { |
| 983 | 'target_name': 'base_java_test_support', |
| 984 | 'type': 'none', |
| 985 | 'dependencies': [ |
| 986 | 'base_java', |
| 987 | ], |
| 988 | 'variables': { |
| 989 | 'package_name': 'base_javatests', |
| 990 | 'java_in_dir': '../base/android/javatests', |
| 991 | }, |
| 992 | 'includes': [ '../build/java.gypi' ], |
| 993 | }, |
[email protected] | 9ac2db69 | 2012-06-08 01:01:57 | [diff] [blame] | 994 | ], |
[email protected] | d9f9695 | 2012-04-19 21:02:09 | [diff] [blame] | 995 | }], |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 996 | ['test_isolation_mode != "noop"', { |
| 997 | 'targets': [ |
| 998 | { |
| 999 | 'target_name': 'base_unittests_run', |
| 1000 | 'type': 'none', |
| 1001 | 'dependencies': [ |
| 1002 | 'base_unittests', |
| 1003 | ], |
| 1004 | 'includes': [ |
| 1005 | 'base_unittests.isolate', |
| 1006 | ], |
| 1007 | 'actions': [ |
| 1008 | { |
| 1009 | 'action_name': 'isolate', |
| 1010 | 'inputs': [ |
| 1011 | 'base_unittests.isolate', |
| 1012 | '<@(isolate_dependency_tracked)', |
| 1013 | ], |
| 1014 | 'outputs': [ |
| 1015 | '<(PRODUCT_DIR)/base_unittests.results', |
| 1016 | ], |
| 1017 | 'action': [ |
| 1018 | 'python', |
| 1019 | '../tools/isolate/isolate.py', |
| 1020 | '<(test_isolation_mode)', |
| 1021 | '--outdir', '<(test_isolation_outdir)', |
| 1022 | '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
| 1023 | '--variable', 'OS', '<(OS)', |
| 1024 | '--result', '<@(_outputs)', |
| 1025 | '--isolate', 'base_unittests.isolate', |
| 1026 | ], |
| 1027 | }, |
| 1028 | ], |
| 1029 | }, |
| 1030 | ], |
| 1031 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 1032 | ], |
| 1033 | } |