diff options
author | dpranke <dpranke@chromium.org> | 2015-04-13 16:56:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-13 23:57:28 +0000 |
commit | fd181327c65aa69010eeaa2b1190334eedd82325 (patch) | |
tree | b4795b0d6a55cad4d5a9b258ce09bf1e35f52fbb | |
parent | 4d903a9645edd964b26e2afc4391aa9949c3c0c8 (diff) | |
download | chromium_src-fd181327c65aa69010eeaa2b1190334eedd82325.zip chromium_src-fd181327c65aa69010eeaa2b1190334eedd82325.tar.gz chromium_src-fd181327c65aa69010eeaa2b1190334eedd82325.tar.bz2 |
Update gn_all and gyp_remaining to reflect reality on the win config.
R=brettw@chromium.org
BUG=354261
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel
Review URL: https://codereview.chromium.org/1072653005
Cr-Commit-Position: refs/heads/master@{#324948}
-rw-r--r-- | BUILD.gn | 214 | ||||
-rw-r--r-- | base/BUILD.gn | 2 | ||||
-rw-r--r-- | build/gn_migration.gypi | 79 | ||||
-rw-r--r-- | chrome/test/BUILD.gn | 3 |
4 files changed, 175 insertions, 123 deletions
@@ -8,8 +8,10 @@ # you add a new build file, there must be some path of dependencies from this # file to your new one or GN won't know about it. +import("//build/config/crypto.gni") import("//build/config/features.gni") import("//build/config/ui.gni") +import("//build/module_args/v8.gni") import("//remoting/remoting_host.gni") if (is_android) { @@ -118,6 +120,7 @@ group("gn_all") { "//tools/imagediff($host_toolchain)", "//tools/gn", "//tools/gn:gn_unittests", + "//tools/gn:generate_test_gn_data", "//tools/telemetry:bitmaptools($host_toolchain)", "//ui/accessibility:accessibility_unittests", "//ui/app_list:app_list_unittests", @@ -131,11 +134,22 @@ group("gn_all") { deps += root_extra_deps - # TODO(GYP): Get this working on the mac? if (enable_extensions && !is_mac) { + # TODO(GYP): Get this working on the mac? deps += [ "//extensions/shell:app_shell_unittests" ] } + if (enable_me2me_host) { + deps += [ "//remoting/host:remoting_me2me_host" ] + } + + if (enable_media_router) { + deps += [ + "//chrome/browser/media/router/", + "//chrome/browser/media/router:unit_tests", + ] + } + if (enable_remoting_host) { deps += [ "//remoting:remoting_unittests", @@ -146,18 +160,6 @@ group("gn_all") { ] } - if (enable_me2me_host) { - deps += [ "//remoting/host:remoting_me2me_host" ] - } - - if (!is_win) { - deps += [ "//breakpad:symupload" ] - } - - if (use_x11) { - deps += [ "//tools/xdisplaycheck" ] - } - if (toolkit_views) { deps += [ "//ui/views:views_unittests" ] } @@ -170,17 +172,12 @@ group("gn_all") { deps += [ "//ui/ozone" ] } - if (enable_media_router) { - deps += [ - "//chrome/browser/media/router/", - "//chrome/browser/media/router:unit_tests", - ] + if (use_x11) { + deps += [ "//tools/xdisplaycheck" ] } - if (is_win || is_mac || is_chromeos) { - # RLZ works on these platforms. - # TODO(GYP): Is this target needed, or pulled in automatically? - deps += [ "//rlz:rlz_lib" ] + if (v8_use_external_startup_data) { + deps += [ "//gin:gin_v8_snapshot_fingerprint" ] } if (is_android) { @@ -221,7 +218,6 @@ group("gn_all") { "//ui/message_center:test_support", ] deps -= [ - "//breakpad:symupload", # TODO(GYP) ?? "//chrome", # TODO(GYP) ?? "//chrome/test:browser_tests", # TODO(GYP) ?? "//chrome/test:interactive_ui_tests", # TODO(GYP) ?? @@ -270,6 +266,7 @@ group("gn_all") { "//ppapi/examples/video_encode", "//third_party/pdfium/samples:pdfium_test", "//tools/gn", + "//tools/gn:generate_test_gn_data", "//tools/gn:gn_unittests", "//ui/app_list:app_list_unittests", "//url:url_unittests", @@ -280,6 +277,21 @@ group("gn_all") { } } + if (is_linux) { # TODO(GYP): || is_android || is_bsd? + deps += [ + "//breakpad:core-2-minidump", + "//breakpad:minidump-2-core", + ] + } + + if (is_chromeos || is_mac || is_win) { + deps += [ + "//rlz:rlz_id", + "//rlz:rlz_lib", + "//rlz:rlz_unittests", + ] + } + if (is_linux) { # The following are definitely linux-only. deps += [ @@ -302,33 +314,24 @@ group("gn_all") { } } - if (is_linux && !is_chromeos) { + if (is_win || (is_linux && !is_chromeos)) { + # TODO(GYP): Figure out which of these should (and can) build + # for android/chromeos/mac/ios. deps += [ - # TODO(GYP): Figure out which of these should (and can) build - # under which other conditions. "//base:base_perftests", "//base:base_i18n_perftests", "//base:check_example", "//base:protect_file_posix", "//base:build_utf8_validator_tables", - "//breakpad:core-2-minidump", - "//breakpad:minidump-2-core", - "//build/sanitizers:copy_llvm_symbolizer", - "//cc/blink:cc_blink_unittests", "//cc:cc_perftests", - "//chrome/test:chrome_app_unittests", + "//cc/blink:cc_blink_unittests", "//chrome/test:load_library_perf_tests", "//chrome/test:performance_browser_tests", "//chrome/test:sync_performance_tests", "//chrome/test/chromedriver:chromedriver", "//chrome/test/chromedriver:chromedriver_tests", "//chrome/tools/profile_reset:jtl_compiler", - "//cloud_print:cloud_print_unittests", "//components:components_perftests", - "//components/network_hints/browser", - "//components/webui_generator", - "//content/public/app:browser", - "//content/public/app:child", "//content/test:content_gl_tests", "//content/test:content_gl_benchmark", "//courgette:courgette", @@ -337,49 +340,92 @@ group("gn_all") { "//courgette:courgette_unittests", "//device:device_unittests", "//gin:gin_shell", - "//gin:gin_v8_snapshot_fingerprint", "//gin:gin_unittests", "//google_apis:google_apis_unittests", "//google_apis/gcm:mcs_probe", "//gpu:angle_unittests", - "//gpu:gl_tests", - - # TODO(GYP): Remove this when the gles2 tests work - "//gpu/command_buffer/client:gles2_implementation_no_check", - "//gpu:gpu_perftests", - "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete. + "//gpu:gl_tests", "//ipc:ipc_perftests", "//media:ffmpeg_regression_tests", # TODO(GYP) this should be conditional on media_use_ffmpeg "//media:media_perftests", - "//media/cast:cast_benchmarks", "//media/cast:generate_barcode_video", "//media/cast:generate_timecode_audio", - "//media/cast:tap_proxy", - "//mojo/application", "//net:crash_cache", "//net:crl_set_dump", "//net:dns_fuzz_stub", + "//net:dump_cache", "//net:gdig", "//net:get_server_time", "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net + "//net:run_testserver", "//net:stress_cache", "//net:tld_cleanup", - "//net:run_testserver", - "//net:dump_cache", "//ppapi:pepper_hash_for_uma", - "//ppapi:ppapi_perftests", # TODO(GYP): Are there other ppapi_* test targets? - "//skia:filter_fuzz_stub", - "//skia:image_operations_bench", + "//ppapi:ppapi_perftests", "//sync:run_sync_testserver", "//sync:sync_endtoend_tests", + "//third_party/codesighs:maptsvdifftool", + "//third_party/leveldatabase:env_chromium_unittests", + "//third_party/libaddressinput:libaddressinput_unittests", + "//third_party/libphonenumber:libphonenumber_unittests", + "//ui/compositor:compositor_unittests", + ] + + if (enable_extensions) { + deps += [ "//extensions/shell:app_shell" ] + } + + if (enable_nacl) { + deps += [ "//components/nacl:nacl_loader_unittests" ] + } + + if (enable_nacl && enable_remoting) { + deps += [ "//remoting:remoting_key_tester" ] + } + + if (use_ash) { + deps += [ + "//ash:ash_shell", + "//ash:ash_shell_unittests", + "//ash:ash_unittests", + ] + } + + if (use_aura) { + deps += [ + "//ui/aura:aura_unittests", + "//ui/aura:bench", + "//ui/aura:demo", + ] + } + } + + if (is_linux && !is_chromeos) { + deps += [ + # TODO(GYP): Figure out which of these should (and can) build + # under which other conditions. + "//build/sanitizers:copy_llvm_symbolizer", + "//chrome/test:chrome_app_unittests", + "//cloud_print:cloud_print_unittests", + "//components/network_hints/browser", + "//components/webui_generator", + "//content/public/app:browser", + "//content/public/app:child", + + # TODO(GYP): Remove this when the gles2 tests work + "//gpu/command_buffer/client:gles2_implementation_no_check", + + "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete. + "//media/cast:cast_benchmarks", + "//media/cast:tap_proxy", + "//mojo/application", + "//skia:filter_fuzz_stub", + "//skia:image_operations_bench", "//sync/tools:sync_client", "//sync/tools:sync_listen_notifications", "//testing/gmock:gmock_main", - "//third_party/codesighs:maptsvdifftool", - "//third_party/libphonenumber:libphonenumber_unittests", "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", - "//tools/gn:generate_test_gn_data", "//tools/perf/clear_system_cache", "//ui/keyboard:keyboard_unittests", "//ui/message_center:message_center_unittests", @@ -390,10 +436,7 @@ group("gn_all") { # "//v8:postmortem-metadata", # TODO(GYP): visibility? "//third_party/codesighs:nm2tsv", - "//third_party/leveldatabase:env_chromium_unittests", - "//third_party/libaddressinput:libaddressinput_unittests", "//third_party/sqlite:sqlite_shell", - "//ui/compositor:compositor_unittests", ] if (current_toolchain == host_toolchain) { @@ -406,17 +449,6 @@ group("gn_all") { ] } - if (enable_extensions) { - deps += [ "//extensions/shell:app_shell" ] - } - - if (enable_nacl) { - deps += [ - "//components/nacl:nacl_loader_unittests", - "//remoting:remoting_key_tester", - ] - } - if (!is_debug && !is_component_build) { deps += [ "//chrome/tools/service_discovery_sniffer" ] } @@ -425,22 +457,6 @@ group("gn_all") { deps += [ "//ui/app_list:app_list_demo" ] } - if (use_ash) { - deps += [ - "//ash:ash_shell", - "//ash:ash_shell_unittests", - "//ash:ash_unittests", - ] - } - - if (use_aura) { - deps += [ - "//ui/aura:aura_unittests", - "//ui/aura:bench", - "//ui/aura:demo", - ] - } - if (use_x11) { deps += [ "//media:player_x11" ] if (target_cpu != "arm") { @@ -453,7 +469,6 @@ group("gn_all") { deps += [ "//breakpad:crash_inspector", "//breakpad:dump_syms", - "//breakpad:symupload", "//third_party/apple_sample_code", "//third_party/molokocacao", ] @@ -506,12 +521,37 @@ group("gn_all") { "//ui/app_list:app_list_unittests", # TODO(GYP) "//ui/gfx:gfx_unittests", # TODO(GYP) ] - } else if (is_win) { - deps += [ "//ui/metro_viewer" ] + } + + if (is_win) { + deps += [ + "//base:pe_image_test", + "//chrome_elf:chrome_elf_unittests", + "//chrome_elf:dll_hash_main", + + # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet. + "//components/wifi:wifi_test", + "//net:quic_client", + "//net:quic_server", + "//sandbox/win:pocdll", + "//sandbox/win:sandbox_poc", + "//sandbox/win:sbox_integration_tests", + "//sandbox/win:sbox_unittests", + "//sandbox/win:sbox_validation_tests", + "//testing/gtest:gtest_main", + "//third_party/codesighs:msmap2tsv", + "//third_party/pdfium/samples:pdfium_diff", + "//ui/metro_viewer", + ] deps -= [ "//crypto:crypto_unittests", # TODO(GYP) "//net:net_unittests", # TODO(GYP) ] + } else { + if (!is_android) { + # TODO(GYP): Make this work on android also. + deps += [ "//breakpad:symupload" ] + } } } diff --git a/base/BUILD.gn b/base/BUILD.gn index 28f4d50..6223378 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -894,7 +894,7 @@ component("i18n") { configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] } -if (is_linux && !is_chromeos) { +if (is_win || (is_linux && !is_chromeos)) { # TODO(GYP): Figure out which of these work and are needed on other platforms. test("base_perftests") { sources = [ diff --git a/build/gn_migration.gypi b/build/gn_migration.gypi index 0da18bd..1f9f178 100644 --- a/build/gn_migration.gypi +++ b/build/gn_migration.gypi @@ -254,6 +254,12 @@ '../remoting/remoting.gyp:remoting_key_tester', ], }], + ['toolkit_views==1', { + 'dependencies': [ + '../ui/app_list/app_list.gyp:app_list_demo', + '../ui/views/views.gyp:views_unittests', + ], + }], ['use_x11==1', { 'dependencies': [ '../media/media.gyp:player_x11', @@ -267,12 +273,6 @@ }], ], }], - ['toolkit_views==1', { - 'dependencies': [ - '../ui/app_list/app_list.gyp:app_list_demo', - '../ui/views/views.gyp:views_unittests', - ], - }], ['use_ash==1', { 'dependencies': [ '../ash/ash.gyp:ash_shell', @@ -295,7 +295,9 @@ }], ['OS=="win" or OS=="mac" or chromeos==1', { 'dependencies': [ + '../rlz/rlz.gyp:rlz_id', '../rlz/rlz.gyp:rlz_lib', + '../rlz/rlz.gyp:rlz_unittests', ], }], ['OS=="android"', { @@ -364,6 +366,11 @@ '../url/url.gyp:url_unittests', ], }], + ['OS=="android" or OS=="linux"', { + 'dependencies': [ + '../net/net.gyp:disk_cache_memory_test', + ], + }], ['OS=="linux"', { 'dependencies': [ '../breakpad/breakpad.gyp:breakpad_unittests', @@ -443,7 +450,21 @@ }], ['OS=="win"', { 'dependencies': [ + '../base/base.gyp:pe_image_test', + '../chrome_elf/chrome_elf.gyp:chrome_elf_unittests', + '../chrome_elf/chrome_elf.gyp:dll_hash_main', + '../components/components.gyp:wifi_test', + '../net/net.gyp:quic_client', + '../net/net.gyp:quic_server', + '../sandbox/sandbox.gyp:pocdll', + '../sandbox/sandbox.gyp:sandbox_poc', + '../sandbox/sandbox.gyp:sbox_integration_tests', + '../sandbox/sandbox.gyp:sbox_unittests', + '../sandbox/sandbox.gyp:sbox_validation_tests', + '../testing/gtest.gyp:gtest_main', '../third_party/codesighs/codesighs.gyp:msdump2symdb', + '../third_party/codesighs/codesighs.gyp:msmap2tsv', + '../third_party/pdfium/samples/samples.gyp:pdfium_diff', '../win8/win8.gyp:metro_viewer', ], }, { @@ -451,18 +472,13 @@ '../third_party/codesighs/codesighs.gyp:nm2tsv', ], }], - ['OS=="android" or OS=="linux"', { - 'dependencies': [ - '../net/net.gyp:disk_cache_memory_test', - ], - }], ], }, { 'target_name': 'gyp_only', 'type': 'none', 'conditions': [ - ['OS=="linux"', { + ['OS=="linux" or OS=="win"', { 'conditions': [ ['disable_nacl==0 and disable_nacl_untrusted==0', { 'dependencies': [ @@ -529,6 +545,7 @@ }], ['use_openssl==1', { 'dependencies': [ + # TODO(GYP): All of these targets still need to be converted. '../third_party/boringssl/boringssl_tests.gyp:boringssl_ecdsa_test', '../third_party/boringssl/boringssl_tests.gyp:boringssl_bn_test', '../third_party/boringssl/boringssl_tests.gyp:boringssl_pqueue_test', @@ -558,16 +575,17 @@ '../third_party/boringssl/boringssl_tests.gyp:boringssl_unittests', ], }], - ['OS=="linux"', { + ['OS=="linux" or OS=="win"', { 'dependencies': [ + # TODO(GYP): in progress - see tfarina. '../third_party/webrtc/tools/tools.gyp:frame_analyzer', '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', ], }], ['OS=="win"', { 'dependencies': [ + # TODO(GYP): All of these targets still need to be converted. '../base/base.gyp:debug_message', - '../base/base.gyp:pe_image_test', '../chrome/chrome.gyp:app_installer', '../chrome/chrome.gyp:app_installer_unittests', '../chrome/chrome.gyp:app_shim', @@ -581,11 +599,6 @@ '../chrome/chrome.gyp:setup_unittests', '../chrome/installer/mini_installer.gyp:mini_installer', '../chrome/tools/crash_service/caps/caps.gyp:caps', - '../chrome_elf/chrome_elf.gyp:blacklist_test_dll_2', - '../chrome_elf/chrome_elf.gyp:blacklist_test_dll_3', - '../chrome_elf/chrome_elf.gyp:blacklist_test_main_dll', - '../chrome_elf/chrome_elf.gyp:chrome_elf_unittests', - '../chrome_elf/chrome_elf.gyp:dll_hash_main', '../cloud_print/gcp20/prototype/gcp20_device.gyp:gcp20_device', '../cloud_print/gcp20/prototype/gcp20_device.gyp:gcp20_device_unittests', '../cloud_print/service/service.gyp:cloud_print_service', @@ -593,33 +606,18 @@ '../cloud_print/service/service.gyp:cloud_print_service_setup', '../cloud_print/virtual_driver/win/install/virtual_driver_install.gyp:virtual_driver_setup', '../cloud_print/virtual_driver/win/virtual_driver.gyp:gcp_portmon', - '../components/components.gyp:wifi_test', '../content/content_shell_and_tests.gyp:content_shell_crash_service', '../content/content_shell_and_tests.gyp:layout_test_helper', '../content/content_shell_and_tests.gyp:video_decode_accelerator_unittest', '../gpu/gpu.gyp:angle_end2end_tests', '../gpu/gpu.gyp:angle_perftests', '../net/net.gyp:net_docs', - '../net/net.gyp:quic_client', - '../net/net.gyp:quic_server', '../ppapi/ppapi_internal.gyp:ppapi_perftests', '../remoting/app_remoting_test.gyp:ar_sample_test_driver', '../remoting/remoting.gyp:remoting_breakpad_tester', '../remoting/remoting.gyp:remoting_console', '../remoting/remoting.gyp:remoting_desktop', '../rlz/rlz.gyp:rlz', - '../rlz/rlz.gyp:rlz_id', - '../rlz/rlz.gyp:rlz_unittests', - '../sandbox/sandbox.gyp:pocdll', - '../sandbox/sandbox.gyp:sandbox_poc', - '../sandbox/sandbox.gyp:sbox_integration_tests', - '../sandbox/sandbox.gyp:sbox_unittests', - '../sandbox/sandbox.gyp:sbox_validation_tests', - '../testing/gtest.gyp:gtest_main', - '../third_party/codesighs/codesighs.gyp:msmap2tsv', - '../third_party/pdfium/samples/samples.gyp:pdfium_diff', - '../third_party/webrtc/tools/tools.gyp:frame_analyzer', - '../third_party/webrtc/tools/tools.gyp:rgba_to_i420_converter', '../tools/win/static_initializers/static_initializers.gyp:static_initializers', ], }], @@ -630,6 +628,7 @@ }], ['OS=="win" and target_arch=="ia32"', { 'dependencies': [ + # TODO(GYP): All of these targets need to be ported over. '../base/base.gyp:base_win64', '../base/base.gyp:base_i18n_nacl_win64', '../chrome/chrome.gyp:crash_service_win64', @@ -645,6 +644,7 @@ }], ['OS=="win" and target_arch=="ia32" and configuration_policy==1', { 'dependencies': [ + # TODO(GYP): All of these targets need to be ported over. '../components/components.gyp:policy_win64', ] }], @@ -667,6 +667,17 @@ 'chromium_gpu_builder', 'chromium_gpu_debug_builder', ], + 'conditions': [ + ['OS=="win"', { + 'dependencies': [ + 'chromium_builder', + 'chromium_builder_dbg_drmemory_win', + 'chromium_builder_nacl_sdk', + 'chromium_builder_lkgr_drmemory_win', + 'chromium_builder_dbg_tsan_win', + ], + }], + ], }, ] } diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn index 3997dc3..a3361dd 100644 --- a/chrome/test/BUILD.gn +++ b/chrome/test/BUILD.gn @@ -1673,7 +1673,7 @@ if (!is_android) { } } - if (is_linux && !is_chromeos) { + if (is_win || (is_linux && !is_chromeos)) { # TODO(GYP): Figure out which of these work and are needed on other # platforms. test("chrome_app_unittests") { @@ -1694,6 +1694,7 @@ if (!is_android) { deps = [ ":test_support", + "//breakpad:client", "//chrome/browser", "//chrome/child", "//base/test:run_all_unittests", |