brettw@chromium.org | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This is the root build file for GN. GN will start processing by loading this |
| 6 | # file, and recursively load all dependencies until all dependencies are either |
| 7 | # resolved or known not to exist (which will cause the build to fail). So if |
| 8 | # you add a new build file, there must be some path of dependencies from this |
| 9 | # file to your new one or GN won't know about it. |
| 10 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 11 | import("//build/config/crypto.gni") |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 12 | import("//build/config/features.gni") |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 13 | import("//build/config/ui.gni") |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 14 | import("//build/module_args/v8.gni") |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 15 | import("//media/media_options.gni") |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 16 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 17 | if (is_android) { |
| 18 | import("//build/config/android/config.gni") |
| 19 | } |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 20 | |
brettw | b84b294 | 2014-10-22 22:58:45 | [diff] [blame] | 21 | declare_args() { |
| 22 | # A list of extra dependencies to add to the root target. This allows a |
| 23 | # checkout to add additional targets without explicitly changing any checked- |
| 24 | # in files. |
| 25 | root_extra_deps = [] |
| 26 | } |
| 27 | |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 28 | # This file defines the following four main targets: |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 29 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 30 | # "both_gn_and_gyp" should list every root target (target that nothing else |
| 31 | # depends on) built by GN that is also built in the GYP build. |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 32 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 33 | # "gn_all" should (transitively) cause everything to be built; if you run |
| 34 | # 'ninja gn_all' and then 'ninja all', the second build should do no work. |
| 35 | # |
| 36 | # "gn_only" should list every root target that is *not* intended to be built |
| 37 | # in a GYP build. Because GN has different rules for deciding what an 'all' |
| 38 | # build is, this may end up including targets that are actually defined in a |
| 39 | # GYP build but not dependencies of GYP's "all" (and so not actually built). |
| 40 | # |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 41 | # "gn_visibility": targets that are normally not visible to top-level targets, |
| 42 | # but are built anyway by "all". Since we don't want any such targets, we |
| 43 | # have this placeholder to make sure hidden targets that aren't otherwise |
| 44 | # depended on yet are accounted for. |
| 45 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 46 | # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are |
| 47 | # scripts run on the bots that enforce this. Once the GYP migration is over, |
| 48 | # we can collapse all of these targets as desired. |
dpranke | ff30e3d | 2015-02-24 06:52:39 | [diff] [blame] | 49 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 50 | group("gn_all") { |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 51 | testonly = true |
| 52 | |
| 53 | deps = [ |
| 54 | ":both_gn_and_gyp", |
| 55 | ":gn_only", |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 56 | ":gn_visibility", |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 57 | ] |
| 58 | } |
| 59 | |
| 60 | # The "both_gn_and_gyp" target should reflect every target that is built |
| 61 | # in both the GN and GYP builds, and ideally it should match the |
| 62 | # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. |
| 63 | # |
| 64 | # TODO(GYP): Add build steps that check and enforce this on the bots. |
| 65 | group("both_gn_and_gyp") { |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 66 | testonly = true |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 67 | deps = [ |
| 68 | "//base:base_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame^] | 69 | "//chrome/installer", |
sherouk | ce1c7d7 | 2015-08-24 15:21:59 | [diff] [blame] | 70 | "//net:net_unittests", |
sherouk | 2866d66 | 2015-08-24 16:29:44 | [diff] [blame] | 71 | "//skia:skia_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame^] | 72 | "//sql:sql_unittests", |
sherouk | 4fb74d4 | 2015-08-24 15:58:41 | [diff] [blame] | 73 | "//ui/base:ui_base_unittests", |
| 74 | "//url:url_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 75 | ] |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 76 | |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 77 | if (!is_ios) { |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 78 | # TODO(GYP): Figure out which of these should actually build on iOS, |
| 79 | # and whether there should be other targets that are iOS-only and missing. |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 80 | deps += [ |
| 81 | "//cc:cc_unittests", |
| 82 | "//chrome", |
| 83 | "//chrome/test:browser_tests", |
| 84 | "//chrome/test:interactive_ui_tests", |
| 85 | "//chrome/test:sync_integration_tests", |
| 86 | "//chrome/test:unit_tests", |
| 87 | "//chrome/test/chromedriver:chromedriver_unittests", |
| 88 | "//components:components_browsertests", |
| 89 | "//components:components_unittests", |
| 90 | "//content/shell:content_shell", |
| 91 | "//content/test:content_browsertests", |
| 92 | "//content/test:content_perftests", |
| 93 | "//content/test:content_unittests", |
| 94 | "//crypto:crypto_unittests", |
| 95 | "//device:device_unittests", |
| 96 | "//extensions:extensions_browsertests", |
| 97 | "//extensions:extensions_unittests", |
| 98 | "//google_apis/gcm:gcm_unit_tests", |
| 99 | "//gpu:gpu_unittests", |
dpranke | dbdd9d8 | 2015-08-12 21:18:18 | [diff] [blame] | 100 | "//gpu/gles2_conform_support:gles2_conform_test", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 101 | "//ipc:ipc_tests", |
| 102 | "//ipc/mojo:ipc_mojo_unittests", |
| 103 | "//jingle:jingle_unittests", |
| 104 | "//media:media_unittests", |
| 105 | "//media/cast:cast_unittests", |
| 106 | "//media/midi:midi_unittests", |
| 107 | "//mojo", |
| 108 | "//mojo/application/public/cpp", |
| 109 | "//mojo/common:mojo_common_unittests", |
| 110 | "//net:hpack_example_generator", |
| 111 | "//net:hpack_fuzz_mutator", |
| 112 | "//net:hpack_fuzz_wrapper", |
| 113 | "//net:net_perftests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 114 | "//ppapi:ppapi_unittests", |
| 115 | "//ppapi/examples/2d", |
| 116 | "//ppapi/examples/audio", |
| 117 | "//ppapi/examples/audio_input", |
| 118 | "//ppapi/examples/compositor", |
| 119 | "//ppapi/examples/crxfs", |
| 120 | "//ppapi/examples/enumerate_devices", |
| 121 | "//ppapi/examples/file_chooser", |
| 122 | "//ppapi/examples/flash_topmost", |
| 123 | "//ppapi/examples/font", |
| 124 | "//ppapi/examples/gamepad", |
| 125 | "//ppapi/examples/gles2", |
| 126 | "//ppapi/examples/gles2_spinning_cube", |
| 127 | "//ppapi/examples/ime", |
| 128 | "//ppapi/examples/input", |
| 129 | "//ppapi/examples/media_stream_audio", |
| 130 | "//ppapi/examples/media_stream_video", |
| 131 | "//ppapi/examples/mouse_cursor", |
| 132 | "//ppapi/examples/mouse_lock", |
| 133 | "//ppapi/examples/printing", |
| 134 | "//ppapi/examples/scaling", |
| 135 | "//ppapi/examples/scripting", |
| 136 | "//ppapi/examples/stub", |
| 137 | "//ppapi/examples/threading", |
| 138 | "//ppapi/examples/url_loader", |
| 139 | "//ppapi/examples/video_capture", |
| 140 | "//ppapi/examples/video_decode", |
| 141 | "//ppapi/examples/video_effects", |
| 142 | "//ppapi/examples/video_encode", |
| 143 | "//printing:printing_unittests", |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 144 | "//sync:sync_unit_tests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 145 | "//third_party/WebKit/Source/platform:heap_unittests", |
| 146 | "//third_party/WebKit/Source/platform:platform_unittests", |
| 147 | "//third_party/WebKit/Source/web:webkit_unit_tests", |
| 148 | "//third_party/WebKit/Source/wtf:wtf_unittests", |
| 149 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", |
| 150 | "//third_party/codesighs", |
| 151 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", |
| 152 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", |
| 153 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", |
| 154 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", |
| 155 | "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", |
| 156 | "//third_party/pdfium/samples:pdfium_test", |
| 157 | "//third_party/smhasher:pmurhash", |
| 158 | "//tools/imagediff($host_toolchain)", |
| 159 | "//tools/gn", |
| 160 | "//tools/gn:gn_unittests", |
| 161 | "//tools/gn:generate_test_gn_data", |
| 162 | "//tools/telemetry:bitmaptools($host_toolchain)", |
| 163 | "//ui/accessibility:accessibility_unittests", |
| 164 | "//ui/app_list:app_list_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 165 | "//ui/display:display_unittests", |
| 166 | "//ui/events:events_unittests", |
| 167 | "//ui/gfx:gfx_unittests", |
| 168 | "//ui/gl:gl_unittests", |
| 169 | "//ui/touch_selection:ui_touch_selection_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 170 | ] |
| 171 | } |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 172 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 173 | deps += root_extra_deps |
brettw@chromium.org | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 174 | |
dpranke | 021d4c9 | 2015-02-24 02:08:25 | [diff] [blame] | 175 | if (enable_extensions && !is_mac) { |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 176 | # TODO(GYP): Get this working on the mac? |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 177 | deps += [ "//extensions/shell:app_shell_unittests" ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 178 | } |
| 179 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 180 | if (enable_media_router) { |
imcheng | b6b09239f | 2015-05-15 21:41:55 | [diff] [blame] | 181 | deps += [ "//chrome/browser/media/router" ] |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 182 | } |
| 183 | |
garykac | 3eddb5b | 2015-04-17 23:16:38 | [diff] [blame] | 184 | if (enable_remoting) { |
| 185 | deps += [ "//remoting:remoting_all" ] |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 186 | } |
| 187 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 188 | if (toolkit_views) { |
| 189 | deps += [ "//ui/views:views_unittests" ] |
brettw@chromium.org | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 190 | } |
| 191 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 192 | if (use_aura) { |
| 193 | deps += [ "//ui/wm:wm_unittests" ] |
| 194 | } |
| 195 | |
| 196 | if (use_ozone) { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 197 | deps += [ "//ui/ozone" ] |
tfarina@chromium.org | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 198 | } |
| 199 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 200 | if (use_x11) { |
| 201 | deps += [ "//tools/xdisplaycheck" ] |
kmarshall | d2f3bea | 2015-03-11 23:42:22 | [diff] [blame] | 202 | } |
| 203 | |
tmoniuszko | e5578b92 | 2015-04-14 09:38:03 | [diff] [blame] | 204 | if (enable_configuration_policy) { |
| 205 | deps += [ "//components/policy:policy_templates" ] |
| 206 | } |
| 207 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 208 | if (v8_use_external_startup_data) { |
| 209 | deps += [ "//gin:gin_v8_snapshot_fingerprint" ] |
brettw@chromium.org | 137dff6d | 2014-06-12 19:35:55 | [diff] [blame] | 210 | } |
| 211 | |
brettw | 66e3feab | 2015-07-20 23:52:22 | [diff] [blame] | 212 | if (is_win) { |
| 213 | deps += [ "//chrome/tools/build/win/syzygy:chrome_dll_syzygy" ] |
| 214 | } |
| 215 | |
dpranke@chromium.org | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 216 | if (is_android) { |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 217 | deps += [ |
cjhopman | 3151133 | 2014-10-23 01:05:02 | [diff] [blame] | 218 | "//base/android/linker:chromium_android_linker", |
cjhopman | 3d85c6d | 2014-11-18 03:39:38 | [diff] [blame] | 219 | "//build/android/gyp/test:hello_world", |
cjhopman | 3151133 | 2014-10-23 01:05:02 | [diff] [blame] | 220 | "//build/android/rezip", |
yfriedman | c1995be8 | 2015-05-29 17:52:25 | [diff] [blame] | 221 | "//chrome/android:chrome_public_apk", |
| 222 | "//chrome/android:chrome_public_test_apk", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 223 | "//chrome/android:chrome_shell_apk", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 224 | "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk", |
agrieve | 40ba686 | 2015-07-15 02:09:05 | [diff] [blame] | 225 | "//third_party/errorprone:chromium_errorprone", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 226 | "//tools/imagediff($host_toolchain)", |
| 227 | |
| 228 | # TODO(GYP): Remove these when the components_unittests work. |
| 229 | "//components/history/core/test:test", |
| 230 | "//components/policy:policy_component_test_support", |
| 231 | "//components/policy:test_support", |
| 232 | "//components/rappor:test_support", |
| 233 | "//components/signin/core/browser:test_support", |
| 234 | "//components/sync_driver:test_support", |
| 235 | "//components/user_manager", |
| 236 | "//components/wallpaper", |
| 237 | "//content/shell/android:content_shell_apk", |
| 238 | |
| 239 | # TODO(GYP): Are these needed, or will they be pulled in automatically? |
cjhopman@chromium.org | 684b229 | 2014-08-22 19:12:39 | [diff] [blame] | 240 | "//third_party/android_tools:android_gcm_java", |
| 241 | "//third_party/android_tools:uiautomator_java", |
| 242 | "//third_party/android_tools:android_support_v13_java", |
| 243 | "//third_party/android_tools:android_support_v7_appcompat_java", |
| 244 | "//third_party/android_tools:android_support_v7_mediarouter_java", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 245 | "//third_party/mesa", |
mikecase | 85e83ed | 2014-12-08 19:18:29 | [diff] [blame] | 246 | "//third_party/mockito:mockito_java", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 247 | "//third_party/openmax_dl/dl", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 248 | "//ui/android:ui_java", |
| 249 | |
| 250 | # TODO(GYP): Are these needed? |
| 251 | "//chrome/test:test_support_unit", |
| 252 | "//third_party/smhasher:murmurhash3", |
| 253 | "//ui/message_center:test_support", |
| 254 | ] |
| 255 | deps -= [ |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 256 | "//chrome", # TODO(GYP) ?? |
| 257 | "//chrome/test:browser_tests", # TODO(GYP) ?? |
| 258 | "//chrome/test:interactive_ui_tests", # TODO(GYP) ?? |
| 259 | "//chrome/test:sync_integration_tests", # TODO(GYP) ?? |
| 260 | "//chrome/test:unit_tests", # TODO(GYP) |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 261 | |
| 262 | # Chromedriver shouldn't be compiled on Android. |
| 263 | "//chrome/test/chromedriver:chromedriver_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 264 | "//extensions:extensions_browsertests", |
| 265 | "//extensions:extensions_unittests", |
| 266 | "//google_apis/gcm:gcm_unit_tests", |
| 267 | "//ipc:ipc_tests", # TODO(GYP) ?? |
| 268 | "//jingle:jingle_unittests", # TODO(GYP) ?? |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 269 | "//net:hpack_example_generator", |
| 270 | "//net:hpack_fuzz_mutator", |
| 271 | "//net:hpack_fuzz_wrapper", |
| 272 | "//net:net_perftests", |
tfarina | 79ef072d | 2015-04-04 20:16:57 | [diff] [blame] | 273 | "//ppapi/examples/2d", |
| 274 | "//ppapi/examples/audio", |
| 275 | "//ppapi/examples/audio_input", |
| 276 | "//ppapi/examples/compositor", |
| 277 | "//ppapi/examples/crxfs", |
| 278 | "//ppapi/examples/enumerate_devices", |
| 279 | "//ppapi/examples/file_chooser", |
| 280 | "//ppapi/examples/flash_topmost", |
| 281 | "//ppapi/examples/font", |
| 282 | "//ppapi/examples/gamepad", |
| 283 | "//ppapi/examples/gles2", |
| 284 | "//ppapi/examples/gles2_spinning_cube", |
| 285 | "//ppapi/examples/ime", |
| 286 | "//ppapi/examples/input", |
| 287 | "//ppapi/examples/media_stream_audio", |
| 288 | "//ppapi/examples/media_stream_video", |
| 289 | "//ppapi/examples/mouse_cursor", |
| 290 | "//ppapi/examples/mouse_lock", |
| 291 | "//ppapi/examples/printing", |
| 292 | "//ppapi/examples/scaling", |
| 293 | "//ppapi/examples/scripting", |
| 294 | "//ppapi/examples/stub", |
| 295 | "//ppapi/examples/threading", |
| 296 | "//ppapi/examples/url_loader", |
| 297 | "//ppapi/examples/video_capture", |
| 298 | "//ppapi/examples/video_decode", |
| 299 | "//ppapi/examples/video_effects", |
| 300 | "//ppapi/examples/video_encode", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 301 | "//third_party/pdfium/samples:pdfium_test", |
| 302 | "//tools/gn", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 303 | "//tools/gn:generate_test_gn_data", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 304 | "//tools/gn:gn_unittests", |
| 305 | "//ui/app_list:app_list_unittests", |
| 306 | "//url:url_unittests", |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 307 | ] |
| 308 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 309 | if (has_chrome_android_internal) { |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 310 | deps += [ "//clank" ] # TODO(GYP) ?? |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 311 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 312 | } |
| 313 | |
| 314 | if (is_linux) { # TODO(GYP): || is_android || is_bsd? |
| 315 | deps += [ |
| 316 | "//breakpad:core-2-minidump", |
| 317 | "//breakpad:minidump-2-core", |
| 318 | ] |
| 319 | } |
| 320 | |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 321 | if (is_chromeos) { |
| 322 | deps += [ |
| 323 | "//chromeos:chromeos_unittests", |
| 324 | "//ui/chromeos:ui_chromeos_unittests", |
| 325 | ] |
| 326 | } |
| 327 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 328 | if (is_chromeos || is_mac || is_win) { |
| 329 | deps += [ |
| 330 | "//rlz:rlz_id", |
| 331 | "//rlz:rlz_lib", |
| 332 | "//rlz:rlz_unittests", |
| 333 | ] |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 334 | } |
| 335 | |
| 336 | if (is_linux) { |
| 337 | # The following are definitely linux-only. |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 338 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 339 | "//breakpad:breakpad_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 340 | "//breakpad:generate_test_dump", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 341 | "//dbus:dbus_test_server", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 342 | "//dbus:dbus_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 343 | "//net:disk_cache_memory_test", |
| 344 | "//net:flip_in_mem_edsm_server", |
| 345 | "//net:flip_in_mem_edsm_server_unittests", |
| 346 | "//net:quic_client", |
| 347 | "//net:quic_server", |
| 348 | "//sandbox/linux:chrome_sandbox", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 349 | "//sandbox/linux:sandbox_linux_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 350 | "//sandbox/linux:sandbox_linux_jni_unittests", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 351 | ] |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 352 | |
| 353 | if (is_chromeos || use_ash) { |
| 354 | deps += [ "//components/session_manager/core" ] |
| 355 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 356 | } |
| 357 | |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 358 | if (is_ios || is_win || (is_linux && !is_chromeos)) { |
| 359 | deps += [ |
| 360 | "//base:base_i18n_perftests", |
| 361 | "//base:base_perftests", |
| 362 | ] |
| 363 | } |
| 364 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 365 | if (is_win || (is_linux && !is_chromeos)) { |
| 366 | # TODO(GYP): Figure out which of these should (and can) build |
| 367 | # for android/chromeos/mac/ios. |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 368 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 369 | "//base:check_example", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 370 | "//base:build_utf8_validator_tables", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 371 | "//cc:cc_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 372 | "//cc/blink:cc_blink_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 373 | "//chrome/test:load_library_perf_tests", |
dpranke | 76f4822 | 2015-04-01 00:00:00 | [diff] [blame] | 374 | "//chrome/test:performance_browser_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 375 | "//chrome/test:sync_performance_tests", |
| 376 | "//chrome/test/chromedriver:chromedriver", |
| 377 | "//chrome/test/chromedriver:chromedriver_tests", |
| 378 | "//chrome/tools/profile_reset:jtl_compiler", |
| 379 | "//components:components_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 380 | "//content/test:content_gl_tests", |
| 381 | "//content/test:content_gl_benchmark", |
| 382 | "//courgette:courgette", |
| 383 | "//courgette:courgette_fuzz", |
| 384 | "//courgette:courgette_minimal_tool", |
| 385 | "//courgette:courgette_unittests", |
| 386 | "//device:device_unittests", |
| 387 | "//gin:gin_shell", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 388 | "//gin:gin_unittests", |
| 389 | "//google_apis:google_apis_unittests", |
| 390 | "//google_apis/gcm:mcs_probe", |
| 391 | "//gpu:angle_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 392 | "//gpu:gpu_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 393 | "//gpu:gl_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 394 | "//ipc:ipc_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 395 | "//media:media_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 396 | "//media/cast:generate_barcode_video", |
| 397 | "//media/cast:generate_timecode_audio", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 398 | "//net:crash_cache", |
| 399 | "//net:crl_set_dump", |
| 400 | "//net:dns_fuzz_stub", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 401 | "//net:dump_cache", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 402 | "//net:gdig", |
| 403 | "//net:get_server_time", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 404 | "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 405 | "//net:run_testserver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 406 | "//net:stress_cache", |
| 407 | "//net:tld_cleanup", |
dpranke | c09ccaa | 2015-03-27 22:00:38 | [diff] [blame] | 408 | "//ppapi:pepper_hash_for_uma", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 409 | "//ppapi:ppapi_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 410 | "//sync:run_sync_testserver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 411 | "//third_party/codesighs:maptsvdifftool", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 412 | "//third_party/leveldatabase:env_chromium_unittests", |
| 413 | "//third_party/libaddressinput:libaddressinput_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 414 | "//third_party/libphonenumber:libphonenumber_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 415 | "//ui/compositor:compositor_unittests", |
| 416 | ] |
| 417 | |
| 418 | if (enable_extensions) { |
| 419 | deps += [ "//extensions/shell:app_shell" ] |
| 420 | } |
| 421 | |
| 422 | if (enable_nacl) { |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 423 | deps += [ "//components/nacl:nacl_loader_unittests" ] |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 424 | } |
| 425 | |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 426 | if (media_use_ffmpeg) { |
| 427 | deps += [ "//media:ffmpeg_regression_tests" ] |
| 428 | } |
| 429 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 430 | if (use_ash) { |
| 431 | deps += [ |
| 432 | "//ash:ash_shell", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 433 | "//ash:ash_unittests", |
| 434 | ] |
| 435 | } |
| 436 | |
| 437 | if (use_aura) { |
| 438 | deps += [ |
| 439 | "//ui/aura:aura_unittests", |
| 440 | "//ui/aura:bench", |
| 441 | "//ui/aura:demo", |
| 442 | ] |
| 443 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 444 | } |
| 445 | |
| 446 | if (is_linux && !is_chromeos) { |
| 447 | deps += [ |
| 448 | # TODO(GYP): Figure out which of these should (and can) build |
| 449 | # under which other conditions. |
| 450 | "//build/sanitizers:copy_llvm_symbolizer", |
| 451 | "//chrome/test:chrome_app_unittests", |
| 452 | "//cloud_print:cloud_print_unittests", |
| 453 | "//components/network_hints/browser", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 454 | "//content/public/app:browser", |
| 455 | "//content/public/app:child", |
| 456 | |
| 457 | # TODO(GYP): Remove this when the gles2 tests work |
| 458 | "//gpu/command_buffer/client:gles2_implementation_no_check", |
| 459 | |
| 460 | "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete. |
| 461 | "//media/cast:cast_benchmarks", |
| 462 | "//media/cast:tap_proxy", |
jam | 0080299 | 2015-05-20 03:37:19 | [diff] [blame] | 463 | "//mojo/application/public/cpp", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 464 | "//skia:filter_fuzz_stub", |
| 465 | "//skia:image_operations_bench", |
| 466 | "//sync/tools:sync_client", |
| 467 | "//sync/tools:sync_listen_notifications", |
| 468 | "//testing/gmock:gmock_main", |
| 469 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", |
| 470 | "//tools/perf/clear_system_cache", |
| 471 | "//ui/keyboard:keyboard_unittests", |
| 472 | "//ui/message_center:message_center_unittests", |
| 473 | "//ui/snapshot:snapshot_unittests", |
| 474 | "//ui/views/examples:views_examples_with_content_exe", |
| 475 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 476 | "//third_party/codesighs:nm2tsv", |
| 477 | "//third_party/sqlite:sqlite_shell", |
| 478 | ] |
| 479 | |
| 480 | if (current_toolchain == host_toolchain) { |
| 481 | # Do not build the breakpad utilities in cross-compiles. |
| 482 | deps += [ |
| 483 | "//breakpad:dump_syms", |
| 484 | "//breakpad:microdump_stackwalk", |
| 485 | "//breakpad:minidump_dump", |
| 486 | "//breakpad:minidump_stackwalk", |
| 487 | ] |
| 488 | } |
| 489 | |
| 490 | if (!is_debug && !is_component_build) { |
| 491 | deps += [ "//chrome/tools/service_discovery_sniffer" ] |
| 492 | } |
| 493 | |
| 494 | if (toolkit_views) { |
| 495 | deps += [ "//ui/app_list:app_list_demo" ] |
| 496 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 497 | |
| 498 | if (use_x11) { |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 499 | if (target_cpu != "arm") { |
tfarina | 8944e6f | 2015-03-25 20:06:59 | [diff] [blame] | 500 | deps += [ "//gpu/tools/compositor_model_bench" ] |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 501 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 502 | } |
| 503 | } |
| 504 | |
| 505 | if (is_mac) { |
| 506 | deps += [ |
| 507 | "//breakpad:crash_inspector", |
| 508 | "//breakpad:dump_syms", |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 509 | "//third_party/apple_sample_code", |
| 510 | "//third_party/molokocacao", |
| 511 | ] |
| 512 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 513 | # TODO(GYP): Remove these when the targets below work and these |
| 514 | # are pulled in automatically. |
| 515 | deps += [ |
| 516 | "//cc/blink", |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 517 | "//components/ui/zoom", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 518 | "//content", |
| 519 | "//content/test:test_support", |
| 520 | "//device/battery", |
| 521 | "//device/bluetooth", |
| 522 | "//device/nfc", |
| 523 | "//device/usb", |
| 524 | "//device/vibration", |
| 525 | "//media/blink", |
| 526 | "//pdf", |
| 527 | "//storage/browser", |
| 528 | "//third_party/brotli", |
| 529 | "//third_party/flac", |
tfarina | e4a03f8f | 2015-05-18 05:55:26 | [diff] [blame] | 530 | "//third_party/hunspell", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 531 | "//third_party/iccjpeg", |
| 532 | "//third_party/libphonenumber", |
| 533 | "//third_party/ots", |
| 534 | "//third_party/qcms", |
| 535 | "//third_party/smhasher:murmurhash3", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 536 | "//third_party/webrtc/system_wrappers", |
tfarina | 42aa017 | 2015-08-13 21:12:40 | [diff] [blame] | 537 | "//ui/app_list:app_list_unittests", |
tfarina | eda2647 | 2015-08-12 19:30:15 | [diff] [blame] | 538 | "//ui/gfx:gfx_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 539 | "//ui/native_theme", |
| 540 | "//ui/snapshot", |
| 541 | "//ui/surface", |
| 542 | ] |
| 543 | |
dpranke | cf8465db7 | 2014-11-10 23:51:22 | [diff] [blame] | 544 | # TODO(dpranke): These are as-yet untriaged but need at least the above. |
dpranke | 4376059 | 2014-11-08 02:59:57 | [diff] [blame] | 545 | deps -= [ |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 546 | "//chrome", # TODO(GYP) |
| 547 | "//chrome/test:browser_tests", # TODO(GYP) |
| 548 | "//chrome/test:interactive_ui_tests", # TODO(GYP) |
| 549 | "//chrome/test:sync_integration_tests", # TODO(GYP) |
| 550 | "//chrome/test:unit_tests", # TODO(GYP) |
dpranke | f6ca89c5 | 2015-03-30 22:01:38 | [diff] [blame] | 551 | "//components:components_browsertests", # TODO(GYP) |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 552 | "//components:components_unittests", # TODO(GYP) |
| 553 | "//content/test:content_browsertests", # TODO(GYP) |
| 554 | "//content/test:content_perftests", # TODO(GYP) |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 555 | "//device:device_unittests", # TODO(GYP) |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 556 | "//extensions:extensions_browsertests", # TODO(GYP) |
| 557 | "//extensions:extensions_unittests", # TODO(GYP) |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 558 | "//mojo", # TODO(GYP) |
| 559 | "//mojo/application/public/cpp", # TODO(GYP) |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 560 | |
| 561 | # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac. |
| 562 | "//third_party/WebKit/Source/platform:heap_unittests", |
| 563 | "//third_party/WebKit/Source/platform:platform_unittests", |
| 564 | "//third_party/WebKit/Source/web:webkit_unit_tests", |
mohsen | 29fd405 | 2014-12-08 21:06:46 | [diff] [blame] | 565 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 566 | } |
| 567 | |
| 568 | if (is_win) { |
| 569 | deps += [ |
| 570 | "//base:pe_image_test", |
grt | 734e87b | 2015-07-06 19:36:43 | [diff] [blame] | 571 | "//chrome/installer/setup:setup_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 572 | "//chrome_elf:chrome_elf_unittests", |
| 573 | "//chrome_elf:dll_hash_main", |
dpranke | db5a56c | 2015-04-29 18:01:09 | [diff] [blame] | 574 | "//components/crash/tools:crash_service", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 575 | "//components/wifi:wifi_test", |
| 576 | "//net:quic_client", |
| 577 | "//net:quic_server", |
| 578 | "//sandbox/win:pocdll", |
| 579 | "//sandbox/win:sandbox_poc", |
| 580 | "//sandbox/win:sbox_integration_tests", |
| 581 | "//sandbox/win:sbox_unittests", |
| 582 | "//sandbox/win:sbox_validation_tests", |
| 583 | "//testing/gtest:gtest_main", |
| 584 | "//third_party/codesighs:msmap2tsv", |
| 585 | "//third_party/pdfium/samples:pdfium_diff", |
| 586 | "//ui/metro_viewer", |
| 587 | ] |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 588 | deps -= [ |
| 589 | "//crypto:crypto_unittests", # TODO(GYP) |
| 590 | "//net:net_unittests", # TODO(GYP) |
| 591 | ] |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 592 | } else if (!is_android && !is_ios) { |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 593 | deps += [ "//breakpad:symupload" ] |
mohsen | f837da7c | 2014-12-09 19:01:34 | [diff] [blame] | 594 | } |
hendrikw | 5c1da6d | 2015-06-18 15:08:57 | [diff] [blame] | 595 | |
| 596 | if (!is_ios) { |
dewittj | acd39a0 | 2015-08-28 22:56:17 | [diff] [blame] | 597 | deps += [ "//gpu/skia_runner:skia_runner" ] |
hendrikw | 5c1da6d | 2015-06-18 15:08:57 | [diff] [blame] | 598 | } |
dpranke | 18e5743 | 2015-02-27 21:46:47 | [diff] [blame] | 599 | } |
| 600 | |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 601 | group("gn_only") { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 602 | testonly = true |
| 603 | |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 604 | deps = [] |
| 605 | |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 606 | if (!is_ios) { |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 607 | deps += [ "//mandoline:all" ] |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 608 | } |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 609 | |
| 610 | if (!is_android && !is_ios) { |
| 611 | deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
| 612 | } |
| 613 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 614 | if (is_linux && !is_chromeos) { |
| 615 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 616 | # and figure out how cross-platform they are |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 617 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 618 | ":gn_mojo_targets", |
| 619 | "//chrome/browser/resources:extension_resource_demo", |
| 620 | "//chrome/installer/util:strings", |
| 621 | "//chrome:main_dll", |
| 622 | "//chrome/test:load_library_perf_tests", |
| 623 | "//chrome/tools/convert_dict", |
| 624 | "//components/constrained_window:unit_tests", |
| 625 | "//components/enhanced_bookmarks:test_support", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 626 | "//components/metrics:serialization", |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 627 | "//components/password_manager/content/renderer:browser_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 628 | "//components/rappor:unit_tests", |
| 629 | "//components/sessions:unit_tests", |
| 630 | "//media/blink:media_blink_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 631 | "//media/cast:udp_proxy", |
| 632 | "//native_client/src/trusted/platform_qualify:vcpuid", |
| 633 | "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", |
| 634 | "//storage/browser:dump_file_system", |
| 635 | "//third_party/angle:libANGLE", |
| 636 | "//third_party/angle:libEGL", |
| 637 | "//third_party/angle:libGLESv2", |
| 638 | "//third_party/cld_2:cld_2_dynamic_data_tool", |
| 639 | "//third_party/leveldatabase:leveldb_arena_test", |
| 640 | "//third_party/leveldatabase:leveldb_bloom_test", |
| 641 | "//third_party/leveldatabase:leveldb_db_test", |
| 642 | "//third_party/leveldatabase:leveldb_crc32c_test", |
| 643 | "//third_party/leveldatabase:leveldb_cache_test", |
| 644 | "//third_party/leveldatabase:leveldb_env_test", |
| 645 | "//third_party/leveldatabase:leveldb_write_batch_test", |
| 646 | "//third_party/leveldatabase:leveldb_filter_block_test", |
| 647 | "//third_party/leveldatabase:leveldb_version_edit_test", |
| 648 | "//third_party/leveldatabase:leveldb_db_bench", |
| 649 | "//third_party/leveldatabase:leveldb_log_test", |
| 650 | "//third_party/leveldatabase:leveldb_corruption_test", |
| 651 | "//third_party/leveldatabase:leveldb_table_test", |
| 652 | "//third_party/leveldatabase:leveldb_skiplist_test", |
| 653 | "//third_party/leveldatabase:leveldb_filename_test", |
| 654 | "//third_party/leveldatabase:leveldb_dbformat_test", |
thestig | 93786e6 | 2015-08-05 04:03:29 | [diff] [blame] | 655 | "//third_party/pdfium/third_party:fx_freetype", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 656 | "//third_party/libjpeg_turbo:simd", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 657 | "//third_party/libsrtp:replay_driver", |
| 658 | "//third_party/libsrtp:roc_driver", |
| 659 | "//third_party/libsrtp:rtpw", |
| 660 | "//third_party/libsrtp:rdbx_driver", |
| 661 | "//third_party/libsrtp:srtp_driver", |
| 662 | "//third_party/libsrtp:srtp_driver", |
| 663 | "//third_party/libsrtp:srtp_test_kernel_driver", |
| 664 | "//third_party/libsrtp:srtp_test_cipher_driver", |
| 665 | "//third_party/libsrtp:srtp_test_datatypes_driver", |
| 666 | "//third_party/libsrtp:srtp_test_aes_calc", |
| 667 | "//third_party/libsrtp:srtp_test_env", |
| 668 | "//third_party/libsrtp:srtp_test_rand_gen", |
| 669 | "//third_party/libsrtp:srtp_test_sha1_driver", |
| 670 | "//third_party/libsrtp:srtp_test_stat_driver", |
| 671 | "//third_party/opus:opus_compare", |
| 672 | "//third_party/opus:opus_demo", |
| 673 | "//third_party/opus:test_opus_decode", |
| 674 | "//third_party/opus:test_opus_encode", |
| 675 | "//third_party/opus:test_opus_api", |
| 676 | "//third_party/opus:test_opus_padding", |
| 677 | "//third_party/webrtc/system_wrappers:field_trial_default", |
| 678 | "//third_party/webrtc/system_wrappers:metrics_default", |
| 679 | "//ui/display/types", |
| 680 | "//ui/shell_dialogs:shell_dialogs_unittests", |
| 681 | "//ui/views/examples:views_examples_exe", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 682 | ] |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 683 | |
Gordana.Cmiljanovic | 85746ff1 | 2015-04-28 08:17:16 | [diff] [blame] | 684 | if (target_cpu == "x86" || target_cpu == "x64") { |
| 685 | deps += [ "//third_party/libjpeg_turbo:simd_asm" ] |
| 686 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 687 | if (enable_nacl) { |
| 688 | deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] |
| 689 | } |
| 690 | if (use_ozone) { |
| 691 | deps += [ "//ui/ozone/demo" ] |
| 692 | } |
| 693 | if (is_android) { |
| 694 | deps += [ "//build/android/gyp/test:hello_world" ] |
| 695 | } |
dpranke | 807f602 | 2015-03-17 23:20:56 | [diff] [blame] | 696 | |
| 697 | if (is_linux && current_toolchain == host_toolchain) { |
| 698 | deps += [ "//v8:d8" ] |
| 699 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 700 | } |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 701 | |
| 702 | if (is_mac) { |
| 703 | deps -= [ "//mandoline:all" ] # TODO(GYP) |
| 704 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 705 | } |
| 706 | |
| 707 | group("gn_mojo_targets") { |
| 708 | testonly = true |
| 709 | if (is_linux && !is_chromeos) { |
| 710 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 711 | # and figure out how cross-platform they are |
| 712 | deps = [ |
| 713 | "//chrome/browser/ui/webui/omnibox:mojo_bindings_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 714 | "//content/public/common:mojo_bindings_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 715 | "//content/common:mojo_bindings_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 716 | "//content/test:web_ui_test_mojo_bindings_python", |
| 717 | "//device/battery:mojo_bindings_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 718 | "//device/vibration:mojo_bindings_python", |
| 719 | "//ipc/mojo:ipc_mojo_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 720 | "//ipc/mojo:client_channel_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 721 | "//media/mojo/interfaces:interfaces_python", |
| 722 | "//media/mojo/services:cdm_service", |
| 723 | "//media/mojo:tests", |
msw | 1bb9c6c | 2015-05-06 21:35:44 | [diff] [blame] | 724 | "//mojo:tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 725 | "//net/interfaces:interfaces_python", |
| 726 | "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 727 | "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python", |
| 728 | "//third_party/mojo/src/mojo/public/python:packaged_application", |
| 729 | "//third_party/mojo/src/mojo/public/python:packaged_bindings", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 730 | "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 731 | ] |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 732 | } |
| 733 | } |
| 734 | |
| 735 | group("gn_visibility") { |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 736 | deps = [ |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 737 | "//build/config/sanitizers:options_sources", |
| 738 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 739 | # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 740 | # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 741 | |
| 742 | "//ui/resources:repack_ui_test_mac_locale_pack", |
| 743 | |
tfarina | 5132ba0 | 2015-08-12 23:20:22 | [diff] [blame] | 744 | "//v8:v8_snapshot", |
| 745 | "//v8:postmortem-metadata", |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 746 | ] |
| 747 | } |
| 748 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 749 | if (!is_ios) { |
| 750 | # This group includes all of the targets needed to build and test Blink, |
| 751 | # including running the layout tests (see below). |
| 752 | group("blink_tests") { |
| 753 | testonly = true |
| 754 | |
| 755 | deps = [ |
| 756 | "//third_party/WebKit/public:all_blink", |
| 757 | ] |
| 758 | |
| 759 | # NOTE: The following deps are needed to run the layout tests |
| 760 | # (run-webkit-tests) but there is no GN target for the layout tests, |
| 761 | # so we need to specify the dependencies here instead. |
| 762 | if (is_android) { |
| 763 | deps += [ |
| 764 | "//breakpad:dump_syms($host_toolchain)", |
| 765 | "//breakpad:minidump_stackwalk($host_toolchain)", |
| 766 | "//content/shell/android:content_shell_apk", |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 767 | "//tools/imagediff($host_toolchain)", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 768 | ] |
| 769 | } else { |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 770 | deps += [ |
| 771 | "//content/shell:content_shell", |
| 772 | "//tools/imagediff", |
| 773 | ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 774 | } |
| 775 | |
| 776 | if (is_win) { |
| 777 | deps += [ |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 778 | "//components/test_runner:layout_test_helper", |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 779 | "//content/shell:crash_service", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 780 | ] |
| 781 | } |
| 782 | |
| 783 | if (!is_win && !is_android) { |
Gordana.Cmiljanovic | f243e9a | 2015-05-26 22:14:47 | [diff] [blame] | 784 | deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 785 | } |
| 786 | |
| 787 | if (is_mac) { |
| 788 | deps += [ |
| 789 | "//breakpad:dump_syms($host_toolchain)", |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 790 | "//components/test_runner:layout_test_helper", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 791 | ] |
| 792 | } |
| 793 | |
| 794 | if (is_linux) { |
| 795 | deps += [ "//breakpad:dump_syms($host_toolchain)" ] |
| 796 | } |
| 797 | } |
| 798 | } |
| 799 | |
dpranke | 6abd865 | 2015-08-28 03:21:11 | [diff] [blame] | 800 | # Add a dummy target for compatibility w/ GYP |
| 801 | group("chromium_swarm_tests") { |
| 802 | } |
| 803 | |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 804 | if (is_linux) { |
| 805 | # This group corresponds to the list of tests run on the waterfall for |
| 806 | # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's |
| 807 | # here to help track GYP -> GN conversion progress. |
| 808 | group("linux_default_tests") { |
| 809 | testonly = true |
| 810 | deps = [ |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 811 | "//base:base_unittests", # PASSES (*) 2/25/2015 |
| 812 | "//cc:cc_unittests", # PASSES 2/25/2015 |
| 813 | "//chrome/test:browser_tests", |
| 814 | "//chrome/test:interactive_ui_tests", |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 815 | "//chrome/test:sync_integration_tests", # Crashes for brettw in GN and GYP. |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 816 | "//chrome/test:unit_tests", # PASSES 2/25/2015 |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 817 | "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 2/25/2015 |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 818 | "//components:components_browsertests", # PASSES 4/17/2015 |
brettw | 77b5872 | 2015-02-27 23:35:06 | [diff] [blame] | 819 | "//components:components_unittests", # PASSES 2/27/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 820 | "//content/test:content_browsertests", |
| 821 | "//content/test:content_unittests", # PASSES 2/25/2015 |
| 822 | "//crypto:crypto_unittests", # PASSES 2/25/2015 |
| 823 | "//dbus:dbus_unittests", # PASSES 2/25/2015 |
tfarina | 466754f | 2015-03-09 23:39:29 | [diff] [blame] | 824 | "//device:device_unittests", # PASSES 3/07/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 825 | "//extensions:extensions_browsertests", # PASSES 2/25/2015 |
| 826 | "//extensions:extensions_unittests", # PASSES 2/25/2015 |
| 827 | "//extensions/shell:app_shell_unittests", # PASSES 2/25/2015 |
| 828 | "//google_apis/gcm:gcm_unit_tests", # PASSES 2/25/2015 |
| 829 | "//google_apis:google_apis_unittests", # PASSES 2/25/2015 |
| 830 | "//gpu:gpu_unittests", # PASSES 2/25/2015 |
| 831 | "//ipc:ipc_tests", # PASSES 2/25/2015 |
| 832 | "//ipc/mojo:ipc_mojo_unittests", # PASSES 2/25/2015 |
| 833 | "//jingle:jingle_unittests", # PASSES 2/25/2015 |
aboxhall | 60006f2 | 2015-04-22 18:27:55 | [diff] [blame] | 834 | "//media:media_unittests", # PASSES 3/3/2015 |
toyoshim | c6475779 | 2015-04-30 14:52:02 | [diff] [blame] | 835 | "//media/cast:cast_unittests", # PASSES 2/25/2015 |
| 836 | "//media/midi:midi_unittests", # PASSES 4/10/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 837 | "//mojo/common:mojo_common_unittests", # PASSES 2/25/2015 |
| 838 | "//net:net_unittests", # PASSES 2/25/2015 |
brettw | 31f4de69 | 2015-03-04 17:24:45 | [diff] [blame] | 839 | "//ppapi:ppapi_unittests", # PASSES 2/26/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 840 | "//printing:printing_unittests", # PASSES 2/25/2015 |
brettw | fc2f136 | 2015-04-17 19:00:02 | [diff] [blame] | 841 | "//remoting:remoting_unittests", # PASSES 4/17/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 842 | "//sandbox/linux:sandbox_linux_unittests", # PASSES 2/25/2015 |
| 843 | "//skia:skia_unittests", # PASSES 2/25/2015 |
| 844 | "//sql:sql_unittests", # PASSES 2/25/2015 |
| 845 | "//sync:sync_unit_tests", # PASSES 2/25/2015 |
| 846 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 2/25/2015 |
| 847 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # PASSES 2/25/2015 |
| 848 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # PASSES 2/25/2015 |
| 849 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 2/25/2015 |
| 850 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 2/25/2015 |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 851 | "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 852 | "//ui/accessibility:accessibility_unittests", # PASSES 2/25/2015 |
| 853 | "//ui/app_list:app_list_unittests", # PASSES 2/25/2015 |
| 854 | "//ui/aura:aura_unittests", # PASSES 2/25/2015 |
brettw | fc2f136 | 2015-04-17 19:00:02 | [diff] [blame] | 855 | "//ui/base:ui_base_unittests", # PASSES 4/17/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 856 | "//ui/compositor:compositor_unittests", # PASSES 2/25/2015 |
| 857 | "//ui/display:display_unittests", # PASSES 2/25/2015 |
| 858 | "//ui/events:events_unittests", # PASSES 2/25/2015 |
| 859 | "//ui/gfx:gfx_unittests", # PASSES 2/25/2015 |
dyen | 781489a | 2015-05-05 21:40:56 | [diff] [blame] | 860 | "//ui/gl:gl_unittests", |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 861 | "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015 |
| 862 | "//ui/views:views_unittests", # PASSES (*) 2/25/2015 |
| 863 | "//ui/wm:wm_unittests", # PASSES 2/25/2015 |
| 864 | "//url:url_unittests", # PASSES 2/25/2015 |
| 865 | |
| 866 | # Note: |
| 867 | # (*) Fails but failures match GYP build at time of testing. |
| 868 | ] |
tfarina | 47830e3 | 2015-03-30 23:02:11 | [diff] [blame] | 869 | |
| 870 | if (enable_nacl) { |
| 871 | deps += [ "//components/nacl:nacl_loader_unittests" ] # PASSES 3/28/2015 |
| 872 | } |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 873 | } |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 874 | } else if (is_win) { |
| 875 | group("windows_default_tests") { |
| 876 | testonly = true |
| 877 | deps = [ |
| 878 | "//ash:ash_unittests", # FAILS 4/20/2015 |
brettw | 9a19ddb | 2015-04-24 19:30:50 | [diff] [blame] | 879 | "//base:base_unittests", # PASSES 4/20/2015 |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 880 | "//cc:cc_unittests", # PASSES 4/17/2015 |
| 881 | "//chrome_elf:chrome_elf_unittests", # FAILS 4/20/2015 |
brettw | eb1f7ac | 2015-05-01 17:43:01 | [diff] [blame] | 882 | "//chrome/installer/util:installer_util_unittests", |
grt | 734e87b | 2015-07-06 19:36:43 | [diff] [blame] | 883 | "//chrome/installer/setup:setup_unittests", |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 884 | "//chrome/test:browser_tests", |
| 885 | "//chrome/test:interactive_ui_tests", |
| 886 | "//chrome/test:sync_integration_tests", # Note: need to turn off incremental linking for debug. |
| 887 | "//chrome/test:unit_tests", |
| 888 | "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 4/20/2015 |
brettw | eb1f7ac | 2015-05-01 17:43:01 | [diff] [blame] | 889 | "//components:components_browsertests", # PASSES 4/24/2015 |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 890 | "//components:components_unittests", # PASSES 4/17/2015 |
| 891 | "//courgette:courgette_unittests", # PASSES 4/20/2015 |
| 892 | "//content/test:content_browsertests", |
| 893 | "//content/test:content_unittests", # PASSES 4/17/2015 |
| 894 | "//crypto:crypto_unittests", # PASSES 4/17/2015 |
| 895 | "//device:device_unittests", # PASSES 4/17/2015 |
| 896 | "//extensions:extensions_browsertests", # PASSES 4/17/2015 |
| 897 | "//extensions:extensions_unittests", # PASSES 4/17/2015 |
| 898 | "//extensions/shell:app_shell_unittests", # Doesn't compile in 64-bit |
| 899 | "//google_apis/gcm:gcm_unit_tests", # PASSES 4/17/2015 |
| 900 | "//google_apis:google_apis_unittests", # PASSES 4/17/2015 |
| 901 | "//gpu:gpu_unittests", # PASSES 4/17/2015 |
| 902 | "//ipc:ipc_tests", # PASSES 4/17/2015 |
| 903 | "//ipc/mojo:ipc_mojo_unittests", # PASSES 4/17/2015 |
| 904 | "//jingle:jingle_unittests", # PASSES 4/17/2015 |
| 905 | "//media/cast:cast_unittests", # PASSES 4/17/2015 |
| 906 | "//media:media_unittests", # PASSES 4/17/2015 |
| 907 | "//mojo/common:mojo_common_unittests", # PASSES 4/17/2015 |
| 908 | "//net:net_unittests", # PASSES 4/17/2015 |
| 909 | "//ppapi:ppapi_unittests", # PASSES 4/17/2015 |
| 910 | "//printing:printing_unittests", # PASSES 4/17/2015 |
| 911 | "//remoting:remoting_unittests", # PASSES 4/17/2015 |
| 912 | "//sandbox/win:sbox_integration_tests", # PASSES 4/20/2015 |
| 913 | "//sandbox/win:sbox_unittests", # PASSES 4/20/2015 |
| 914 | "//sandbox/win:sbox_validation_tests", # PASSES 4/20/2015 |
| 915 | "//skia:skia_unittests", # PASSES 4/17/2015 |
| 916 | "//sql:sql_unittests", # PASSES 4/17/2015 |
| 917 | "//sync:sync_unit_tests", # PASSES 4/20/2015 |
| 918 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 4/20/2015 |
| 919 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # Seems to hang? |
| 920 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # FAILS |
| 921 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 4/20/2015 |
| 922 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 4/20/2015 |
| 923 | "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", # PASSES 4/20/2015 |
| 924 | "//ui/accessibility:accessibility_unittests", # PASSES 4/20/2015 |
| 925 | "//ui/app_list:app_list_unittests", # PASSES 4/20/2015 |
| 926 | "//ui/aura:aura_unittests", # PASSES 4/17/2015 |
| 927 | "//ui/base:ui_base_unittests", # PASSES 4/20/2015 |
| 928 | "//ui/compositor:compositor_unittests", # PASSES 4/20/2015 |
| 929 | "//ui/display:display_unittests", # PASSES 4/20/2015 |
| 930 | "//ui/events:events_unittests", # PASSES 4/20/2015 |
| 931 | "//ui/gfx:gfx_unittests", # PASSES (with assertion failure?) 4/20/2015 |
dyen | 781489a | 2015-05-05 21:40:56 | [diff] [blame] | 932 | "//ui/gl:gl_unittests", |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 933 | "//ui/message_center:message_center_unittests", # PASSES 4/20/2015 |
| 934 | "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 4/20/2015 |
brettw | 2a64772 | 2015-04-24 21:51:42 | [diff] [blame] | 935 | "//ui/views:views_unittests", # TooltipControllerTest failures |
| 936 | "//ui/wm:wm_unittests", # PASSES 4/21/2015 |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 937 | "//url:url_unittests", # PASSES 4/17/2015 |
| 938 | |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 939 | # TODO(GYP) nacl_integration |
| 940 | # TODO(GYP) telemetry_perf_unittests |
| 941 | # TODO(GYP) telemetry_unittests |
| 942 | ] |
| 943 | } |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 944 | } |