evan@chromium.org | d6842f6 | 2012-01-24 13:37:29 +0900 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [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 | }, |
gregoryd@google.com | 9e3cfd6 | 2009-12-05 07:46:50 +0900 | [diff] [blame] | 9 | 'includes': [ |
joi@chromium.org | 3b4d6d9 | 2011-09-07 23:14:54 +0900 | [diff] [blame] | 10 | '../build/win_precompile.gypi', |
gregoryd@google.com | 9e3cfd6 | 2009-12-05 07:46:50 +0900 | [diff] [blame] | 11 | 'base.gypi', |
| 12 | ], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 13 | 'targets': [ |
| 14 | { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [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': [ |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 38 | ['use_glib==1', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 39 | 'conditions': [ |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [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': { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 48 | 'defines': [ |
| 49 | 'NO_TCMALLOC', |
| 50 | ], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 51 | }, |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 52 | }], |
| 53 | ['toolkit_uses_gtk==1', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [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/'], |
rohitrao@chromium.org | dcc4902 | 2012-07-13 20:02:57 +0900 | [diff] [blame] | 81 | ['exclude', '_nss\\.cc$'], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 82 | ], |
| 83 | }], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 84 | ['OS == "android" and _toolset == "host"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [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 | }], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 116 | ['OS == "android" and _toolset == "target"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 117 | 'conditions': [ |
| 118 | ['target_arch == "ia32"', { |
| 119 | 'sources/': [ |
| 120 | ['include', '^atomicops_internals_x86_gcc\\.cc$'], |
| 121 | ], |
| 122 | }], |
| 123 | ], |
| 124 | 'dependencies': [ |
pliard@chromium.org | 59659da | 2012-09-11 00:52:47 +0900 | [diff] [blame] | 125 | 'base_jni_headers', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 126 | 'symbolize', |
| 127 | '../third_party/ashmem/ashmem.gyp:ashmem', |
| 128 | '../third_party/icu/icu.gyp:icuuc', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [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!': [ |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 142 | 'debug/stack_trace_posix.cc', |
| 143 | ], |
digit@chromium.org | fcf6b52 | 2013-01-10 02:09:24 +0900 | [diff] [blame] | 144 | 'includes': [ |
| 145 | '../build/android/cpufeatures.gypi', |
| 146 | ], |
pliard@chromium.org | 36dc8f9 | 2012-10-06 01:20:01 +0900 | [diff] [blame] | 147 | }], |
| 148 | ['OS == "android" and _toolset == "target" and android_build_type == 0', { |
| 149 | 'dependencies': [ |
| 150 | 'base_java', |
| 151 | ], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 152 | }], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 153 | ['os_bsd==1', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 154 | 'include_dirs': [ |
| 155 | '/usr/local/include', |
| 156 | ], |
| 157 | 'link_settings': { |
| 158 | 'libraries': [ |
| 159 | '-L/usr/local/lib -lexecinfo', |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 160 | ], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 161 | }, |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 162 | }], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 163 | ['OS == "linux"', { |
| 164 | 'link_settings': { |
| 165 | 'libraries': [ |
| 166 | # We need rt for clock_gettime(). |
| 167 | '-lrt', |
| 168 | # For 'native_library_linux.cc' |
| 169 | '-ldl', |
| 170 | ], |
| 171 | }, |
| 172 | }], |
| 173 | ['OS == "mac"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 174 | 'link_settings': { |
| 175 | 'libraries': [ |
| 176 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
asvitkine@chromium.org | 399f23e | 2012-07-24 01:51:25 +0900 | [diff] [blame] | 177 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 178 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 179 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 180 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 181 | '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
| 182 | '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 183 | ], |
| 184 | }, |
| 185 | 'dependencies': [ |
| 186 | '../third_party/mach_override/mach_override.gyp:mach_override', |
| 187 | ], |
| 188 | }], |
stuartmorgan@chromium.org | 456df34 | 2012-07-15 23:24:46 +0900 | [diff] [blame] | 189 | ['OS == "ios"', { |
| 190 | 'link_settings': { |
| 191 | 'libraries': [ |
| 192 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
stuartmorgan@chromium.org | 03c68be | 2012-07-25 20:07:44 +0900 | [diff] [blame] | 193 | '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
| 194 | '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
stuartmorgan@chromium.org | 456df34 | 2012-07-15 23:24:46 +0900 | [diff] [blame] | 195 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 196 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 197 | ], |
| 198 | }, |
| 199 | }], |
blundell@chromium.org | e21b2aa | 2012-12-01 02:29:40 +0900 | [diff] [blame] | 200 | ['OS != "win" and OS != "ios"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 201 | 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
| 202 | },], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 203 | ['component=="shared_library"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 204 | 'conditions': [ |
| 205 | ['OS=="win"', { |
| 206 | 'sources!': [ |
| 207 | 'debug/debug_on_start_win.cc', |
| 208 | ], |
| 209 | }], |
| 210 | ], |
| 211 | }], |
phajdan.jr@chromium.org | d9ff9c9 | 2013-01-09 01:49:07 +0900 | [diff] [blame] | 212 | ['use_system_nspr==1', { |
| 213 | 'dependencies': [ |
| 214 | 'third_party/nspr/nspr.gyp:nspr', |
| 215 | ], |
| 216 | }], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 217 | ], |
| 218 | 'sources': [ |
| 219 | 'third_party/nspr/prcpucfg.h', |
| 220 | 'third_party/nspr/prcpucfg_win.h', |
| 221 | 'third_party/nspr/prtypes.h', |
| 222 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', |
| 223 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', |
| 224 | 'auto_reset.h', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 225 | 'event_recorder.h', |
| 226 | 'event_recorder_stubs.cc', |
| 227 | 'event_recorder_win.cc', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 228 | 'linux_util.cc', |
| 229 | 'linux_util.h', |
| 230 | 'md5.cc', |
| 231 | 'md5.h', |
| 232 | 'message_pump_android.cc', |
| 233 | 'message_pump_android.h', |
| 234 | 'message_pump_glib.cc', |
| 235 | 'message_pump_glib.h', |
| 236 | 'message_pump_gtk.cc', |
| 237 | 'message_pump_gtk.h', |
blundell@chromium.org | e21b2aa | 2012-12-01 02:29:40 +0900 | [diff] [blame] | 238 | 'message_pump_io_ios.cc', |
| 239 | 'message_pump_io_ios.h', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 240 | 'message_pump_observer.h', |
| 241 | 'message_pump_aurax11.cc', |
| 242 | 'message_pump_aurax11.h', |
| 243 | 'message_pump_libevent.cc', |
| 244 | 'message_pump_libevent.h', |
| 245 | 'message_pump_mac.h', |
| 246 | 'message_pump_mac.mm', |
| 247 | 'metrics/field_trial.cc', |
| 248 | 'metrics/field_trial.h', |
brettw@chromium.org | 04a8ee2 | 2012-11-10 05:22:00 +0900 | [diff] [blame] | 249 | 'posix/file_descriptor_shuffle.cc', |
| 250 | 'posix/file_descriptor_shuffle.h', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 251 | 'sync_socket.h', |
| 252 | 'sync_socket_win.cc', |
| 253 | 'sync_socket_posix.cc', |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 254 | ], |
| 255 | }, |
| 256 | { |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 257 | 'target_name': 'base_i18n', |
rvargas@google.com | c4b016b | 2011-09-01 07:15:48 +0900 | [diff] [blame] | 258 | 'type': '<(component)', |
siggi@chromium.org | 71120e4 | 2011-12-21 04:59:10 +0900 | [diff] [blame] | 259 | 'variables': { |
| 260 | 'enable_wexit_time_destructors': 1, |
| 261 | 'optimize': 'max', |
| 262 | }, |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 263 | 'dependencies': [ |
| 264 | 'base', |
rvargas@google.com | c4b016b | 2011-09-01 07:15:48 +0900 | [diff] [blame] | 265 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 266 | '../third_party/icu/icu.gyp:icui18n', |
| 267 | '../third_party/icu/icu.gyp:icuuc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 268 | ], |
mmoss@google.com | 751961d | 2010-03-23 06:24:57 +0900 | [diff] [blame] | 269 | 'conditions': [ |
mark@chromium.org | 639d3b5 | 2011-05-13 03:18:34 +0900 | [diff] [blame] | 270 | ['toolkit_uses_gtk==1', { |
mmoss@google.com | 751961d | 2010-03-23 06:24:57 +0900 | [diff] [blame] | 271 | 'dependencies': [ |
| 272 | # i18n/rtl.cc uses gtk |
| 273 | '../build/linux/system.gyp:gtk', |
| 274 | ], |
| 275 | }], |
jschuh@chromium.org | b8f6aa5 | 2013-01-10 08:18:29 +0900 | [diff] [blame] | 276 | ['OS == "win"', { |
| 277 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 278 | 'msvs_disabled_warnings': [ |
| 279 | 4267, |
| 280 | ], |
| 281 | }], |
mmoss@google.com | 751961d | 2010-03-23 06:24:57 +0900 | [diff] [blame] | 282 | ], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 283 | 'export_dependent_settings': [ |
| 284 | 'base', |
| 285 | ], |
rvargas@google.com | c4b016b | 2011-09-01 07:15:48 +0900 | [diff] [blame] | 286 | 'defines': [ |
| 287 | 'BASE_I18N_IMPLEMENTATION', |
| 288 | ], |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 289 | 'sources': [ |
rvargas@google.com | c4b016b | 2011-09-01 07:15:48 +0900 | [diff] [blame] | 290 | 'i18n/base_i18n_export.h', |
hbono@chromium.org | 3140736 | 2011-02-24 18:20:16 +0900 | [diff] [blame] | 291 | 'i18n/bidi_line_iterator.cc', |
| 292 | 'i18n/bidi_line_iterator.h', |
cdn@chromium.org | 79f2490 | 2010-12-16 03:00:54 +0900 | [diff] [blame] | 293 | 'i18n/break_iterator.cc', |
| 294 | 'i18n/break_iterator.h', |
dmazzoni@chromium.org | 4312698 | 2010-08-23 23:30:27 +0900 | [diff] [blame] | 295 | 'i18n/char_iterator.cc', |
| 296 | 'i18n/char_iterator.h', |
phajdan.jr@chromium.org | e178fe2 | 2011-05-06 17:36:26 +0900 | [diff] [blame] | 297 | 'i18n/case_conversion.cc', |
| 298 | 'i18n/case_conversion.h', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 299 | 'i18n/file_util_icu.cc', |
| 300 | 'i18n/file_util_icu.h', |
phajdan.jr@chromium.org | b00f098 | 2010-05-11 18:19:30 +0900 | [diff] [blame] | 301 | 'i18n/icu_encoding_detection.cc', |
| 302 | 'i18n/icu_encoding_detection.h', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 303 | 'i18n/icu_string_conversions.cc', |
| 304 | 'i18n/icu_string_conversions.h', |
| 305 | 'i18n/icu_util.cc', |
| 306 | 'i18n/icu_util.h', |
| 307 | 'i18n/number_formatting.cc', |
| 308 | 'i18n/number_formatting.h', |
ben@chromium.org | 2c4a3a8 | 2010-03-20 15:37:01 +0900 | [diff] [blame] | 309 | 'i18n/rtl.cc', |
| 310 | 'i18n/rtl.h', |
michaelbai@google.com | 7cdf8a5 | 2011-10-04 01:25:19 +0900 | [diff] [blame] | 311 | 'i18n/string_search.cc', |
| 312 | 'i18n/string_search.h', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 313 | 'i18n/time_formatting.cc', |
| 314 | 'i18n/time_formatting.h', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 315 | ], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 316 | }, |
| 317 | { |
joi@chromium.org | 1e43ce8 | 2012-11-01 21:05:27 +0900 | [diff] [blame] | 318 | 'target_name': 'base_prefs', |
| 319 | 'type': '<(component)', |
| 320 | 'variables': { |
| 321 | 'enable_wexit_time_destructors': 1, |
| 322 | 'optimize': 'max', |
| 323 | }, |
| 324 | 'dependencies': [ |
| 325 | 'base', |
| 326 | ], |
| 327 | 'export_dependent_settings': [ |
| 328 | 'base', |
| 329 | ], |
| 330 | 'defines': [ |
| 331 | 'BASE_PREFS_IMPLEMENTATION', |
| 332 | ], |
| 333 | 'sources': [ |
| 334 | 'prefs/default_pref_store.cc', |
| 335 | 'prefs/default_pref_store.h', |
| 336 | 'prefs/json_pref_store.cc', |
| 337 | 'prefs/json_pref_store.h', |
| 338 | 'prefs/overlay_user_pref_store.cc', |
| 339 | 'prefs/overlay_user_pref_store.h', |
| 340 | 'prefs/persistent_pref_store.h', |
| 341 | 'prefs/pref_notifier.h', |
dsinclair@chromium.org | 38608f8 | 2013-01-26 05:41:19 +0900 | [diff] [blame] | 342 | 'prefs/pref_observer.h', |
joi@chromium.org | 1e43ce8 | 2012-11-01 21:05:27 +0900 | [diff] [blame] | 343 | 'prefs/pref_store.cc', |
| 344 | 'prefs/pref_store.h', |
| 345 | 'prefs/pref_value_map.cc', |
| 346 | 'prefs/pref_value_map.h', |
| 347 | 'prefs/public/pref_change_registrar.cc', |
| 348 | 'prefs/public/pref_change_registrar.h', |
joi@chromium.org | f6b27c9 | 2012-12-12 20:36:05 +0900 | [diff] [blame] | 349 | 'prefs/public/pref_member.cc', |
| 350 | 'prefs/public/pref_member.h', |
joi@chromium.org | 1e43ce8 | 2012-11-01 21:05:27 +0900 | [diff] [blame] | 351 | 'prefs/public/pref_service_base.h', |
| 352 | 'prefs/value_map_pref_store.cc', |
| 353 | 'prefs/value_map_pref_store.h', |
| 354 | ], |
| 355 | }, |
| 356 | { |
tfarina@chromium.org | 4bb1a5e | 2013-01-16 22:11:33 +0900 | [diff] [blame] | 357 | 'target_name': 'base_prefs_test_support', |
| 358 | 'type': 'static_library', |
| 359 | 'dependencies': [ |
| 360 | 'base', |
| 361 | 'base_prefs', |
| 362 | '../testing/gmock.gyp:gmock', |
| 363 | ], |
| 364 | 'sources': [ |
| 365 | 'prefs/pref_store_observer_mock.cc', |
| 366 | 'prefs/pref_store_observer_mock.h', |
| 367 | 'prefs/testing_pref_store.cc', |
| 368 | 'prefs/testing_pref_store.h', |
| 369 | ], |
| 370 | }, |
| 371 | { |
rvargas@google.com | 57a4396 | 2011-04-05 07:42:46 +0900 | [diff] [blame] | 372 | # This is the subset of files from base that should not be used with a |
rvargas@google.com | 97a20ec | 2011-04-22 07:22:10 +0900 | [diff] [blame] | 373 | # dynamic library. Note that this library cannot depend on base because |
| 374 | # base depends on base_static. |
rvargas@google.com | 57a4396 | 2011-04-05 07:42:46 +0900 | [diff] [blame] | 375 | 'target_name': 'base_static', |
evan@chromium.org | 0b930f2 | 2011-05-20 08:18:53 +0900 | [diff] [blame] | 376 | 'type': 'static_library', |
siggi@chromium.org | 71120e4 | 2011-12-21 04:59:10 +0900 | [diff] [blame] | 377 | 'variables': { |
| 378 | 'enable_wexit_time_destructors': 1, |
| 379 | 'optimize': 'max', |
| 380 | }, |
pkasting@chromium.org | 2680a0a | 2011-09-16 06:17:32 +0900 | [diff] [blame] | 381 | 'toolsets': ['host', 'target'], |
rvargas@google.com | 57a4396 | 2011-04-05 07:42:46 +0900 | [diff] [blame] | 382 | 'sources': [ |
rvargas@google.com | 29b1009 | 2011-05-27 07:03:28 +0900 | [diff] [blame] | 383 | 'base_switches.cc', |
| 384 | 'base_switches.h', |
rvargas@google.com | 57a4396 | 2011-04-05 07:42:46 +0900 | [diff] [blame] | 385 | 'win/pe_image.cc', |
| 386 | 'win/pe_image.h', |
| 387 | ], |
| 388 | 'include_dirs': [ |
| 389 | '..', |
| 390 | ], |
| 391 | }, |
akalin@chromium.org | 4158e99 | 2012-03-21 14:55:06 +0900 | [diff] [blame] | 392 | # Include this target for a main() function that simply instantiates |
| 393 | # and runs a base::TestSuite. |
| 394 | { |
| 395 | 'target_name': 'run_all_unittests', |
| 396 | 'type': 'static_library', |
| 397 | 'dependencies': [ |
| 398 | 'test_support_base', |
| 399 | ], |
| 400 | 'sources': [ |
| 401 | 'test/run_all_unittests.cc', |
| 402 | ], |
| 403 | }, |
peter@chromium.org | f63cdf1 | 2012-03-14 20:24:04 +0900 | [diff] [blame] | 404 | { |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 405 | 'target_name': 'base_unittests', |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 406 | 'type': '<(gtest_target_type)', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 407 | 'sources': [ |
maruel@chromium.org | 2b6effe | 2009-09-09 02:25:40 +0900 | [diff] [blame] | 408 | # Tests. |
steveblock@chromium.org | 27bef55 | 2011-12-05 23:42:08 +0900 | [diff] [blame] | 409 | 'android/jni_android_unittest.cc', |
avayvod@chromium.org | cc210d8 | 2012-10-10 04:43:10 +0900 | [diff] [blame] | 410 | 'android/jni_array_unittest.cc', |
joth@chromium.org | 3a08d89 | 2012-12-14 10:31:17 +0900 | [diff] [blame] | 411 | 'android/jni_string_unittest.cc', |
nileshagrawal@chromium.org | 77ab0bc | 2012-04-27 05:19:47 +0900 | [diff] [blame] | 412 | 'android/path_utils_unittest.cc', |
joth@chromium.org | ed27f3a | 2011-09-09 19:17:35 +0900 | [diff] [blame] | 413 | 'android/scoped_java_ref_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 414 | 'at_exit_unittest.cc', |
| 415 | 'atomicops_unittest.cc', |
hayato@chromium.org | 268ac3a | 2009-11-24 15:21:53 +0900 | [diff] [blame] | 416 | 'base64_unittest.cc', |
ajwong@chromium.org | e4f3dc3 | 2012-01-07 07:12:28 +0900 | [diff] [blame] | 417 | 'bind_helpers_unittest.cc', |
ajwong@chromium.org | e2cca63 | 2011-02-15 10:27:38 +0900 | [diff] [blame] | 418 | 'bind_unittest.cc', |
ajwong@chromium.org | 505386d | 2011-09-10 12:03:00 +0900 | [diff] [blame] | 419 | 'bind_unittest.nc', |
apatrick@google.com | 0265b73 | 2009-11-19 08:08:39 +0900 | [diff] [blame] | 420 | 'bits_unittest.cc', |
agl@chromium.org | b9206f4 | 2011-11-12 01:09:31 +0900 | [diff] [blame] | 421 | 'build_time_unittest.cc', |
akalin@chromium.org | 6ed4f88 | 2010-02-19 12:15:59 +0900 | [diff] [blame] | 422 | 'callback_unittest.cc', |
ajwong@chromium.org | 3bc50ce | 2011-09-10 12:14:35 +0900 | [diff] [blame] | 423 | 'callback_unittest.nc', |
jhawkins@chromium.org | 78936ff | 2011-11-24 13:12:04 +0900 | [diff] [blame] | 424 | 'cancelable_callback_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 425 | 'command_line_unittest.cc', |
brettw@chromium.org | 427b15b | 2012-11-10 09:46:16 +0900 | [diff] [blame] | 426 | 'containers/linked_list_unittest.cc', |
brettw@chromium.org | 4f5affd | 2012-11-14 05:34:14 +0900 | [diff] [blame] | 427 | 'containers/mru_cache_unittest.cc', |
brettw@chromium.org | ba6903b | 2012-11-10 07:49:19 +0900 | [diff] [blame] | 428 | 'containers/small_map_unittest.cc', |
brettw@chromium.org | 427b15b | 2012-11-10 09:46:16 +0900 | [diff] [blame] | 429 | 'containers/stack_container_unittest.cc', |
hbono@chromium.org | 3140736 | 2011-02-24 18:20:16 +0900 | [diff] [blame] | 430 | 'cpu_unittest.cc', |
rsesek@chromium.org | 51a9e7c | 2013-01-16 08:51:23 +0900 | [diff] [blame] | 431 | 'debug/crash_logging_unittest.cc', |
brettw@chromium.org | 2f49b12 | 2010-10-26 13:07:50 +0900 | [diff] [blame] | 432 | 'debug/leak_tracker_unittest.cc', |
| 433 | 'debug/stack_trace_unittest.cc', |
scheib@chromium.org | 603f46e | 2011-05-10 11:23:58 +0900 | [diff] [blame] | 434 | 'debug/trace_event_unittest.cc', |
jbates@chromium.org | 5e2f67d | 2012-08-16 13:32:49 +0900 | [diff] [blame] | 435 | 'debug/trace_event_unittest.h', |
brettw@chromium.org | 2f49b12 | 2010-10-26 13:07:50 +0900 | [diff] [blame] | 436 | 'debug/trace_event_win_unittest.cc', |
tfarina@chromium.org | 6d36c5d | 2010-08-03 12:00:50 +0900 | [diff] [blame] | 437 | 'environment_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 438 | 'file_path_unittest.cc', |
| 439 | 'file_util_unittest.cc', |
| 440 | 'file_version_info_unittest.cc', |
brettw@chromium.org | bf3eb52 | 2012-06-30 06:09:14 +0900 | [diff] [blame] | 441 | 'files/dir_reader_posix_unittest.cc', |
brettw@chromium.org | 06a553b | 2013-01-26 09:21:58 +0900 | [diff] [blame] | 442 | 'files/file_util_proxy_unittest.cc', |
joi@chromium.org | 20009e3 | 2012-10-25 01:33:36 +0900 | [diff] [blame] | 443 | 'files/important_file_writer_unittest.cc', |
brettw@chromium.org | 091db52 | 2012-11-17 05:34:23 +0900 | [diff] [blame] | 444 | 'files/scoped_temp_dir_unittest.cc', |
ajwong@chromium.org | ab54d3d | 2009-05-30 23:39:59 +0900 | [diff] [blame] | 445 | 'gmock_unittest.cc', |
marja@chromium.org | 9158ee0 | 2012-06-14 23:22:07 +0900 | [diff] [blame] | 446 | 'guid_unittest.cc', |
jam@chromium.org | 81e9e99 | 2012-06-05 04:33:56 +0900 | [diff] [blame] | 447 | 'hi_res_timer_manager_unittest.cc', |
phajdan.jr@chromium.org | a12746c | 2009-08-19 23:56:38 +0900 | [diff] [blame] | 448 | 'id_map_unittest.cc', |
cdn@chromium.org | 79f2490 | 2010-12-16 03:00:54 +0900 | [diff] [blame] | 449 | 'i18n/break_iterator_unittest.cc', |
dmazzoni@chromium.org | 4312698 | 2010-08-23 23:30:27 +0900 | [diff] [blame] | 450 | 'i18n/char_iterator_unittest.cc', |
phajdan.jr@chromium.org | e178fe2 | 2011-05-06 17:36:26 +0900 | [diff] [blame] | 451 | 'i18n/case_conversion_unittest.cc', |
brettw@chromium.org | 86aca86 | 2009-10-09 02:38:30 +0900 | [diff] [blame] | 452 | 'i18n/file_util_icu_unittest.cc', |
brettw@chromium.org | de29ea4 | 2009-10-11 05:40:50 +0900 | [diff] [blame] | 453 | 'i18n/icu_string_conversions_unittest.cc', |
avi@chromium.org | ac6d615 | 2011-06-23 05:40:22 +0900 | [diff] [blame] | 454 | 'i18n/number_formatting_unittest.cc', |
ben@chromium.org | 2c4a3a8 | 2010-03-20 15:37:01 +0900 | [diff] [blame] | 455 | 'i18n/rtl_unittest.cc', |
sadrul@chromium.org | 847a572 | 2011-09-21 09:17:19 +0900 | [diff] [blame] | 456 | 'i18n/string_search_unittest.cc', |
kinaba@google.com | 7f3f242 | 2011-05-30 20:45:43 +0900 | [diff] [blame] | 457 | 'i18n/time_formatting_unittest.cc', |
chenyu@chromium.org | 3f440a4 | 2012-08-07 20:03:11 +0900 | [diff] [blame] | 458 | 'ios/device_util_unittest.mm', |
rsesek@chromium.org | c2d2b20 | 2012-05-17 00:23:30 +0900 | [diff] [blame] | 459 | 'json/json_parser_unittest.cc', |
brettw@chromium.org | 7cd41eb | 2009-10-24 05:00:20 +0900 | [diff] [blame] | 460 | 'json/json_reader_unittest.cc', |
mukai@chromium.org | 55292e4 | 2011-12-23 03:31:47 +0900 | [diff] [blame] | 461 | 'json/json_value_converter_unittest.cc', |
pastarmovj@chromium.org | b81dd3f | 2011-11-18 01:17:23 +0900 | [diff] [blame] | 462 | 'json/json_value_serializer_unittest.cc', |
brettw@chromium.org | 7cd41eb | 2009-10-24 05:00:20 +0900 | [diff] [blame] | 463 | 'json/json_writer_unittest.cc', |
| 464 | 'json/string_escape_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 465 | 'lazy_instance_unittest.cc', |
akalin@chromium.org | a88579b | 2010-10-02 08:02:36 +0900 | [diff] [blame] | 466 | 'logging_unittest.cc', |
noyau@chromium.org | c2ad949 | 2012-07-26 02:47:58 +0900 | [diff] [blame] | 467 | 'mac/bind_objc_block_unittest.mm', |
kushi.p@gmail.com | 9a28acb | 2011-10-19 09:36:56 +0900 | [diff] [blame] | 468 | 'mac/foundation_util_unittest.mm', |
rsesek@chromium.org | bc9175b | 2012-12-07 16:47:15 +0900 | [diff] [blame] | 469 | 'mac/libdispatch_task_runner_unittest.cc', |
brettw@chromium.org | 92d954b | 2011-01-02 03:20:14 +0900 | [diff] [blame] | 470 | 'mac/mac_util_unittest.mm', |
mark@chromium.org | 2a9b20f | 2011-04-21 07:30:35 +0900 | [diff] [blame] | 471 | 'mac/objc_property_releaser_unittest.mm', |
shess@chromium.org | cb3d4fe | 2011-12-02 08:56:17 +0900 | [diff] [blame] | 472 | 'mac/scoped_sending_event_unittest.mm', |
shinyak@google.com | 5c52102 | 2011-04-26 08:54:07 +0900 | [diff] [blame] | 473 | 'md5_unittest.cc', |
jbates@chromium.org | dde8e30 | 2012-02-24 02:52:20 +0900 | [diff] [blame] | 474 | 'memory/aligned_memory_unittest.cc', |
qinmin@chromium.org | f374181 | 2013-01-22 10:24:26 +0900 | [diff] [blame] | 475 | 'memory/discardable_memory_unittest.cc', |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 476 | 'memory/linked_ptr_unittest.cc', |
joth@chromium.org | 42544c8 | 2011-07-22 22:22:23 +0900 | [diff] [blame] | 477 | 'memory/ref_counted_memory_unittest.cc', |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 478 | 'memory/ref_counted_unittest.cc', |
qsr@chromium.org | d85d949 | 2012-02-09 18:50:58 +0900 | [diff] [blame] | 479 | 'memory/scoped_nsobject_unittest.mm', |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 480 | 'memory/scoped_ptr_unittest.cc', |
sergeyu@chromium.org | 1c30aaf | 2012-01-25 09:33:05 +0900 | [diff] [blame] | 481 | 'memory/scoped_ptr_unittest.nc', |
scr@chromium.org | 80f0c1a | 2011-03-29 07:27:34 +0900 | [diff] [blame] | 482 | 'memory/scoped_vector_unittest.cc', |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 483 | 'memory/singleton_unittest.cc', |
| 484 | 'memory/weak_ptr_unittest.cc', |
gavinp@chromium.org | 9dd8b17 | 2012-06-16 01:36:12 +0900 | [diff] [blame] | 485 | 'memory/weak_ptr_unittest.nc', |
sanjeevr@chromium.org | d393cc4 | 2010-05-07 03:34:24 +0900 | [diff] [blame] | 486 | 'message_loop_proxy_impl_unittest.cc', |
ajwong@chromium.org | 545839a | 2011-08-19 08:13:01 +0900 | [diff] [blame] | 487 | 'message_loop_proxy_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 488 | 'message_loop_unittest.cc', |
deanm@chromium.org | bec47f4 | 2009-06-15 19:30:44 +0900 | [diff] [blame] | 489 | 'message_pump_glib_unittest.cc', |
blundell@chromium.org | e21b2aa | 2012-12-01 02:29:40 +0900 | [diff] [blame] | 490 | 'message_pump_io_ios_unittest.cc', |
dmaclach@chromium.org | 482f99a | 2011-05-14 01:19:23 +0900 | [diff] [blame] | 491 | 'message_pump_libevent_unittest.cc', |
kaiwang@chromium.org | ec0e727 | 2012-10-06 06:29:44 +0900 | [diff] [blame] | 492 | 'metrics/sample_map_unittest.cc', |
kaiwang@chromium.org | 0ce37b1 | 2012-09-22 12:42:12 +0900 | [diff] [blame] | 493 | 'metrics/sample_vector_unittest.cc', |
kaiwang@chromium.org | 7c4acad | 2012-07-26 05:02:48 +0900 | [diff] [blame] | 494 | 'metrics/bucket_ranges_unittest.cc', |
brettw@chromium.org | 275c2ec | 2010-10-14 13:38:38 +0900 | [diff] [blame] | 495 | 'metrics/field_trial_unittest.cc', |
kaiwang@chromium.org | e4e800c | 2013-01-12 06:52:44 +0900 | [diff] [blame] | 496 | 'metrics/histogram_base_unittest.cc', |
brettw@chromium.org | 275c2ec | 2010-10-14 13:38:38 +0900 | [diff] [blame] | 497 | 'metrics/histogram_unittest.cc', |
kaiwang@chromium.org | 1864367 | 2012-08-09 14:14:15 +0900 | [diff] [blame] | 498 | 'metrics/sparse_histogram_unittest.cc', |
brettw@chromium.org | 275c2ec | 2010-10-14 13:38:38 +0900 | [diff] [blame] | 499 | 'metrics/stats_table_unittest.cc', |
kaiwang@chromium.org | a97a5ae | 2012-08-02 06:34:08 +0900 | [diff] [blame] | 500 | 'metrics/statistics_recorder_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 501 | 'observer_list_unittest.cc', |
felipeg@chromium.org | 0fdb212 | 2012-07-19 02:26:50 +0900 | [diff] [blame] | 502 | 'os_compat_android_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 503 | 'path_service_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 504 | 'pickle_unittest.cc', |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 505 | 'platform_file_unittest.cc', |
brettw@chromium.org | 04a8ee2 | 2012-11-10 05:22:00 +0900 | [diff] [blame] | 506 | 'posix/file_descriptor_shuffle_unittest.cc', |
glider@google.com | 7a087c4 | 2013-01-18 19:34:29 +0900 | [diff] [blame] | 507 | 'posix/unix_domain_socket_linux_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 508 | 'pr_time_unittest.cc', |
tfarina@chromium.org | 5c811f9 | 2013-01-31 08:31:16 +0900 | [diff] [blame] | 509 | 'prefs/json_pref_store_unittest.cc', |
tfarina@chromium.org | 4bb1a5e | 2013-01-16 22:11:33 +0900 | [diff] [blame] | 510 | 'prefs/overlay_user_pref_store_unittest.cc', |
| 511 | 'prefs/pref_value_map_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 512 | 'process_util_unittest.cc', |
stuartmorgan@chromium.org | 1133545 | 2012-07-12 00:35:02 +0900 | [diff] [blame] | 513 | 'process_util_unittest_ios.cc', |
avi@chromium.org | 4b9545a | 2010-03-20 03:42:41 +0900 | [diff] [blame] | 514 | 'process_util_unittest_mac.h', |
| 515 | 'process_util_unittest_mac.mm', |
jar@chromium.org | 27cf297 | 2011-11-09 02:09:21 +0900 | [diff] [blame] | 516 | 'profiler/tracked_time_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 517 | 'rand_util_unittest.cc', |
scottmg@chromium.org | 347c365 | 2013-01-17 08:34:04 +0900 | [diff] [blame] | 518 | 'safe_numerics_unittest.cc', |
| 519 | 'safe_numerics_unittest.nc', |
thakis@chromium.org | 927d728 | 2011-05-20 08:34:17 +0900 | [diff] [blame] | 520 | 'scoped_native_library_unittest.cc', |
erg@chromium.org | 7827c53 | 2012-06-23 06:47:30 +0900 | [diff] [blame] | 521 | 'scoped_observer.h', |
jln@chromium.org | 4faaf21 | 2013-01-16 05:16:33 +0900 | [diff] [blame] | 522 | 'security_unittest.cc', |
akalin@chromium.org | 4fb2deb | 2012-12-28 04:58:00 +0900 | [diff] [blame] | 523 | 'sequence_checker_unittest.cc', |
| 524 | 'sequence_checker_impl_unittest.cc', |
jhawkins@chromium.org | f64907f | 2009-11-05 04:29:58 +0900 | [diff] [blame] | 525 | 'sha1_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 526 | 'shared_memory_unittest.cc', |
kalman@chromium.org | 028e624 | 2012-12-06 06:40:27 +0900 | [diff] [blame] | 527 | 'stl_util_unittest.cc', |
abarth@chromium.org | d04f708 | 2010-11-14 05:05:47 +0900 | [diff] [blame] | 528 | 'string16_unittest.cc', |
brettw@chromium.org | cbde69a | 2010-07-31 04:28:44 +0900 | [diff] [blame] | 529 | 'string_number_conversions_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 530 | 'string_piece_unittest.cc', |
timsteele@google.com | 2205821 | 2010-01-22 04:29:25 +0900 | [diff] [blame] | 531 | 'string_split_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 532 | 'string_tokenizer_unittest.cc', |
| 533 | 'string_util_unittest.cc', |
brettw@chromium.org | 67cbde4 | 2010-08-17 12:45:37 +0900 | [diff] [blame] | 534 | 'stringprintf_unittest.cc', |
brettw@chromium.org | 34afab2 | 2013-02-01 04:45:02 +0900 | [diff] [blame] | 535 | 'strings/stringize_macros_unittest.cc', |
brettw@chromium.org | 5238c7d | 2011-01-02 15:05:39 +0900 | [diff] [blame] | 536 | 'synchronization/cancellation_flag_unittest.cc', |
brettw@chromium.org | e439a96 | 2011-01-02 08:16:20 +0900 | [diff] [blame] | 537 | 'synchronization/condition_variable_unittest.cc', |
| 538 | 'synchronization/lock_unittest.cc', |
brettw@chromium.org | 5238c7d | 2011-01-02 15:05:39 +0900 | [diff] [blame] | 539 | 'synchronization/waitable_event_unittest.cc', |
| 540 | 'synchronization/waitable_event_watcher_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 541 | 'sys_info_unittest.cc', |
mirandac@chromium.org | 6968934 | 2009-11-09 04:04:54 +0900 | [diff] [blame] | 542 | 'sys_string_conversions_mac_unittest.mm', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 543 | 'sys_string_conversions_unittest.cc', |
willchan@chromium.org | 0fbb868 | 2011-05-18 16:29:56 +0900 | [diff] [blame] | 544 | 'system_monitor/system_monitor_unittest.cc', |
battre@chromium.org | 6d02597 | 2012-04-17 11:48:06 +0900 | [diff] [blame] | 545 | 'task_runner_util_unittest.cc', |
ajwong@chromium.org | e2cca63 | 2011-02-15 10:27:38 +0900 | [diff] [blame] | 546 | 'template_util_unittest.cc', |
rsesek@chromium.org | 083fda4 | 2013-02-01 09:19:28 +0900 | [diff] [blame] | 547 | 'test/expectations/expectation_unittest.cc', |
francoisk777@gmail.com | 8035634 | 2012-04-02 19:16:55 +0900 | [diff] [blame] | 548 | 'test/sequenced_worker_pool_owner.cc', |
| 549 | 'test/sequenced_worker_pool_owner.h', |
jbates@chromium.org | f44a688 | 2011-10-29 12:16:52 +0900 | [diff] [blame] | 550 | 'test/trace_event_analyzer_unittest.cc', |
brettw@chromium.org | 088ae93 | 2011-01-01 13:48:49 +0900 | [diff] [blame] | 551 | 'threading/non_thread_safe_unittest.cc', |
brettw@chromium.org | 6139182 | 2011-01-01 05:02:16 +0900 | [diff] [blame] | 552 | 'threading/platform_thread_unittest.cc', |
brettw@chromium.org | 03d32fd | 2012-01-01 14:42:34 +0900 | [diff] [blame] | 553 | 'threading/sequenced_worker_pool_unittest.cc', |
brettw@chromium.org | 34f964f | 2010-12-31 03:08:36 +0900 | [diff] [blame] | 554 | 'threading/simple_thread_unittest.cc', |
brettw@chromium.org | 6139182 | 2011-01-01 05:02:16 +0900 | [diff] [blame] | 555 | 'threading/thread_checker_unittest.cc', |
brettw@chromium.org | 5b5f5e0 | 2011-01-01 10:01:06 +0900 | [diff] [blame] | 556 | 'threading/thread_collision_warner_unittest.cc', |
dsinclair@chromium.org | 38608f8 | 2013-01-26 05:41:19 +0900 | [diff] [blame] | 557 | 'threading/thread_id_name_manager_unittest.cc', |
brettw@chromium.org | 6396558 | 2010-12-31 07:18:56 +0900 | [diff] [blame] | 558 | 'threading/thread_local_storage_unittest.cc', |
| 559 | 'threading/thread_local_unittest.cc', |
brettw@chromium.org | 5b5f5e0 | 2011-01-01 10:01:06 +0900 | [diff] [blame] | 560 | 'threading/thread_unittest.cc', |
brettw@chromium.org | 34f964f | 2010-12-31 03:08:36 +0900 | [diff] [blame] | 561 | 'threading/watchdog_unittest.cc', |
| 562 | 'threading/worker_pool_posix_unittest.cc', |
| 563 | 'threading/worker_pool_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 564 | 'time_unittest.cc', |
| 565 | 'time_win_unittest.cc', |
| 566 | 'timer_unittest.cc', |
glider@chromium.org | 0f9756f | 2009-12-17 21:37:58 +0900 | [diff] [blame] | 567 | 'tools_sanity_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 568 | 'tracked_objects_unittest.cc', |
| 569 | 'tuple_unittest.cc', |
pkasting@chromium.org | 046cd5a | 2009-11-14 04:27:48 +0900 | [diff] [blame] | 570 | 'utf_offset_string_conversions_unittest.cc', |
pkasting@chromium.org | 4736650 | 2009-11-07 10:34:53 +0900 | [diff] [blame] | 571 | 'utf_string_conversions_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 572 | 'values_unittest.cc', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 573 | 'version_unittest.cc', |
akalin@chromium.org | f0ee79c | 2010-09-30 04:26:36 +0900 | [diff] [blame] | 574 | 'vlog_unittest.cc', |
jar@chromium.org | 92d3dcf | 2011-12-23 07:07:41 +0900 | [diff] [blame] | 575 | 'win/dllmain.cc', |
dmazzoni@chromium.org | b1bdde4 | 2011-12-03 13:31:13 +0900 | [diff] [blame] | 576 | 'win/enum_variant_unittest.cc', |
siggi@chromium.org | 7913ed6 | 2010-11-07 00:39:40 +0900 | [diff] [blame] | 577 | 'win/event_trace_consumer_unittest.cc', |
| 578 | 'win/event_trace_controller_unittest.cc', |
| 579 | 'win/event_trace_provider_unittest.cc', |
grt@chromium.org | ce2cac5 | 2010-11-17 00:28:45 +0900 | [diff] [blame] | 580 | 'win/i18n_unittest.cc', |
dmazzoni@chromium.org | b1bdde4 | 2011-12-03 13:31:13 +0900 | [diff] [blame] | 581 | 'win/iunknown_impl_unittest.cc', |
brettw@google.com | 3890ab3 | 2011-01-02 03:26:16 +0900 | [diff] [blame] | 582 | 'win/object_watcher_unittest.cc', |
brettw@chromium.org | b3a7c3e | 2010-10-17 13:41:54 +0900 | [diff] [blame] | 583 | 'win/pe_image_unittest.cc', |
| 584 | 'win/registry_unittest.cc', |
siggi@chromium.org | db0946f | 2011-12-08 06:44:28 +0900 | [diff] [blame] | 585 | 'win/sampling_profiler_unittest.cc', |
brettw@chromium.org | 4535227 | 2010-10-16 12:46:05 +0900 | [diff] [blame] | 586 | 'win/scoped_bstr_unittest.cc', |
| 587 | 'win/scoped_comptr_unittest.cc', |
rvargas@google.com | c59177f | 2012-12-22 09:21:10 +0900 | [diff] [blame] | 588 | 'win/scoped_handle_unittest.cc', |
erikwright@chromium.org | 8222384 | 2012-04-05 04:57:50 +0900 | [diff] [blame] | 589 | 'win/scoped_process_information_unittest.cc', |
gab@chromium.org | c669f0d | 2012-09-12 16:14:55 +0900 | [diff] [blame] | 590 | 'win/shortcut_unittest.cc', |
jschuh@chromium.org | c5a4fd9 | 2012-08-28 06:19:00 +0900 | [diff] [blame] | 591 | 'win/startup_information_unittest.cc', |
brettw@chromium.org | 4535227 | 2010-10-16 12:46:05 +0900 | [diff] [blame] | 592 | 'win/scoped_variant_unittest.cc', |
brettw@google.com | f4fe79b | 2011-01-01 02:18:50 +0900 | [diff] [blame] | 593 | 'win/win_util_unittest.cc', |
rvargas@google.com | ed1496e | 2011-03-17 09:34:09 +0900 | [diff] [blame] | 594 | 'win/wrapped_window_proc_unittest.cc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 595 | ], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 596 | 'dependencies': [ |
| 597 | 'base', |
brettw@chromium.org | 67eb77e | 2009-10-15 07:06:14 +0900 | [diff] [blame] | 598 | 'base_i18n', |
tfarina@chromium.org | 4bb1a5e | 2013-01-16 22:11:33 +0900 | [diff] [blame] | 599 | 'base_prefs_test_support', |
rvargas@google.com | 57a4396 | 2011-04-05 07:42:46 +0900 | [diff] [blame] | 600 | 'base_static', |
akalin@chromium.org | 4158e99 | 2012-03-21 14:55:06 +0900 | [diff] [blame] | 601 | 'run_all_unittests', |
brettw@chromium.org | 694bb6f | 2010-08-16 13:18:41 +0900 | [diff] [blame] | 602 | 'test_support_base', |
rvargas@google.com | 97a20ec | 2011-04-22 07:22:10 +0900 | [diff] [blame] | 603 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
ajwong@chromium.org | e2f951e | 2009-05-28 16:23:16 +0900 | [diff] [blame] | 604 | '../testing/gmock.gyp:gmock', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 605 | '../testing/gtest.gyp:gtest', |
kinaba@google.com | 7f3f242 | 2011-05-30 20:45:43 +0900 | [diff] [blame] | 606 | '../third_party/icu/icu.gyp:icui18n', |
| 607 | '../third_party/icu/icu.gyp:icuuc', |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 608 | ], |
ajwong@chromium.org | 505386d | 2011-09-10 12:03:00 +0900 | [diff] [blame] | 609 | 'includes': ['../build/nocompile.gypi'], |
| 610 | 'variables': { |
| 611 | # TODO(ajwong): Is there a way to autodetect this? |
| 612 | 'module_dir': 'base' |
| 613 | }, |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 614 | 'conditions': [ |
michaelbai@google.com | 7cdf8a5 | 2011-10-04 01:25:19 +0900 | [diff] [blame] | 615 | ['OS == "android"', { |
bulach@chromium.org | 6079a07 | 2012-02-24 09:09:38 +0900 | [diff] [blame] | 616 | 'dependencies': [ |
bulach@chromium.org | f9326a0 | 2012-03-08 21:39:13 +0900 | [diff] [blame] | 617 | 'android/jni_generator/jni_generator.gyp:jni_generator_tests', |
bulach@chromium.org | 6079a07 | 2012-02-24 09:09:38 +0900 | [diff] [blame] | 618 | ], |
nileshagrawal@chromium.org | 77ab0bc | 2012-04-27 05:19:47 +0900 | [diff] [blame] | 619 | 'conditions': [ |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 620 | ['gtest_target_type == "shared_library"', { |
nileshagrawal@chromium.org | 77ab0bc | 2012-04-27 05:19:47 +0900 | [diff] [blame] | 621 | 'dependencies': [ |
| 622 | '../testing/android/native_test.gyp:native_test_native_code', |
| 623 | ], |
nileshagrawal@chromium.org | 77ab0bc | 2012-04-27 05:19:47 +0900 | [diff] [blame] | 624 | }], |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 625 | ], |
phajdan.jr@chromium.org | a912a2f | 2012-11-15 04:32:23 +0900 | [diff] [blame] | 626 | 'sources!': [ |
| 627 | # Broken on Android, and already disabled there. |
| 628 | 'debug/stack_trace_unittest.cc', |
| 629 | ], |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 630 | }], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 631 | ['OS == "ios"', { |
| 632 | 'sources/': [ |
| 633 | # Only test the iOS-meaningful portion of process_utils. |
| 634 | ['exclude', '^process_util_unittest'], |
rohitrao@chromium.org | dcc4902 | 2012-07-13 20:02:57 +0900 | [diff] [blame] | 635 | ['include', '^process_util_unittest_ios\\.cc$'], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 636 | # Requires spawning processes. |
rohitrao@chromium.org | dcc4902 | 2012-07-13 20:02:57 +0900 | [diff] [blame] | 637 | ['exclude', '^metrics/stats_table_unittest\\.cc$'], |
blundell@chromium.org | e21b2aa | 2012-12-01 02:29:40 +0900 | [diff] [blame] | 638 | # iOS does not use message_pump_libevent. |
| 639 | ['exclude', '^message_pump_libevent_unittest\\.cc$'], |
tfarina@chromium.org | 5c811f9 | 2013-01-31 08:31:16 +0900 | [diff] [blame] | 640 | ['exclude', '^prefs/json_pref_store_unittest.\\cc$'], |
| 641 | |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 642 | ], |
stuartmorgan@chromium.org | 86a6488 | 2012-10-13 04:07:03 +0900 | [diff] [blame] | 643 | 'conditions': [ |
| 644 | ['coverage != 0', { |
stuartmorgan@chromium.org | 86a6488 | 2012-10-13 04:07:03 +0900 | [diff] [blame] | 645 | 'sources!': [ |
lliabraa@chromium.org | d83799b | 2012-10-16 21:13:14 +0900 | [diff] [blame] | 646 | # These sources can't be built with coverage due to a toolchain |
| 647 | # bug: http://openradar.appspot.com/radar?id=1499403 |
stuartmorgan@chromium.org | 86a6488 | 2012-10-13 04:07:03 +0900 | [diff] [blame] | 648 | 'json/json_reader_unittest.cc', |
| 649 | 'string_piece_unittest.cc', |
lliabraa@chromium.org | d83799b | 2012-10-16 21:13:14 +0900 | [diff] [blame] | 650 | |
| 651 | # These tests crash when run with coverage turned on due to an |
| 652 | # issue with llvm_gcda_increment_indirect_counter: |
| 653 | # http://crbug.com/156058 |
| 654 | 'debug/trace_event_unittest.cc', |
| 655 | 'debug/trace_event_unittest.h', |
| 656 | 'logging_unittest.cc', |
| 657 | 'string_util_unittest.cc', |
| 658 | 'test/trace_event_analyzer_unittest.cc', |
| 659 | 'utf_offset_string_conversions_unittest.cc', |
stuartmorgan@chromium.org | 86a6488 | 2012-10-13 04:07:03 +0900 | [diff] [blame] | 660 | ], |
| 661 | }], |
| 662 | ], |
rohitrao@chromium.org | 6cbedab | 2012-07-17 23:15:34 +0900 | [diff] [blame] | 663 | 'actions': [ |
| 664 | { |
| 665 | 'action_name': 'copy_test_data', |
| 666 | 'variables': { |
| 667 | 'test_data_files': [ |
| 668 | 'data/json/bom_feff.json', |
| 669 | 'data/file_util_unittest', |
| 670 | ], |
| 671 | 'test_data_prefix': 'base', |
| 672 | }, |
| 673 | 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 674 | }, |
| 675 | ], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 676 | }], |
sadrul@chromium.org | 847a572 | 2011-09-21 09:17:19 +0900 | [diff] [blame] | 677 | ['use_glib==1', { |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 678 | 'sources!': [ |
| 679 | 'file_version_info_unittest.cc', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 680 | ], |
willchan@chromium.org | e6bcfff | 2010-10-20 04:09:30 +0900 | [diff] [blame] | 681 | 'conditions': [ |
akalin@chromium.org | 5afaca3 | 2012-11-30 09:19:17 +0900 | [diff] [blame] | 682 | [ 'linux_use_tcmalloc==1', { |
| 683 | 'dependencies': [ |
| 684 | 'allocator/allocator.gyp:allocator', |
| 685 | ], |
| 686 | }, |
| 687 | ], |
sadrul@chromium.org | 847a572 | 2011-09-21 09:17:19 +0900 | [diff] [blame] | 688 | [ 'toolkit_uses_gtk==1', { |
| 689 | 'sources': [ |
| 690 | 'nix/xdg_util_unittest.cc', |
| 691 | ], |
| 692 | 'dependencies': [ |
| 693 | '../build/linux/system.gyp:gtk', |
| 694 | ] |
| 695 | }], |
willchan@chromium.org | e6bcfff | 2010-10-20 04:09:30 +0900 | [diff] [blame] | 696 | ], |
sgk@google.com | 300c875 | 2009-03-21 08:13:26 +0900 | [diff] [blame] | 697 | 'dependencies': [ |
sadrul@chromium.org | 847a572 | 2011-09-21 09:17:19 +0900 | [diff] [blame] | 698 | '../build/linux/system.gyp:glib', |
mirandac@chromium.org | 1d9e649 | 2011-06-01 02:19:30 +0900 | [diff] [blame] | 699 | '../build/linux/system.gyp:ssl', |
thestig@chromium.org | b5e3334 | 2009-09-18 06:37:19 +0900 | [diff] [blame] | 700 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
sgk@google.com | 300c875 | 2009-03-21 08:13:26 +0900 | [diff] [blame] | 701 | ], |
sadrul@chromium.org | 847a572 | 2011-09-21 09:17:19 +0900 | [diff] [blame] | 702 | }, { # use_glib!=1 |
deanm@chromium.org | bec47f4 | 2009-06-15 19:30:44 +0900 | [diff] [blame] | 703 | 'sources!': [ |
| 704 | 'message_pump_glib_unittest.cc', |
| 705 | ] |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 706 | }], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 707 | # This is needed to trigger the dll copy step on windows. |
| 708 | # TODO(mark): This should not be necessary. |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 709 | ['OS == "win"', { |
| 710 | 'dependencies': [ |
jshin@chromium.org | 5b8504c | 2009-09-09 15:49:08 +0900 | [diff] [blame] | 711 | '../third_party/icu/icu.gyp:icudata', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 712 | ], |
| 713 | 'sources!': [ |
agl@chromium.org | f9d9126 | 2009-05-01 04:40:03 +0900 | [diff] [blame] | 714 | 'file_descriptor_shuffle_unittest.cc', |
brettw@chromium.org | bf3eb52 | 2012-06-30 06:09:14 +0900 | [diff] [blame] | 715 | 'files/dir_reader_posix_unittest.cc', |
brettw@chromium.org | 975db2b | 2010-12-31 03:29:28 +0900 | [diff] [blame] | 716 | 'threading/worker_pool_posix_unittest.cc', |
dmaclach@chromium.org | 482f99a | 2011-05-14 01:19:23 +0900 | [diff] [blame] | 717 | 'message_pump_libevent_unittest.cc', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 718 | ], |
jschuh@chromium.org | b8f6aa5 | 2013-01-10 08:18:29 +0900 | [diff] [blame] | 719 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 720 | 'msvs_disabled_warnings': [ |
| 721 | 4267, |
| 722 | ], |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 723 | }, { # OS != "win" |
phajdan.jr@chromium.org | 01b9278 | 2011-08-05 07:23:55 +0900 | [diff] [blame] | 724 | 'dependencies': [ |
| 725 | '../third_party/libevent/libevent.gyp:libevent' |
| 726 | ], |
brettw@chromium.org | 4535227 | 2010-10-16 12:46:05 +0900 | [diff] [blame] | 727 | 'sources/': [ |
| 728 | ['exclude', '^win/'], |
| 729 | ], |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 730 | 'sources!': [ |
sadrul@chromium.org | 9bb2c1a | 2011-05-25 09:20:42 +0900 | [diff] [blame] | 731 | 'debug/trace_event_win_unittest.cc', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 732 | 'time_win_unittest.cc', |
sadrul@chromium.org | 9bb2c1a | 2011-05-25 09:20:42 +0900 | [diff] [blame] | 733 | 'win/win_util_unittest.cc', |
mark@chromium.org | 828adfd | 2009-03-02 15:53:31 +0900 | [diff] [blame] | 734 | ], |
| 735 | }], |
phajdan.jr@chromium.org | d9ff9c9 | 2013-01-09 01:49:07 +0900 | [diff] [blame] | 736 | ['use_system_nspr==1', { |
| 737 | 'dependencies': [ |
| 738 | 'third_party/nspr/nspr.gyp:nspr', |
| 739 | ], |
| 740 | }], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 741 | ], # conditions |
| 742 | 'target_conditions': [ |
| 743 | ['OS == "ios"', { |
| 744 | 'sources/': [ |
| 745 | # Pull in specific Mac files for iOS (which have been filtered out |
| 746 | # by file name rules). |
rohitrao@chromium.org | dcc4902 | 2012-07-13 20:02:57 +0900 | [diff] [blame] | 747 | ['include', '^mac/objc_property_releaser_unittest\\.mm$'], |
noyau@chromium.org | c2ad949 | 2012-07-26 02:47:58 +0900 | [diff] [blame] | 748 | ['include', '^mac/bind_objc_block_unittest\\.mm$'], |
rohitrao@chromium.org | dcc4902 | 2012-07-13 20:02:57 +0900 | [diff] [blame] | 749 | ['include', '^sys_string_conversions_mac_unittest\\.mm$'], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 750 | ], |
| 751 | }], |
| 752 | ], # target_conditions |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 753 | }, |
sgk@google.com | 2b059ed | 2009-03-17 08:46:45 +0900 | [diff] [blame] | 754 | { |
| 755 | 'target_name': 'test_support_base', |
evan@chromium.org | 0b930f2 | 2011-05-20 08:18:53 +0900 | [diff] [blame] | 756 | 'type': 'static_library', |
sgk@google.com | 2b059ed | 2009-03-17 08:46:45 +0900 | [diff] [blame] | 757 | 'dependencies': [ |
| 758 | 'base', |
rvargas@google.com | 97a20ec | 2011-04-22 07:22:10 +0900 | [diff] [blame] | 759 | 'base_static', |
brettw@chromium.org | f485079 | 2010-08-16 13:42:26 +0900 | [diff] [blame] | 760 | 'base_i18n', |
brettw@chromium.org | 694bb6f | 2010-08-16 13:18:41 +0900 | [diff] [blame] | 761 | '../testing/gmock.gyp:gmock', |
| 762 | '../testing/gtest.gyp:gtest', |
phajdan.jr@chromium.org | f02d144 | 2009-08-04 03:35:06 +0900 | [diff] [blame] | 763 | ], |
rvargas@google.com | 97a20ec | 2011-04-22 07:22:10 +0900 | [diff] [blame] | 764 | 'export_dependent_settings': [ |
| 765 | 'base', |
| 766 | ], |
brettw@chromium.org | f485079 | 2010-08-16 13:42:26 +0900 | [diff] [blame] | 767 | 'conditions': [ |
mark@chromium.org | 639d3b5 | 2011-05-13 03:18:34 +0900 | [diff] [blame] | 768 | ['toolkit_uses_gtk==1', { |
brettw@chromium.org | f485079 | 2010-08-16 13:42:26 +0900 | [diff] [blame] | 769 | 'dependencies': [ |
| 770 | # test_suite initializes GTK. |
| 771 | '../build/linux/system.gyp:gtk', |
| 772 | ], |
| 773 | }], |
joaodasilva@chromium.org | efe510f | 2011-06-21 02:44:05 +0900 | [diff] [blame] | 774 | ['os_posix==0', { |
| 775 | 'sources!': [ |
| 776 | 'test/scoped_locale.cc', |
| 777 | 'test/scoped_locale.h', |
| 778 | ], |
| 779 | }], |
robert.nagy@gmail.com | bddca34 | 2011-11-23 08:41:45 +0900 | [diff] [blame] | 780 | ['os_bsd==1', { |
robert.nagy@gmail.com | ea54e46 | 2011-10-25 07:05:27 +0900 | [diff] [blame] | 781 | 'sources!': [ |
| 782 | 'test/test_file_util_linux.cc', |
| 783 | ], |
| 784 | }], |
brettw@chromium.org | f485079 | 2010-08-16 13:42:26 +0900 | [diff] [blame] | 785 | ], |
phajdan.jr@chromium.org | f02d144 | 2009-08-04 03:35:06 +0900 | [diff] [blame] | 786 | 'sources': [ |
brettw@chromium.org | e0a88f3 | 2010-10-10 11:42:32 +0900 | [diff] [blame] | 787 | 'perftimer.cc', |
rsesek@chromium.org | 083fda4 | 2013-02-01 09:19:28 +0900 | [diff] [blame] | 788 | 'test/expectations/expectation.cc', |
| 789 | 'test/expectations/expectation.h', |
leng@chromium.org | c9ca67f | 2012-07-13 18:21:34 +0900 | [diff] [blame] | 790 | 'test/main_hook.cc', |
| 791 | 'test/main_hook.h', |
| 792 | 'test/main_hook_ios.mm', |
thakis@chromium.org | 5e43599 | 2010-12-18 10:18:29 +0900 | [diff] [blame] | 793 | 'test/mock_chrome_application_mac.h', |
| 794 | 'test/mock_chrome_application_mac.mm', |
vandebo@chromium.org | fab003a | 2012-03-03 08:13:40 +0900 | [diff] [blame] | 795 | 'test/mock_devices_changed_observer.cc', |
| 796 | 'test/mock_devices_changed_observer.h', |
stevet@chromium.org | e493ba3 | 2011-06-28 23:29:06 +0900 | [diff] [blame] | 797 | 'test/mock_time_provider.cc', |
| 798 | 'test/mock_time_provider.h', |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 799 | 'test/multiprocess_test.cc', |
| 800 | 'test/multiprocess_test.h', |
nileshagrawal@chromium.org | 11fadcd | 2012-05-30 04:36:32 +0900 | [diff] [blame] | 801 | 'test/multiprocess_test_android.cc', |
akalin@chromium.org | 4fb2deb | 2012-12-28 04:58:00 +0900 | [diff] [blame] | 802 | 'test/null_task_runner.cc', |
| 803 | 'test/null_task_runner.h', |
brettw@chromium.org | afb572a | 2010-10-10 09:21:35 +0900 | [diff] [blame] | 804 | 'test/perf_test_suite.cc', |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 805 | 'test/perf_test_suite.h', |
joaodasilva@chromium.org | efe510f | 2011-06-21 02:44:05 +0900 | [diff] [blame] | 806 | 'test/scoped_locale.cc', |
| 807 | 'test/scoped_locale.h', |
pastarmovj@chromium.org | e61bf33 | 2012-09-27 09:45:36 +0900 | [diff] [blame] | 808 | 'test/scoped_path_override.cc', |
| 809 | 'test/scoped_path_override.h', |
francoisk777@gmail.com | 8035634 | 2012-04-02 19:16:55 +0900 | [diff] [blame] | 810 | 'test/sequenced_task_runner_test_template.cc', |
| 811 | 'test/sequenced_task_runner_test_template.h', |
akalin@chromium.org | 38d2e29 | 2012-03-09 15:20:18 +0900 | [diff] [blame] | 812 | 'test/task_runner_test_template.cc', |
| 813 | 'test/task_runner_test_template.h', |
brettw@chromium.org | a52632f | 2009-10-10 03:20:30 +0900 | [diff] [blame] | 814 | 'test/test_file_util.h', |
| 815 | 'test/test_file_util_linux.cc', |
| 816 | 'test/test_file_util_mac.cc', |
| 817 | 'test/test_file_util_posix.cc', |
| 818 | 'test/test_file_util_win.cc', |
leng@chromium.org | c9ca67f | 2012-07-13 18:21:34 +0900 | [diff] [blame] | 819 | 'test/test_listener_ios.h', |
| 820 | 'test/test_listener_ios.mm', |
akalin@chromium.org | 1955a28 | 2012-12-20 07:18:29 +0900 | [diff] [blame] | 821 | 'test/test_pending_task.cc', |
| 822 | 'test/test_pending_task.h', |
rogerta@chromium.org | ea6545c | 2011-08-25 05:02:42 +0900 | [diff] [blame] | 823 | 'test/test_reg_util_win.cc', |
| 824 | 'test/test_reg_util_win.h', |
gab@chromium.org | c669f0d | 2012-09-12 16:14:55 +0900 | [diff] [blame] | 825 | 'test/test_shortcut_win.cc', |
| 826 | 'test/test_shortcut_win.h', |
akalin@chromium.org | 1955a28 | 2012-12-20 07:18:29 +0900 | [diff] [blame] | 827 | 'test/test_simple_task_runner.cc', |
| 828 | 'test/test_simple_task_runner.h', |
brettw@chromium.org | 694bb6f | 2010-08-16 13:18:41 +0900 | [diff] [blame] | 829 | 'test/test_suite.cc', |
| 830 | 'test/test_suite.h', |
wangxianzhu@chromium.org | 8df22a6 | 2012-06-02 02:20:04 +0900 | [diff] [blame] | 831 | 'test/test_support_android.cc', |
| 832 | 'test/test_support_android.h', |
rohitrao@chromium.org | a8e028e | 2012-07-26 04:38:38 +0900 | [diff] [blame] | 833 | 'test/test_support_ios.h', |
| 834 | 'test/test_support_ios.mm', |
sergeyu@chromium.org | 0f6abbc | 2010-10-06 04:03:05 +0900 | [diff] [blame] | 835 | 'test/test_switches.cc', |
| 836 | 'test/test_switches.h', |
| 837 | 'test/test_timeouts.cc', |
| 838 | 'test/test_timeouts.h', |
jochen@chromium.org | f559333 | 2011-06-28 15:43:20 +0900 | [diff] [blame] | 839 | 'test/thread_test_helper.cc', |
| 840 | 'test/thread_test_helper.h', |
jbates@chromium.org | f44a688 | 2011-10-29 12:16:52 +0900 | [diff] [blame] | 841 | 'test/trace_event_analyzer.cc', |
| 842 | 'test/trace_event_analyzer.h', |
akalin@chromium.org | d79b68c | 2012-02-29 12:57:29 +0900 | [diff] [blame] | 843 | 'test/values_test_util.cc', |
| 844 | 'test/values_test_util.h', |
phajdan.jr@chromium.org | f02d144 | 2009-08-04 03:35:06 +0900 | [diff] [blame] | 845 | ], |
msarda@chromium.org | 75a27f9 | 2012-09-05 19:18:39 +0900 | [diff] [blame] | 846 | 'target_conditions': [ |
| 847 | ['OS == "ios"', { |
| 848 | 'sources/': [ |
| 849 | # Pull in specific Mac files for iOS (which have been filtered out |
| 850 | # by file name rules). |
| 851 | ['include', '^test/test_file_util_mac\\.cc$'], |
| 852 | ], |
| 853 | }], |
| 854 | ], # target_conditions |
phajdan.jr@chromium.org | f02d144 | 2009-08-04 03:35:06 +0900 | [diff] [blame] | 855 | }, |
| 856 | { |
| 857 | 'target_name': 'test_support_perf', |
evan@chromium.org | 0b930f2 | 2011-05-20 08:18:53 +0900 | [diff] [blame] | 858 | 'type': 'static_library', |
phajdan.jr@chromium.org | f02d144 | 2009-08-04 03:35:06 +0900 | [diff] [blame] | 859 | 'dependencies': [ |
| 860 | 'base', |
sgk@google.com | 2b059ed | 2009-03-17 08:46:45 +0900 | [diff] [blame] | 861 | '../testing/gtest.gyp:gtest', |
| 862 | ], |
| 863 | 'sources': [ |
| 864 | 'perftimer.cc', |
brettw@chromium.org | a52632f | 2009-10-10 03:20:30 +0900 | [diff] [blame] | 865 | 'test/run_all_perftests.cc', |
sgk@google.com | 2b059ed | 2009-03-17 08:46:45 +0900 | [diff] [blame] | 866 | ], |
| 867 | 'direct_dependent_settings': { |
| 868 | 'defines': [ |
| 869 | 'PERF_TEST', |
| 870 | ], |
| 871 | }, |
sgk@google.com | 300c875 | 2009-03-21 08:13:26 +0900 | [diff] [blame] | 872 | 'conditions': [ |
mark@chromium.org | 639d3b5 | 2011-05-13 03:18:34 +0900 | [diff] [blame] | 873 | ['toolkit_uses_gtk==1', { |
sgk@google.com | 300c875 | 2009-03-21 08:13:26 +0900 | [diff] [blame] | 874 | 'dependencies': [ |
| 875 | # Needed to handle the #include chain: |
brettw@chromium.org | a52632f | 2009-10-10 03:20:30 +0900 | [diff] [blame] | 876 | # base/test/perf_test_suite.h |
| 877 | # base/test/test_suite.h |
sgk@google.com | 300c875 | 2009-03-21 08:13:26 +0900 | [diff] [blame] | 878 | # gtk/gtk.h |
| 879 | '../build/linux/system.gyp:gtk', |
| 880 | ], |
| 881 | }], |
| 882 | ], |
sgk@google.com | 2b059ed | 2009-03-17 08:46:45 +0900 | [diff] [blame] | 883 | }, |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 884 | ], |
| 885 | 'conditions': [ |
stuartmorgan@chromium.org | d4a108f | 2012-07-16 19:12:33 +0900 | [diff] [blame] | 886 | ['OS!="ios"', { |
| 887 | 'targets': [ |
| 888 | { |
| 889 | 'target_name': 'check_example', |
| 890 | 'type': 'executable', |
| 891 | 'sources': [ |
| 892 | 'check_example.cc', |
| 893 | ], |
| 894 | 'dependencies': [ |
| 895 | 'base', |
| 896 | ], |
| 897 | }, |
| 898 | ], |
| 899 | }], |
bradnelson@google.com | e7fc5fd | 2013-01-22 08:23:57 +0900 | [diff] [blame] | 900 | ['OS == "win" and target_arch=="ia32"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 901 | 'targets': [ |
| 902 | { |
| 903 | 'target_name': 'base_nacl_win64', |
| 904 | 'type': '<(component)', |
| 905 | 'variables': { |
| 906 | 'base_target': 1, |
| 907 | }, |
| 908 | 'dependencies': [ |
| 909 | 'base_static_win64', |
| 910 | 'allocator/allocator.gyp:allocator_extension_thunks_win64', |
| 911 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', |
| 912 | ], |
| 913 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 914 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 915 | 'direct_dependent_settings': { |
| 916 | 'include_dirs': [ |
| 917 | '..', |
| 918 | ], |
| 919 | }, |
| 920 | 'defines': [ |
| 921 | '<@(nacl_win64_defines)', |
| 922 | ], |
sergeyu@chromium.org | e258591 | 2012-07-27 07:53:13 +0900 | [diff] [blame] | 923 | 'sources!': [ |
| 924 | # base64.cc depends on modp_b64. |
| 925 | 'base64.cc', |
| 926 | ], |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 927 | 'configurations': { |
| 928 | 'Common_Base': { |
| 929 | 'msvs_target_platform': 'x64', |
| 930 | }, |
| 931 | }, |
| 932 | 'conditions': [ |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 933 | ['component == "shared_library"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 934 | 'sources!': [ |
| 935 | 'debug/debug_on_start_win.cc', |
| 936 | ], |
| 937 | }], |
| 938 | ], |
| 939 | }, |
| 940 | { |
| 941 | 'target_name': 'base_i18n_nacl_win64', |
| 942 | 'type': '<(component)', |
| 943 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 944 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 945 | 'direct_dependent_settings': { |
| 946 | 'include_dirs': [ |
| 947 | '..', |
| 948 | ], |
| 949 | }, |
| 950 | 'defines': [ |
| 951 | '<@(nacl_win64_defines)', |
| 952 | 'BASE_I18N_IMPLEMENTATION', |
| 953 | ], |
| 954 | 'include_dirs': [ |
| 955 | '..', |
| 956 | ], |
| 957 | 'sources': [ |
| 958 | 'i18n/icu_util_nacl_win64.cc', |
| 959 | ], |
| 960 | 'configurations': { |
| 961 | 'Common_Base': { |
| 962 | 'msvs_target_platform': 'x64', |
| 963 | }, |
| 964 | }, |
| 965 | }, |
bradnelson@google.com | e7fc5fd | 2013-01-22 08:23:57 +0900 | [diff] [blame] | 966 | { |
| 967 | # TODO(rvargas): Remove this when gyp finally supports a clean model. |
| 968 | # See bug 36232. |
| 969 | 'target_name': 'base_static_win64', |
| 970 | 'type': 'static_library', |
| 971 | 'sources': [ |
| 972 | 'base_switches.cc', |
| 973 | 'base_switches.h', |
| 974 | 'win/pe_image.cc', |
| 975 | 'win/pe_image.h', |
| 976 | ], |
| 977 | 'sources!': [ |
| 978 | # base64.cc depends on modp_b64. |
| 979 | 'base64.cc', |
| 980 | ], |
| 981 | 'include_dirs': [ |
| 982 | '..', |
| 983 | ], |
| 984 | 'configurations': { |
| 985 | 'Common_Base': { |
| 986 | 'msvs_target_platform': 'x64', |
| 987 | }, |
| 988 | }, |
| 989 | 'defines': [ |
| 990 | 'NACL_WIN64', |
| 991 | ], |
| 992 | # TODO(rvargas): Bug 78117. Remove this. |
| 993 | 'msvs_disabled_warnings': [ |
| 994 | 4244, |
| 995 | ], |
| 996 | }, |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 997 | ], |
| 998 | }], |
stuartmorgan@chromium.org | 894c3dc | 2012-07-12 00:09:10 +0900 | [diff] [blame] | 999 | ['os_posix==1 and OS!="mac" and OS!="ios"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 1000 | 'targets': [ |
| 1001 | { |
| 1002 | 'target_name': 'symbolize', |
| 1003 | 'type': 'static_library', |
| 1004 | 'toolsets': ['host', 'target'], |
| 1005 | 'variables': { |
| 1006 | 'chromium_code': 0, |
| 1007 | }, |
| 1008 | 'conditions': [ |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 1009 | ['OS == "solaris"', { |
bradnelson@google.com | 130e766 | 2012-06-08 03:43:44 +0900 | [diff] [blame] | 1010 | 'include_dirs': [ |
| 1011 | '/usr/gnu/include', |
| 1012 | '/usr/gnu/include/libelf', |
| 1013 | ], |
| 1014 | },], |
| 1015 | ], |
| 1016 | 'cflags': [ |
| 1017 | '-Wno-sign-compare', |
| 1018 | ], |
| 1019 | 'cflags!': [ |
| 1020 | '-Wextra', |
| 1021 | ], |
| 1022 | 'sources': [ |
| 1023 | 'third_party/symbolize/config.h', |
| 1024 | 'third_party/symbolize/demangle.cc', |
| 1025 | 'third_party/symbolize/demangle.h', |
| 1026 | 'third_party/symbolize/glog/logging.h', |
| 1027 | 'third_party/symbolize/glog/raw_logging.h', |
| 1028 | 'third_party/symbolize/symbolize.cc', |
| 1029 | 'third_party/symbolize/symbolize.h', |
| 1030 | 'third_party/symbolize/utilities.h', |
| 1031 | ], |
| 1032 | 'include_dirs': [ |
| 1033 | '..', |
| 1034 | ], |
| 1035 | }, |
| 1036 | { |
| 1037 | 'target_name': 'xdg_mime', |
| 1038 | 'type': 'static_library', |
| 1039 | 'toolsets': ['host', 'target'], |
| 1040 | 'variables': { |
| 1041 | 'chromium_code': 0, |
| 1042 | }, |
| 1043 | 'cflags!': [ |
| 1044 | '-Wextra', |
| 1045 | ], |
| 1046 | 'sources': [ |
| 1047 | 'third_party/xdg_mime/xdgmime.c', |
| 1048 | 'third_party/xdg_mime/xdgmime.h', |
| 1049 | 'third_party/xdg_mime/xdgmimealias.c', |
| 1050 | 'third_party/xdg_mime/xdgmimealias.h', |
| 1051 | 'third_party/xdg_mime/xdgmimecache.c', |
| 1052 | 'third_party/xdg_mime/xdgmimecache.h', |
| 1053 | 'third_party/xdg_mime/xdgmimeglob.c', |
| 1054 | 'third_party/xdg_mime/xdgmimeglob.h', |
| 1055 | 'third_party/xdg_mime/xdgmimeicon.c', |
| 1056 | 'third_party/xdg_mime/xdgmimeicon.h', |
| 1057 | 'third_party/xdg_mime/xdgmimeint.c', |
| 1058 | 'third_party/xdg_mime/xdgmimeint.h', |
| 1059 | 'third_party/xdg_mime/xdgmimemagic.c', |
| 1060 | 'third_party/xdg_mime/xdgmimemagic.h', |
| 1061 | 'third_party/xdg_mime/xdgmimeparent.c', |
| 1062 | 'third_party/xdg_mime/xdgmimeparent.h', |
| 1063 | ], |
| 1064 | }, |
| 1065 | ], |
| 1066 | }], |
yfriedman@chromium.org | 71995f3 | 2012-04-17 13:39:52 +0900 | [diff] [blame] | 1067 | ['OS == "android"', { |
| 1068 | 'targets': [ |
| 1069 | { |
| 1070 | 'target_name': 'base_jni_headers', |
| 1071 | 'type': 'none', |
bulach@chromium.org | 4c248ed | 2012-07-20 05:02:55 +0900 | [diff] [blame] | 1072 | 'sources': [ |
| 1073 | 'android/java/src/org/chromium/base/BuildInfo.java', |
digit@chromium.org | fcf6b52 | 2013-01-10 02:09:24 +0900 | [diff] [blame] | 1074 | 'android/java/src/org/chromium/base/CpuFeatures.java', |
bulach@chromium.org | 4c248ed | 2012-07-20 05:02:55 +0900 | [diff] [blame] | 1075 | 'android/java/src/org/chromium/base/LocaleUtils.java', |
benm@chromium.org | af3548e | 2012-08-03 21:43:29 +0900 | [diff] [blame] | 1076 | 'android/java/src/org/chromium/base/PathService.java', |
bulach@chromium.org | 4c248ed | 2012-07-20 05:02:55 +0900 | [diff] [blame] | 1077 | 'android/java/src/org/chromium/base/PathUtils.java', |
| 1078 | 'android/java/src/org/chromium/base/SystemMessageHandler.java', |
bulach@chromium.org | acb2f59 | 2012-10-16 20:58:08 +0900 | [diff] [blame] | 1079 | 'android/java/src/org/chromium/base/SystemMonitor.java', |
james.wei@intel.com | 07a8562 | 2013-01-30 15:24:49 +0900 | [diff] [blame] | 1080 | 'android/java/src/org/chromium/base/ThreadUtils.java', |
bulach@chromium.org | 4c248ed | 2012-07-20 05:02:55 +0900 | [diff] [blame] | 1081 | ], |
yfriedman@chromium.org | 71995f3 | 2012-04-17 13:39:52 +0900 | [diff] [blame] | 1082 | 'variables': { |
bulach@chromium.org | 4c248ed | 2012-07-20 05:02:55 +0900 | [diff] [blame] | 1083 | 'jni_gen_dir': 'base', |
yfriedman@chromium.org | 71995f3 | 2012-04-17 13:39:52 +0900 | [diff] [blame] | 1084 | }, |
| 1085 | 'includes': [ '../build/jni_generator.gypi' ], |
| 1086 | }, |
| 1087 | { |
| 1088 | 'target_name': 'base_java', |
| 1089 | 'type': 'none', |
| 1090 | 'variables': { |
| 1091 | 'package_name': 'base', |
cjhopman@chromium.org | 3d68445 | 2012-09-13 10:44:03 +0900 | [diff] [blame] | 1092 | 'java_in_dir': '../base/android/java', |
yfriedman@chromium.org | 71995f3 | 2012-04-17 13:39:52 +0900 | [diff] [blame] | 1093 | }, |
| 1094 | 'includes': [ '../build/java.gypi' ], |
| 1095 | }, |
jnd@chromium.org | 996e15c | 2012-09-01 03:27:55 +0900 | [diff] [blame] | 1096 | { |
| 1097 | 'target_name': 'base_java_test_support', |
| 1098 | 'type': 'none', |
| 1099 | 'dependencies': [ |
| 1100 | 'base_java', |
| 1101 | ], |
| 1102 | 'variables': { |
| 1103 | 'package_name': 'base_javatests', |
nyquist@chromium.org | 691fd77 | 2012-09-25 07:22:27 +0900 | [diff] [blame] | 1104 | 'java_in_dir': '../base/test/android/javatests', |
jnd@chromium.org | 996e15c | 2012-09-01 03:27:55 +0900 | [diff] [blame] | 1105 | }, |
| 1106 | 'includes': [ '../build/java.gypi' ], |
| 1107 | }, |
yfriedman@chromium.org | 71995f3 | 2012-04-17 13:39:52 +0900 | [diff] [blame] | 1108 | ], |
| 1109 | }], |
jam@chromium.org | 7059e30 | 2012-03-01 10:58:05 +0900 | [diff] [blame] | 1110 | ['OS == "win"', { |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 1111 | 'targets': [ |
| 1112 | { |
| 1113 | 'target_name': 'debug_message', |
| 1114 | 'type': 'executable', |
| 1115 | 'sources': [ |
| 1116 | 'debug_message.cc', |
| 1117 | ], |
sgk@google.com | 36d40a4 | 2009-05-22 11:39:14 +0900 | [diff] [blame] | 1118 | 'msvs_settings': { |
| 1119 | 'VCLinkerTool': { |
| 1120 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 1121 | }, |
| 1122 | }, |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 1123 | }, |
| 1124 | ], |
| 1125 | }], |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 1126 | # Special target to wrap a gtest_target_type == shared_library |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 1127 | # base_unittests into an android apk for execution. |
| 1128 | # TODO(jrg): lib.target comes from _InstallableTargetInstallPath() |
| 1129 | # in the gyp make generator. What is the correct way to extract |
| 1130 | # this path from gyp and into 'raw' for input to antfiles? |
| 1131 | # Hard-coding in the gypfile seems a poor choice. |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 1132 | ['OS == "android" and gtest_target_type == "shared_library"', { |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 1133 | 'targets': [ |
| 1134 | { |
| 1135 | 'target_name': 'base_unittests_apk', |
| 1136 | 'type': 'none', |
| 1137 | 'dependencies': [ |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 1138 | 'base_java', |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 1139 | 'base_unittests', |
| 1140 | ], |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 1141 | 'variables': { |
| 1142 | 'test_suite_name': 'base_unittests', |
yfriedman@chromium.org | a3e321d | 2012-05-30 08:19:13 +0900 | [diff] [blame] | 1143 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)', |
nileshagrawal@chromium.org | eb72f27 | 2012-05-26 05:17:49 +0900 | [diff] [blame] | 1144 | }, |
| 1145 | 'includes': [ '../build/apk_test.gypi' ], |
bradnelson@google.com | 040b1d1 | 2012-06-08 10:01:57 +0900 | [diff] [blame] | 1146 | }, |
| 1147 | ], |
jrg@chromium.org | 37eb4e9 | 2012-04-20 06:02:09 +0900 | [diff] [blame] | 1148 | }], |
maruel@chromium.org | 59861d6 | 2012-07-28 09:03:41 +0900 | [diff] [blame] | 1149 | ['test_isolation_mode != "noop"', { |
| 1150 | 'targets': [ |
| 1151 | { |
| 1152 | 'target_name': 'base_unittests_run', |
| 1153 | 'type': 'none', |
| 1154 | 'dependencies': [ |
| 1155 | 'base_unittests', |
| 1156 | ], |
| 1157 | 'includes': [ |
maruel@chromium.org | 11b5690 | 2012-10-20 13:16:31 +0900 | [diff] [blame] | 1158 | '../build/isolate.gypi', |
maruel@chromium.org | 59861d6 | 2012-07-28 09:03:41 +0900 | [diff] [blame] | 1159 | 'base_unittests.isolate', |
| 1160 | ], |
maruel@chromium.org | 11b5690 | 2012-10-20 13:16:31 +0900 | [diff] [blame] | 1161 | 'sources': [ |
| 1162 | 'base_unittests.isolate', |
maruel@chromium.org | 59861d6 | 2012-07-28 09:03:41 +0900 | [diff] [blame] | 1163 | ], |
| 1164 | }, |
| 1165 | ], |
| 1166 | }], |
mark@chromium.org | 15425a1 | 2009-02-26 06:26:55 +0900 | [diff] [blame] | 1167 | ], |
| 1168 | } |