OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is the root build file for GN. GN will start processing by loading this | 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 | 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 | 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 | 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. | 9 # file to your new one or GN won't know about it. |
10 | 10 |
| 11 import("//build/config/features.gni") |
11 import("//build/config/ui.gni") | 12 import("//build/config/ui.gni") |
| 13 |
12 if (is_android) { | 14 if (is_android) { |
13 import("//build/config/android/config.gni") | 15 import("//build/config/android/config.gni") |
14 } | 16 } |
15 | 17 |
16 declare_args() { | 18 declare_args() { |
17 # A list of extra dependencies to add to the root target. This allows a | 19 # A list of extra dependencies to add to the root target. This allows a |
18 # checkout to add additional targets without explicitly changing any checked- | 20 # checkout to add additional targets without explicitly changing any checked- |
19 # in files. | 21 # in files. |
20 root_extra_deps = [] | 22 root_extra_deps = [] |
21 } | 23 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 156 } |
155 | 157 |
156 if (use_x11) { | 158 if (use_x11) { |
157 deps += [ "//tools/xdisplaycheck" ] | 159 deps += [ "//tools/xdisplaycheck" ] |
158 } | 160 } |
159 | 161 |
160 if (use_aura) { | 162 if (use_aura) { |
161 deps += [ "//ui/wm" ] | 163 deps += [ "//ui/wm" ] |
162 } | 164 } |
163 | 165 |
| 166 if (enable_nacl && enable_nacl_untrusted) { |
| 167 if (is_linux && cpu_arch == "x64") { |
| 168 # TODO(GYP): Add the right deps for the other architectures. |
| 169 deps += [ "//ppapi:ppapi_cpp_lib(//native_client/build/toolchain/nacl:clan
g_newlib_x64)" ] |
| 170 } |
| 171 } |
| 172 |
164 if (is_win) { | 173 if (is_win) { |
165 deps += [ "//ui/metro_viewer" ] | 174 deps += [ "//ui/metro_viewer" ] |
166 } | 175 } |
167 | 176 |
168 if (is_win || is_mac || is_chromeos) { | 177 if (is_win || is_mac || is_chromeos) { |
169 # RLZ works on these platforms. | 178 # RLZ works on these platforms. |
170 deps += [ "//rlz:rlz_lib" ] | 179 deps += [ "//rlz:rlz_lib" ] |
171 } | 180 } |
172 | 181 |
173 if (cpu_arch == "x86" || cpu_arch == "x64") { | 182 if (cpu_arch == "x86" || cpu_arch == "x64") { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 "//ui/views", | 304 "//ui/views", |
296 "//ui/views/controls/webview", | 305 "//ui/views/controls/webview", |
297 "//ui/web_dialogs", | 306 "//ui/web_dialogs", |
298 ] | 307 ] |
299 } | 308 } |
300 | 309 |
301 if (is_mac || is_ios) { | 310 if (is_mac || is_ios) { |
302 deps -= [ "//ui/touch_selection" ] | 311 deps -= [ "//ui/touch_selection" ] |
303 } | 312 } |
304 } | 313 } |
| 314 |
| 315 group("gyp_all") { |
| 316 testonly = true |
| 317 |
| 318 # TODO(GYP): This target should describe everything that is built by a GYP |
| 319 # build but not yet by a GN build, i.e., these are the targets that still |
| 320 # need to be ported to GN. Eventually this target should be identical to |
| 321 # gn_all. |
| 322 |
| 323 deps = [ |
| 324 ":gn_all", |
| 325 # "//extensions/shell:app_shell_unittests", # TODO(GYP) |
| 326 # "//chrome/test:chrome_app_unittests", # TODO(GYP) |
| 327 # "//chrome/test:chromedriver_unittests", # TODO(GYP) |
| 328 # "//chrome/test:performance_browser_tests", # TODO(GYP) |
| 329 # "//net:hpack_example_generator", # TODO(GYP) |
| 330 # "//net:hpack_fuzz_wrapper", # TODO(GYP) |
| 331 # "//ppapi:ppapi_perftests", # TODO(GYP) |
| 332 # "//ppapi:ppapi_unittests", # TODO(GYP) |
| 333 # "//remoting:remoting_unittests", # TODO(GYP) |
| 334 # "//remoting/host", # TODO(GYP) |
| 335 # "//sandbox/linux:sandbox_linux_jni_unittests", # TODO(GYP) |
| 336 # "//third_party/codesighs.gyp:codesighs", # TODO(GYP) |
| 337 # "//third_party/codesighs.gyp:nm2tsv", # TODO(GYP) |
| 338 # "//tools/telemetry:bitmaptools", # TODO(GYP) |
| 339 # various ppapi examples, # TODO(GYP) |
| 340 |
| 341 ] |
| 342 } |
| 343 |
| 344 group("gn_all") { |
| 345 testonly = true |
| 346 |
| 347 deps = [ |
| 348 "//ash:ash_shell", |
| 349 "//ash:ash_shell_unittests", |
| 350 "//ash:ash_unittests", |
| 351 "//base:base_i18n_perftests", |
| 352 "//base:base_unittests", |
| 353 "//breakpad:breakpad_unittests", |
| 354 "//breakpad:dump_syms", |
| 355 "//breakpad:generate_test_dump", |
| 356 "//breakpad:microdump_stackwalk", |
| 357 "//breakpad:minidump_dump", |
| 358 "//breakpad:minidump_stackwalk", |
| 359 "//breakpad:symupload", |
| 360 "//cc/blink:cc_blink_unittests", |
| 361 "//cc:cc_perftests", |
| 362 "//cc:cc_unittests", |
| 363 "//chrome", |
| 364 "//chrome/test:browser_tests", |
| 365 "//chrome/test:interactive_ui_tests", |
| 366 "//chrome/test:sync_integration_tests", |
| 367 "//chrome/test:sync_performance_tests", |
| 368 "//chrome/test:unit_tests", |
| 369 "//chrome/test/perf", |
| 370 "//chrome/tools/profile_reset:jtl_compiler", |
| 371 "//components:components_unittests", |
| 372 "//components/nacl:nacl_loader_unittests", |
| 373 "//content/shell:content_shell", |
| 374 "//content/test:content_browsertests", |
| 375 "//content/test:content_perftests", |
| 376 "//content/test:content_unittests", |
| 377 "//courgette:courgette_minimal_tool", |
| 378 "//courgette:courgette_unittests", |
| 379 "//crypto:crypto_unittests", |
| 380 "//device:device_unittests", |
| 381 "//extensions:extensions_browsertests", |
| 382 "//extensions:extensions_unittests", |
| 383 "//extensions/shell:app_shell", |
| 384 "//gin:gin_unittests", |
| 385 "//google_apis:google_apis_unittests", |
| 386 "//google_apis/gcm:gcm_unit_tests", |
| 387 "//gpu:angle_unittests", |
| 388 "//gpu:gpu_unittests", |
| 389 "//ipc:ipc_perftests", |
| 390 "//ipc:ipc_tests", |
| 391 "//ipc/mojo:ipc_mojo_unittests", |
| 392 "//jingle:jingle_unittests", |
| 393 "//media:ffmpeg_regression_tests", |
| 394 "//media:media_perftests", |
| 395 "//media:media_unittests", |
| 396 "//media:player_x11", |
| 397 "//media/mojo", |
| 398 "//media/cast:cast_unittests", |
| 399 "//mojo", |
| 400 "//mojo/common:mojo_common_unittests", |
| 401 "//mojo/services/html_viewer:tests", |
| 402 "//mojo/nacl:monacl_shell", |
| 403 "//net:dump_cache", |
| 404 "//net:flip_in_mem_edsm_server_unittests", |
| 405 "//net:get_server_time", |
| 406 "//net:net_unittests", |
| 407 "//printing:printing_unittests", |
| 408 |
| 409 "//sql:sql_unittests", |
| 410 "//sync:sync_unit_tests", |
| 411 |
| 412 # TODO(GYP): the Blink test targets should be public, but |
| 413 # currently aren't. all_blink pulls them in, though. |
| 414 # "//third_party/WebKit/Source/platform:heap_unittests", |
| 415 # "//third_party/WebKit/Source/platform:platform_unittests", |
| 416 # "//third_party/WebKit/Source/wtf:wtf_unittests", |
| 417 "//third_party/WebKit/public:all_blink", |
| 418 "//third_party/cacheinvalidation:cacheinvalidation_unittests", |
| 419 |
| 420 # TODO(GYP): This is needed only w/ cld_version==1. What configs set that? |
| 421 "//third_party/cld", |
| 422 |
| 423 # TODO(GYP): This is needed only w/ use_system_fontconfig==0. What configs s
et that? |
| 424 "//third_party/fontconfig", |
| 425 |
| 426 "//third_party/libaddressinput:libaddressinput_unittests", |
| 427 "//third_party/libphonenumber:libphonenumber_unittests", |
| 428 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", |
| 429 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", |
| 430 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", |
| 431 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", |
| 432 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", |
| 433 "//third_party/pdfium/samples:pdfium_test", |
| 434 |
| 435 # TODO(GYP): Verify that this is no longer needed. |
| 436 "//third_party/smhasher:pmurhash", |
| 437 |
| 438 "//third_party/sqlite:sqlite_shell", |
| 439 "//tools/imagediff", |
| 440 "//tools/gn", |
| 441 "//tools/gn:generate_test_gn_data", |
| 442 "//tools/gn:gn_unittests", |
| 443 "//ui/accessibility:accessibility_unittests", |
| 444 "//ui/app_list:app_list_unittests", |
| 445 "//ui/aura:bench", |
| 446 "//ui/aura:demo", |
| 447 "//ui/aura:aura_unittests", |
| 448 "//ui/base:ui_base_unittests", |
| 449 "//ui/compositor:compositor_unittests", |
| 450 "//ui/display:display_unittests", |
| 451 "//ui/events:events_unittests", |
| 452 "//ui/gfx:gfx_unittests", |
| 453 "//ui/keyboard:keyboard_unittests", |
| 454 "//ui/snapshot:snapshot_unittests", |
| 455 "//ui/touch_selection:ui_touch_selection_unittests", |
| 456 "//ui/views:views_unittests", |
| 457 "//ui/wm:wm_unittests", |
| 458 "//url:url_unittests", |
| 459 "//skia:skia_unittests", |
| 460 ] |
| 461 |
| 462 if (is_android) { |
| 463 deps += [ |
| 464 "//chrome:chrome_shell_apk", |
| 465 "//content/shell/android:content_shell_apk", |
| 466 ] |
| 467 deps -= [ "//url:url_unittests" ] |
| 468 } else if (is_linux) { |
| 469 deps += [ |
| 470 "//dbus:dbus_unittests", |
| 471 "//sandbox/linux:chrome_sandbox", |
| 472 "//sandbox/linux:sandbox_linux_unittests", |
| 473 ] |
| 474 } |
| 475 } |
OLD | NEW |