[email protected] | 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 | |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 11 | import("//build/config/features.gni") |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 12 | import("//build/config/ui.gni") |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 13 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 14 | if (is_android) { |
| 15 | import("//build/config/android/config.gni") |
| 16 | } |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 17 | |
brettw | b84b2947 | 2014-10-22 22:58:45 | [diff] [blame] | 18 | declare_args() { |
| 19 | # A list of extra dependencies to add to the root target. This allows a |
| 20 | # checkout to add additional targets without explicitly changing any checked- |
| 21 | # in files. |
| 22 | root_extra_deps = [] |
| 23 | } |
| 24 | |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 25 | # The "gn_all" target should list every root target (target that |
| 26 | # nothing else depends on) built by both GN and GYP. One should |
| 27 | # be able to run 'ninja gn_all gn_only gn_groups' and then run |
| 28 | # 'ninja' a second time and have the second ninja invocation do nothing. |
| 29 | # |
| 30 | # In addition, the "gn_all" target serves to pull in all of the other |
| 31 | # build files needed for the build. |
| 32 | # |
| 33 | # TODO(GYP): make sure that the above is true and there are scripts run |
| 34 | # on the bots that enforce this. |
dpranke | ff30e3d | 2015-02-24 06:52:39 | [diff] [blame] | 35 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 36 | group("gn_all") { |
| 37 | testonly = true |
| 38 | |
| 39 | deps = [ |
| 40 | "//base:base_unittests", |
| 41 | "//cc:cc_unittests", |
| 42 | "//chrome", |
| 43 | "//chrome/test:browser_tests", |
| 44 | "//chrome/test:interactive_ui_tests", |
| 45 | "//chrome/test:sync_integration_tests", |
| 46 | "//chrome/test:unit_tests", |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 47 | "//chrome/test/chromedriver:chromedriver_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 48 | "//components:components_unittests", |
dpranke | c09ccaa | 2015-03-27 22:00:38 | [diff] [blame^] | 49 | "//components/policy:policy_templates", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 50 | "//content/shell:content_shell", |
| 51 | "//content/test:content_browsertests", |
| 52 | "//content/test:content_perftests", |
| 53 | "//content/test:content_unittests", |
| 54 | "//crypto:crypto_unittests", |
| 55 | "//extensions:extensions_browsertests", |
| 56 | "//extensions:extensions_unittests", |
| 57 | "//google_apis/gcm:gcm_unit_tests", |
| 58 | "//gpu:gpu_unittests", |
| 59 | "//ipc:ipc_tests", |
| 60 | "//ipc/mojo:ipc_mojo_unittests", |
| 61 | "//jingle:jingle_unittests", |
| 62 | "//media:media_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 63 | "//media/cast:cast_unittests", |
| 64 | "//mojo", |
dpranke | c09ccaa | 2015-03-27 22:00:38 | [diff] [blame^] | 65 | "//mojo/application", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 66 | "//mojo/common:mojo_common_unittests", |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 67 | "//net:hpack_example_generator", |
| 68 | "//net:hpack_fuzz_mutator", |
| 69 | "//net:hpack_fuzz_wrapper", |
| 70 | "//net:net_perftests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 71 | "//net:net_unittests", |
brettw | 31f4de69 | 2015-03-04 17:24:45 | [diff] [blame] | 72 | "//ppapi:ppapi_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 73 | "//ppapi/examples", # TODO(GYP): What's the GYP equivalent? |
| 74 | "//printing:printing_unittests", |
| 75 | "//skia:skia_unittests", |
| 76 | "//sql:sql_unittests", |
| 77 | "//sync:sync_unit_tests", |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 78 | "//third_party/WebKit/public:blink_tests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 79 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 80 | "//third_party/codesighs", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 81 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", |
| 82 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", |
| 83 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", |
| 84 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", |
| 85 | "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", |
| 86 | "//third_party/pdfium/samples:pdfium_test", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 87 | "//third_party/smhasher:pmurhash", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 88 | "//tools/imagediff($host_toolchain)", |
| 89 | "//tools/gn", |
| 90 | "//tools/gn:gn_unittests", |
| 91 | "//tools/telemetry:bitmaptools($host_toolchain)", |
| 92 | "//ui/accessibility:accessibility_unittests", |
| 93 | "//ui/app_list:app_list_unittests", |
| 94 | "//ui/base:ui_base_unittests", |
| 95 | "//ui/display:display_unittests", |
| 96 | "//ui/events:events_unittests", |
| 97 | "//ui/gfx:gfx_unittests", |
| 98 | "//ui/touch_selection:ui_touch_selection_unittests", |
| 99 | "//url:url_unittests", |
| 100 | ] |
| 101 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 102 | deps += root_extra_deps |
[email protected] | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 103 | |
dpranke | 021d4c9 | 2015-02-24 02:08:25 | [diff] [blame] | 104 | # TODO(GYP): Get this working on the mac? |
| 105 | if (enable_extensions && !is_mac) { |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 106 | deps += [ "//extensions/shell:app_shell_unittests" ] |
| 107 | } |
| 108 | |
jbudorick | 3faa1e0d | 2015-03-04 22:08:33 | [diff] [blame] | 109 | if (!is_android) { |
| 110 | deps += [ "//remoting:remoting_unittests" ] |
| 111 | } |
| 112 | |
[email protected] | 6fa82cc | 2014-06-18 20:33:07 | [diff] [blame] | 113 | if (!is_win) { |
[email protected] | f8d55d3 | 2014-06-19 20:02:29 | [diff] [blame] | 114 | deps += [ "//breakpad:symupload" ] |
[email protected] | 6fa82cc | 2014-06-18 20:33:07 | [diff] [blame] | 115 | } |
| 116 | |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 117 | if (use_x11) { |
| 118 | deps += [ "//tools/xdisplaycheck" ] |
| 119 | } |
| 120 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 121 | if (toolkit_views) { |
| 122 | deps += [ "//ui/views:views_unittests" ] |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 123 | } |
| 124 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 125 | if (use_aura) { |
| 126 | deps += [ "//ui/wm:wm_unittests" ] |
| 127 | } |
| 128 | |
| 129 | if (use_ozone) { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 130 | deps += [ "//ui/ozone" ] |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 131 | } |
| 132 | |
kmarshall | d2f3bea | 2015-03-11 23:42:22 | [diff] [blame] | 133 | if (enable_media_router) { |
| 134 | deps += [ |
| 135 | "//chrome/browser/media/router/", |
| 136 | "//chrome/browser/media/router:unit_tests", |
| 137 | ] |
| 138 | } |
| 139 | |
[email protected] | 2d6893a | 2014-06-02 19:16:36 | [diff] [blame] | 140 | if (is_win || is_mac || is_chromeos) { |
| 141 | # RLZ works on these platforms. |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 142 | # TODO(GYP): Is this target needed, or pulled in automatically? |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 143 | deps += [ "//rlz:rlz_lib" ] |
[email protected] | 2d6893a | 2014-06-02 19:16:36 | [diff] [blame] | 144 | } |
| 145 | |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 146 | if (is_android) { |
[email protected] | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 147 | deps += [ |
cjhopman | 3151133 | 2014-10-23 01:05:02 | [diff] [blame] | 148 | "//base/android/linker:chromium_android_linker", |
cjhopman | 3d85c6d | 2014-11-18 03:39:38 | [diff] [blame] | 149 | "//build/android/gyp/test:hello_world", |
cjhopman | 3151133 | 2014-10-23 01:05:02 | [diff] [blame] | 150 | "//build/android/rezip", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 151 | "//chrome/android:chrome_shell_apk", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 152 | "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 153 | "//tools/imagediff($host_toolchain)", |
| 154 | |
| 155 | # TODO(GYP): Remove these when the components_unittests work. |
| 156 | "//components/history/core/test:test", |
| 157 | "//components/policy:policy_component_test_support", |
| 158 | "//components/policy:test_support", |
| 159 | "//components/rappor:test_support", |
| 160 | "//components/signin/core/browser:test_support", |
| 161 | "//components/sync_driver:test_support", |
| 162 | "//components/user_manager", |
| 163 | "//components/wallpaper", |
| 164 | "//content/shell/android:content_shell_apk", |
| 165 | |
| 166 | # TODO(GYP): Are these needed, or will they be pulled in automatically? |
[email protected] | 684b229 | 2014-08-22 19:12:39 | [diff] [blame] | 167 | "//third_party/android_tools:android_gcm_java", |
| 168 | "//third_party/android_tools:uiautomator_java", |
| 169 | "//third_party/android_tools:android_support_v13_java", |
| 170 | "//third_party/android_tools:android_support_v7_appcompat_java", |
| 171 | "//third_party/android_tools:android_support_v7_mediarouter_java", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 172 | "//third_party/mesa", |
mikecase | 85e83ed | 2014-12-08 19:18:29 | [diff] [blame] | 173 | "//third_party/mockito:mockito_java", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 174 | "//third_party/openmax_dl/dl", |
| 175 | "//third_party/speex", |
| 176 | "//ui/android:ui_java", |
| 177 | |
| 178 | # TODO(GYP): Are these needed? |
| 179 | "//chrome/test:test_support_unit", |
| 180 | "//third_party/smhasher:murmurhash3", |
| 181 | "//ui/message_center:test_support", |
| 182 | ] |
| 183 | deps -= [ |
| 184 | "//breakpad:symupload", # TODO(GYP) ?? |
| 185 | "//chrome", # TODO(GYP) ?? |
| 186 | "//chrome/test:browser_tests", # TODO(GYP) ?? |
| 187 | "//chrome/test:interactive_ui_tests", # TODO(GYP) ?? |
| 188 | "//chrome/test:sync_integration_tests", # TODO(GYP) ?? |
| 189 | "//chrome/test:unit_tests", # TODO(GYP) |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 190 | |
| 191 | # Chromedriver shouldn't be compiled on Android. |
| 192 | "//chrome/test/chromedriver:chromedriver_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 193 | "//extensions:extensions_browsertests", |
| 194 | "//extensions:extensions_unittests", |
| 195 | "//google_apis/gcm:gcm_unit_tests", |
| 196 | "//ipc:ipc_tests", # TODO(GYP) ?? |
| 197 | "//jingle:jingle_unittests", # TODO(GYP) ?? |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 198 | "//net:hpack_example_generator", |
| 199 | "//net:hpack_fuzz_mutator", |
| 200 | "//net:hpack_fuzz_wrapper", |
| 201 | "//net:net_perftests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 202 | "//net:net_unittests", |
| 203 | "//ppapi/examples", |
| 204 | "//third_party/pdfium/samples:pdfium_test", |
| 205 | "//tools/gn", |
| 206 | "//tools/gn:gn_unittests", |
| 207 | "//ui/app_list:app_list_unittests", |
| 208 | "//url:url_unittests", |
[email protected] | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 209 | ] |
| 210 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 211 | if (has_chrome_android_internal) { |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 212 | deps += [ "//clank" ] # TODO(GYP) ?? |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 213 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | if (is_linux) { |
| 217 | # The following are definitely linux-only. |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 218 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 219 | "//breakpad:breakpad_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 220 | "//breakpad:generate_test_dump", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 221 | "//dbus:dbus_test_server", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 222 | "//dbus:dbus_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 223 | "//net:disk_cache_memory_test", |
| 224 | "//net:flip_in_mem_edsm_server", |
| 225 | "//net:flip_in_mem_edsm_server_unittests", |
| 226 | "//net:quic_client", |
| 227 | "//net:quic_server", |
| 228 | "//sandbox/linux:chrome_sandbox", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 229 | "//sandbox/linux:sandbox_linux_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 230 | "//sandbox/linux:sandbox_linux_jni_unittests", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 231 | ] |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 232 | |
| 233 | if (is_chromeos || use_ash) { |
| 234 | deps += [ "//components/session_manager/core" ] |
| 235 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | if (is_linux && !is_chromeos) { |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 239 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 240 | # TODO(GYP): Figure out which of these should (and can) build |
| 241 | # under which other conditions. |
| 242 | "//base:base_perftests", |
| 243 | "//base:base_i18n_perftests", |
| 244 | "//base:check_example", |
| 245 | "//base:protect_file_posix", |
| 246 | "//base:build_utf8_validator_tables", |
| 247 | "//breakpad:core-2-minidump", |
benchan | 80ffc54 | 2015-03-10 20:33:03 | [diff] [blame] | 248 | "//breakpad:minidump-2-core", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 249 | "//build/sanitizers:copy_llvm_symbolizer", |
| 250 | "//cc/blink:cc_blink_unittests", |
| 251 | "//cc:cc_perftests", |
| 252 | "//chrome/test:chrome_app_unittests", |
| 253 | "//chrome/test:load_library_perf_tests", |
| 254 | "//chrome/test:sync_performance_tests", |
| 255 | "//chrome/test/chromedriver:chromedriver", |
| 256 | "//chrome/test/chromedriver:chromedriver_tests", |
| 257 | "//chrome/tools/profile_reset:jtl_compiler", |
| 258 | "//components:components_perftests", |
| 259 | "//components/network_hints/browser", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 260 | "//components/webui_generator", |
| 261 | "//content/public/app:browser", |
| 262 | "//content/public/app:child", |
| 263 | "//content/test:content_gl_tests", |
| 264 | "//content/test:content_gl_benchmark", |
| 265 | "//courgette:courgette", |
| 266 | "//courgette:courgette_fuzz", |
| 267 | "//courgette:courgette_minimal_tool", |
| 268 | "//courgette:courgette_unittests", |
| 269 | "//device:device_unittests", |
| 270 | "//gin:gin_shell", |
| 271 | "//gin:gin_v8_snapshot_fingerprint", |
| 272 | "//gin:gin_unittests", |
| 273 | "//google_apis:google_apis_unittests", |
| 274 | "//google_apis/gcm:mcs_probe", |
| 275 | "//gpu:angle_unittests", |
| 276 | "//gpu:gl_tests", |
| 277 | |
| 278 | # TODO(GYP): Remove this when the gles2 tests work |
| 279 | "//gpu/command_buffer/client:gles2_implementation_no_check", |
| 280 | |
| 281 | "//gpu:gpu_perftests", |
| 282 | "//ipc:ipc_perftests", |
| 283 | "//media:ffmpeg_regression_tests", # TODO(GYP) this should be conditional on media_use_ffmpeg |
| 284 | "//media:media_perftests", |
| 285 | "//media/cast:cast_benchmarks", |
| 286 | "//media/cast:generate_barcode_video", |
| 287 | "//media/cast:generate_timecode_audio", |
| 288 | "//media/cast:tap_proxy", |
| 289 | "//mojo/application", |
| 290 | "//net:crash_cache", |
| 291 | "//net:crl_set_dump", |
| 292 | "//net:dns_fuzz_stub", |
| 293 | "//net:gdig", |
| 294 | "//net:get_server_time", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 295 | "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net |
| 296 | "//net:stress_cache", |
| 297 | "//net:tld_cleanup", |
| 298 | "//net:run_testserver", |
| 299 | "//net:dump_cache", |
dpranke | c09ccaa | 2015-03-27 22:00:38 | [diff] [blame^] | 300 | "//ppapi:pepper_hash_for_uma", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 301 | "//ppapi:ppapi_perftests", # TODO(GYP): Are there other ppapi_* test targets? |
| 302 | "//skia:filter_fuzz_stub", |
| 303 | "//skia:image_operations_bench", |
| 304 | "//sync:run_sync_testserver", |
| 305 | "//sync:sync_endtoend_tests", |
| 306 | "//sync/tools:sync_client", |
| 307 | "//sync/tools:sync_listen_notifications", |
| 308 | "//testing/gmock:gmock_main", |
| 309 | "//third_party/codesighs:maptsvdifftool", |
| 310 | "//third_party/libphonenumber:libphonenumber_unittests", |
| 311 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", |
| 312 | "//tools/gn:generate_test_gn_data", |
| 313 | "//tools/perf/clear_system_cache", |
| 314 | "//ui/keyboard:keyboard_unittests", |
| 315 | "//ui/message_center:message_center_unittests", |
| 316 | "//ui/snapshot:snapshot_unittests", |
| 317 | "//ui/views/examples:views_examples_with_content_exe", |
| 318 | |
| 319 | # "//v8:v8_snapshot", # TODO(GYP): visibility? |
| 320 | # "//v8:postmortem-metadata", # TODO(GYP): visibility? |
| 321 | |
| 322 | "//third_party/codesighs:nm2tsv", |
| 323 | "//third_party/leveldatabase:env_chromium_unittests", |
| 324 | "//third_party/libaddressinput:libaddressinput_unittests", |
| 325 | "//third_party/sqlite:sqlite_shell", |
| 326 | "//ui/compositor:compositor_unittests", |
| 327 | ] |
| 328 | |
dpranke | 807f602b | 2015-03-17 23:20:56 | [diff] [blame] | 329 | if (current_toolchain == host_toolchain) { |
| 330 | # Do not build the breakpad utilities in cross-compiles. |
| 331 | deps += [ |
| 332 | "//breakpad:dump_syms", |
| 333 | "//breakpad:microdump_stackwalk", |
| 334 | "//breakpad:minidump_dump", |
| 335 | "//breakpad:minidump_stackwalk", |
| 336 | ] |
| 337 | } |
| 338 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 339 | if (enable_extensions) { |
| 340 | deps += [ "//extensions/shell:app_shell" ] |
| 341 | } |
| 342 | |
| 343 | if (enable_nacl) { |
| 344 | deps += [ "//components/nacl:nacl_loader_unittests" ] |
| 345 | } |
| 346 | |
| 347 | if (!is_debug && !is_component_build) { |
| 348 | deps += [ "//chrome/tools/service_discovery_sniffer" ] |
| 349 | } |
| 350 | |
| 351 | if (toolkit_views) { |
| 352 | deps += [ "//ui/app_list:app_list_demo" ] |
| 353 | } |
| 354 | |
| 355 | if (use_ash) { |
| 356 | deps += [ |
| 357 | "//ash:ash_shell", |
| 358 | "//ash:ash_shell_unittests", |
| 359 | "//ash:ash_unittests", |
| 360 | ] |
| 361 | } |
| 362 | |
| 363 | if (use_aura) { |
| 364 | deps += [ |
| 365 | "//ui/aura:aura_unittests", |
| 366 | "//ui/aura:bench", |
| 367 | "//ui/aura:demo", |
| 368 | ] |
| 369 | } |
| 370 | |
| 371 | if (use_x11) { |
| 372 | deps += [ "//media:player_x11" ] |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 373 | if (target_cpu != "arm") { |
tfarina | 8944e6f | 2015-03-25 20:06:59 | [diff] [blame] | 374 | deps += [ "//gpu/tools/compositor_model_bench" ] |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 375 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 376 | } |
| 377 | } |
| 378 | |
| 379 | if (is_mac) { |
| 380 | deps += [ |
| 381 | "//breakpad:crash_inspector", |
| 382 | "//breakpad:dump_syms", |
| 383 | "//breakpad:symupload", |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 384 | "//third_party/apple_sample_code", |
| 385 | "//third_party/molokocacao", |
| 386 | ] |
| 387 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 388 | # TODO(GYP): Remove these when the targets below work and these |
| 389 | # are pulled in automatically. |
| 390 | deps += [ |
| 391 | "//cc/blink", |
| 392 | "//components/ui/zoom:ui_zoom", |
| 393 | "//content", |
| 394 | "//content/test:test_support", |
| 395 | "//device/battery", |
| 396 | "//device/bluetooth", |
| 397 | "//device/nfc", |
| 398 | "//device/usb", |
| 399 | "//device/vibration", |
| 400 | "//media/blink", |
| 401 | "//pdf", |
| 402 | "//storage/browser", |
| 403 | "//third_party/brotli", |
| 404 | "//third_party/flac", |
| 405 | "//third_party/hunspell", |
| 406 | "//third_party/iccjpeg", |
| 407 | "//third_party/libphonenumber", |
| 408 | "//third_party/ots", |
| 409 | "//third_party/qcms", |
| 410 | "//third_party/smhasher:murmurhash3", |
| 411 | "//third_party/speex", |
| 412 | "//third_party/webrtc/system_wrappers", |
| 413 | "//ui/native_theme", |
| 414 | "//ui/snapshot", |
| 415 | "//ui/surface", |
| 416 | ] |
| 417 | |
dpranke | cf8465db7 | 2014-11-10 23:51:22 | [diff] [blame] | 418 | # TODO(dpranke): These are as-yet untriaged but need at least the above. |
dpranke | 4376059 | 2014-11-08 02:59:57 | [diff] [blame] | 419 | deps -= [ |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 420 | "//chrome", # TODO(GYP) |
| 421 | "//chrome/test:browser_tests", # TODO(GYP) |
| 422 | "//chrome/test:interactive_ui_tests", # TODO(GYP) |
| 423 | "//chrome/test:sync_integration_tests", # TODO(GYP) |
| 424 | "//chrome/test:unit_tests", # TODO(GYP) |
| 425 | "//components:components_unittests", # TODO(GYP) |
| 426 | "//content/test:content_browsertests", # TODO(GYP) |
| 427 | "//content/test:content_perftests", # TODO(GYP) |
| 428 | "//content/test:content_unittests", # TODO(GYP) |
| 429 | "//extensions:extensions_browsertests", # TODO(GYP) |
| 430 | "//extensions:extensions_unittests", # TODO(GYP) |
| 431 | "//net:net_unittests", # TODO(GYP) |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 432 | "//ui/app_list:app_list_unittests", # TODO(GYP) |
| 433 | "//ui/gfx:gfx_unittests", # TODO(GYP) |
dpranke | cf8465db7 | 2014-11-10 23:51:22 | [diff] [blame] | 434 | ] |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 435 | } else if (is_win) { |
| 436 | deps += [ "//ui/metro_viewer" ] |
| 437 | deps -= [ |
| 438 | "//crypto:crypto_unittests", # TODO(GYP) |
| 439 | "//net:net_unittests", # TODO(GYP) |
| 440 | ] |
mohsen | f837da7c | 2014-12-09 19:01:34 | [diff] [blame] | 441 | } |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 442 | } |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 443 | |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 444 | group("gn_only") { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 445 | testonly = true |
| 446 | |
| 447 | if (is_linux && !is_chromeos) { |
| 448 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 449 | # and figure out how cross-platform they are |
| 450 | deps = [ |
| 451 | ":gn_mojo_targets", |
| 452 | "//chrome/browser/resources:extension_resource_demo", |
| 453 | "//chrome/installer/util:strings", |
| 454 | "//chrome:main_dll", |
| 455 | "//chrome/test:load_library_perf_tests", |
| 456 | "//chrome/tools/convert_dict", |
| 457 | "//components/constrained_window:unit_tests", |
| 458 | "//components/enhanced_bookmarks:test_support", |
| 459 | "//components/password_manager/content/renderer:browser_tests", |
| 460 | "//components/metrics:serialization", |
| 461 | "//components/proximity_auth:proximity_auth_unittests", |
| 462 | "//components/rappor:unit_tests", |
| 463 | "//components/sessions:unit_tests", |
| 464 | "//media/blink:media_blink_unittests", |
| 465 | "//media/base:base_for_cast_ios", |
| 466 | "//media/cast:udp_proxy", |
| 467 | "//native_client/src/trusted/platform_qualify:vcpuid", |
| 468 | "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", |
| 469 | "//storage/browser:dump_file_system", |
| 470 | "//third_party/angle:libANGLE", |
| 471 | "//third_party/angle:libEGL", |
| 472 | "//third_party/angle:libGLESv2", |
| 473 | "//third_party/cld_2:cld_2_dynamic_data_tool", |
| 474 | "//third_party/leveldatabase:leveldb_arena_test", |
| 475 | "//third_party/leveldatabase:leveldb_bloom_test", |
| 476 | "//third_party/leveldatabase:leveldb_db_test", |
| 477 | "//third_party/leveldatabase:leveldb_crc32c_test", |
| 478 | "//third_party/leveldatabase:leveldb_cache_test", |
| 479 | "//third_party/leveldatabase:leveldb_env_test", |
| 480 | "//third_party/leveldatabase:leveldb_write_batch_test", |
| 481 | "//third_party/leveldatabase:leveldb_filter_block_test", |
| 482 | "//third_party/leveldatabase:leveldb_version_edit_test", |
| 483 | "//third_party/leveldatabase:leveldb_db_bench", |
| 484 | "//third_party/leveldatabase:leveldb_log_test", |
| 485 | "//third_party/leveldatabase:leveldb_corruption_test", |
| 486 | "//third_party/leveldatabase:leveldb_table_test", |
| 487 | "//third_party/leveldatabase:leveldb_skiplist_test", |
| 488 | "//third_party/leveldatabase:leveldb_filename_test", |
| 489 | "//third_party/leveldatabase:leveldb_dbformat_test", |
| 490 | "//third_party/pdfium/third_party:freetype", |
| 491 | "//third_party/libjingle:peerconnnection_server", |
| 492 | "//third_party/libjpeg_turbo:simd", |
| 493 | "//third_party/libjpeg_turbo:simd_asm", |
| 494 | "//third_party/libsrtp:replay_driver", |
| 495 | "//third_party/libsrtp:roc_driver", |
| 496 | "//third_party/libsrtp:rtpw", |
| 497 | "//third_party/libsrtp:rdbx_driver", |
| 498 | "//third_party/libsrtp:srtp_driver", |
| 499 | "//third_party/libsrtp:srtp_driver", |
| 500 | "//third_party/libsrtp:srtp_test_kernel_driver", |
| 501 | "//third_party/libsrtp:srtp_test_cipher_driver", |
| 502 | "//third_party/libsrtp:srtp_test_datatypes_driver", |
| 503 | "//third_party/libsrtp:srtp_test_aes_calc", |
| 504 | "//third_party/libsrtp:srtp_test_env", |
| 505 | "//third_party/libsrtp:srtp_test_rand_gen", |
| 506 | "//third_party/libsrtp:srtp_test_sha1_driver", |
| 507 | "//third_party/libsrtp:srtp_test_stat_driver", |
| 508 | "//third_party/opus:opus_compare", |
| 509 | "//third_party/opus:opus_demo", |
| 510 | "//third_party/opus:test_opus_decode", |
| 511 | "//third_party/opus:test_opus_encode", |
| 512 | "//third_party/opus:test_opus_api", |
| 513 | "//third_party/opus:test_opus_padding", |
| 514 | "//third_party/webrtc/system_wrappers:field_trial_default", |
| 515 | "//third_party/webrtc/system_wrappers:metrics_default", |
| 516 | "//ui/display/types", |
| 517 | "//ui/shell_dialogs:shell_dialogs_unittests", |
| 518 | "//ui/views/examples:views_examples_exe", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 519 | ] |
| 520 | if (enable_nacl) { |
| 521 | deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] |
| 522 | } |
| 523 | if (use_ozone) { |
| 524 | deps += [ "//ui/ozone/demo" ] |
| 525 | } |
| 526 | if (is_android) { |
| 527 | deps += [ "//build/android/gyp/test:hello_world" ] |
| 528 | } |
dpranke | 807f602b | 2015-03-17 23:20:56 | [diff] [blame] | 529 | |
| 530 | if (is_linux && current_toolchain == host_toolchain) { |
| 531 | deps += [ "//v8:d8" ] |
| 532 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 533 | } |
| 534 | } |
| 535 | |
| 536 | group("gn_mojo_targets") { |
| 537 | testonly = true |
| 538 | if (is_linux && !is_chromeos) { |
| 539 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 540 | # and figure out how cross-platform they are |
| 541 | deps = [ |
| 542 | "//chrome/browser/ui/webui/omnibox:mojo_bindings_python", |
| 543 | "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart", |
| 544 | "//content/public/common:mojo_bindings_dart", |
| 545 | "//content/public/common:mojo_bindings_python", |
| 546 | "//content/common:mojo_bindings_dart", |
| 547 | "//content/common:mojo_bindings_python", |
| 548 | "//content/test:web_ui_test_mojo_bindings_dart", |
| 549 | "//content/test:web_ui_test_mojo_bindings_python", |
| 550 | "//device/battery:mojo_bindings_python", |
| 551 | "//device/battery:mojo_bindings_dart", |
| 552 | "//device/vibration:mojo_bindings_dart", |
| 553 | "//device/vibration:mojo_bindings_python", |
| 554 | "//ipc/mojo:ipc_mojo_perftests", |
| 555 | "//ipc/mojo:client_channel_dart", |
| 556 | "//ipc/mojo:client_channel_python", |
| 557 | "//media/mojo/interfaces:interfaces_dart", |
| 558 | "//media/mojo/interfaces:interfaces_python", |
| 559 | "//media/mojo/services:cdm_service", |
| 560 | "//media/mojo:tests", |
| 561 | "//net/interfaces:interfaces_dart", |
| 562 | "//net/interfaces:interfaces_python", |
| 563 | "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests", |
| 564 | "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart", |
| 565 | "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python", |
| 566 | "//third_party/mojo/src/mojo/public/python:packaged_application", |
| 567 | "//third_party/mojo/src/mojo/public/python:packaged_bindings", |
| 568 | "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone", |
| 569 | "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart", |
| 570 | "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python", |
| 571 | "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart", |
| 572 | "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python", |
| 573 | ] |
| 574 | |
| 575 | if (!is_debug) { |
| 576 | deps += [ |
| 577 | "//mojo/services/html_viewer:tests", |
| 578 | "//mojo/services/network:apptests", |
| 579 | ] |
| 580 | } |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | group("gn_visibility") { |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 585 | deps = [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 586 | # "//build/config/sanitizers:options_sources", |
| 587 | # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 588 | # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
| 589 | # "//ui/resources:repack_ui_test_mac_locale_pack", |
| 590 | # "//v8:v8_snapshot", # TODO(GYP): visibility? |
| 591 | # "//v8:postmortem-metadata", # TODO(GYP): visibility? |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 592 | ] |
| 593 | } |
| 594 | |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 595 | if (is_linux) { |
| 596 | # This group corresponds to the list of tests run on the waterfall for |
| 597 | # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's |
| 598 | # here to help track GYP -> GN conversion progress. |
| 599 | group("linux_default_tests") { |
| 600 | testonly = true |
| 601 | deps = [ |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 602 | # components_browsertests TODO(GYP) |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 603 | # nacl_loader_unittests TODO(GYP) |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 604 | |
| 605 | "//base:base_unittests", # PASSES (*) 2/25/2015 |
| 606 | "//cc:cc_unittests", # PASSES 2/25/2015 |
| 607 | "//chrome/test:browser_tests", |
| 608 | "//chrome/test:interactive_ui_tests", |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 609 | "//chrome/test:sync_integration_tests", # Crashes for brettw in GN and GYP. |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 610 | "//chrome/test:unit_tests", # PASSES 2/25/2015 |
brettw | 922d3aa | 2015-02-27 22:15:46 | [diff] [blame] | 611 | "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 2/25/2015 |
brettw | 77b5872 | 2015-02-27 23:35:06 | [diff] [blame] | 612 | "//components:components_unittests", # PASSES 2/27/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 613 | "//content/test:content_browsertests", |
| 614 | "//content/test:content_unittests", # PASSES 2/25/2015 |
| 615 | "//crypto:crypto_unittests", # PASSES 2/25/2015 |
| 616 | "//dbus:dbus_unittests", # PASSES 2/25/2015 |
tfarina | 466754f | 2015-03-09 23:39:29 | [diff] [blame] | 617 | "//device:device_unittests", # PASSES 3/07/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 618 | "//extensions:extensions_browsertests", # PASSES 2/25/2015 |
| 619 | "//extensions:extensions_unittests", # PASSES 2/25/2015 |
| 620 | "//extensions/shell:app_shell_unittests", # PASSES 2/25/2015 |
| 621 | "//google_apis/gcm:gcm_unit_tests", # PASSES 2/25/2015 |
| 622 | "//google_apis:google_apis_unittests", # PASSES 2/25/2015 |
| 623 | "//gpu:gpu_unittests", # PASSES 2/25/2015 |
| 624 | "//ipc:ipc_tests", # PASSES 2/25/2015 |
| 625 | "//ipc/mojo:ipc_mojo_unittests", # PASSES 2/25/2015 |
| 626 | "//jingle:jingle_unittests", # PASSES 2/25/2015 |
| 627 | "//media/cast:cast_unittests", # PASSES 2/25/2015 |
agoode | 21dbd12 | 2015-03-05 02:40:50 | [diff] [blame] | 628 | "//media:media_unittests", # PASSES 3/3/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 629 | "//mojo/common:mojo_common_unittests", # PASSES 2/25/2015 |
| 630 | "//net:net_unittests", # PASSES 2/25/2015 |
brettw | 31f4de69 | 2015-03-04 17:24:45 | [diff] [blame] | 631 | "//ppapi:ppapi_unittests", # PASSES 2/26/2015 |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 632 | "//printing:printing_unittests", # PASSES 2/25/2015 |
brettw | 31f4de69 | 2015-03-04 17:24:45 | [diff] [blame] | 633 | "//remoting:remoting_unittests", # Some crashes. |
brettw | 533c5042 | 2015-02-26 17:49:16 | [diff] [blame] | 634 | "//sandbox/linux:sandbox_linux_unittests", # PASSES 2/25/2015 |
| 635 | "//skia:skia_unittests", # PASSES 2/25/2015 |
| 636 | "//sql:sql_unittests", # PASSES 2/25/2015 |
| 637 | "//sync:sync_unit_tests", # PASSES 2/25/2015 |
| 638 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 2/25/2015 |
| 639 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # PASSES 2/25/2015 |
| 640 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # PASSES 2/25/2015 |
| 641 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 2/25/2015 |
| 642 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 2/25/2015 |
| 643 | "//ui/accessibility:accessibility_unittests", # PASSES 2/25/2015 |
| 644 | "//ui/app_list:app_list_unittests", # PASSES 2/25/2015 |
| 645 | "//ui/aura:aura_unittests", # PASSES 2/25/2015 |
| 646 | "//ui/base:ui_base_unittests", # TODO(GYP) ResourceBundleTest.* fails. |
| 647 | "//ui/compositor:compositor_unittests", # PASSES 2/25/2015 |
| 648 | "//ui/display:display_unittests", # PASSES 2/25/2015 |
| 649 | "//ui/events:events_unittests", # PASSES 2/25/2015 |
| 650 | "//ui/gfx:gfx_unittests", # PASSES 2/25/2015 |
| 651 | "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015 |
| 652 | "//ui/views:views_unittests", # PASSES (*) 2/25/2015 |
| 653 | "//ui/wm:wm_unittests", # PASSES 2/25/2015 |
| 654 | "//url:url_unittests", # PASSES 2/25/2015 |
| 655 | |
| 656 | # Note: |
| 657 | # (*) Fails but failures match GYP build at time of testing. |
| 658 | ] |
| 659 | } |
| 660 | } |