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