Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: chrome/test/BUILD.gn

Issue 2354803002: Create Monochrome-specific repack() targets (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« chrome/chrome_paks.gni ('K') | « chrome/chrome_paks.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/common/features.gni") 10 import("//chrome/common/features.gni")
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 "$root_out_dir/test_page.css", 447 "$root_out_dir/test_page.css",
448 "$root_out_dir/test_page.css.mock-http-headers", 448 "$root_out_dir/test_page.css.mock-http-headers",
449 "$root_out_dir/ui_test.pak", 449 "$root_out_dir/ui_test.pak",
450 ] 450 ]
451 if (is_linux || is_win) { 451 if (is_linux || is_win) {
452 data += [ 452 data += [
453 "$root_out_dir/chrome_100_percent.pak", 453 "$root_out_dir/chrome_100_percent.pak",
454 "$root_out_dir/chrome_200_percent.pak", 454 "$root_out_dir/chrome_200_percent.pak",
455 "$root_out_dir/locales/en-US.pak", 455 "$root_out_dir/locales/en-US.pak",
456 "$root_out_dir/locales/fr.pak", 456 "$root_out_dir/locales/fr.pak",
457 "$root_out_dir/resources.pak",
457 ] 458 ]
458 } 459 }
459 if (is_linux) { 460 if (is_linux) {
460 data += [ "$root_out_dir/libppapi_tests.so" ] 461 data += [ "$root_out_dir/libppapi_tests.so" ]
461 } 462 }
462 463
463 if (!is_mac) {
464 data_deps += [ "//chrome:packed_extra_resources" ]
465 }
466
467 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 464 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
468 ldflags = [] 465 ldflags = []
469 466
470 deps = [ 467 deps = [
471 ":test_support", 468 ":test_support",
472 ":test_support_ui", 469 ":test_support_ui",
473 "//chrome:packed_extra_resources",
474 "//chrome:packed_resources", 470 "//chrome:packed_resources",
475 "//chrome:resources", 471 "//chrome:resources",
476 "//chrome:strings", 472 "//chrome:strings",
477 "//chrome/browser", 473 "//chrome/browser",
478 "//chrome/browser/devtools", 474 "//chrome/browser/devtools",
479 "//chrome/renderer", 475 "//chrome/renderer",
480 "//components/resources", 476 "//components/resources",
481 "//components/sync", 477 "//components/sync",
482 "//components/sync:test_support_sync_api", 478 "//components/sync:test_support_sync_api",
483 "//content/app/resources", 479 "//content/app/resources",
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 "ppapi/ppapi_filechooser_browsertest.cc", 1844 "ppapi/ppapi_filechooser_browsertest.cc",
1849 ] 1845 ]
1850 1846
1851 deps += [ 1847 deps += [
1852 ":browser_tests_js_webui", 1848 ":browser_tests_js_webui",
1853 ":sync_integration_test_support", 1849 ":sync_integration_test_support",
1854 ":test_support_ui", 1850 ":test_support_ui",
1855 "//base:i18n", 1851 "//base:i18n",
1856 "//base/test:test_support", 1852 "//base/test:test_support",
1857 "//chrome:browser_tests_pak", 1853 "//chrome:browser_tests_pak",
1858 "//chrome:packed_extra_resources",
1859 "//chrome:packed_resources", 1854 "//chrome:packed_resources",
1860 "//chrome:resources", 1855 "//chrome:resources",
1861 "//chrome:strings", 1856 "//chrome:strings",
1862 "//chrome/browser", 1857 "//chrome/browser",
1863 "//chrome/browser/resources:extension_resource_demo", 1858 "//chrome/browser/resources:extension_resource_demo",
1864 "//chrome/renderer", 1859 "//chrome/renderer",
1865 "//components/autofill/content/browser:risk_proto", 1860 "//components/autofill/content/browser:risk_proto",
1866 "//components/autofill/content/renderer:test_support", 1861 "//components/autofill/content/renderer:test_support",
1867 "//components/captive_portal:test_support", 1862 "//components/captive_portal:test_support",
1868 "//components/dom_distiller/content/browser", 1863 "//components/dom_distiller/content/browser",
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 "$root_out_dir/resources/extension/", 1945 "$root_out_dir/resources/extension/",
1951 "$root_out_dir/test_case.html", 1946 "$root_out_dir/test_case.html",
1952 "$root_out_dir/test_case.html.mock-http-headers", 1947 "$root_out_dir/test_case.html.mock-http-headers",
1953 "$root_out_dir/test_data/", 1948 "$root_out_dir/test_data/",
1954 "$root_out_dir/test_page.css", 1949 "$root_out_dir/test_page.css",
1955 "$root_out_dir/test_page.css.mock-http-headers", 1950 "$root_out_dir/test_page.css.mock-http-headers",
1956 "$root_out_dir/test_url_loader_data/", 1951 "$root_out_dir/test_url_loader_data/",
1957 ] 1952 ]
1958 1953
1959 if (!is_mac) { 1954 if (!is_mac) {
1960 data += [ "$root_out_dir/locales/" ] 1955 data += [
1961 data_deps += [ "//chrome:packed_extra_resources" ] 1956 "$root_out_dir/locales/",
1957 "$root_out_dir/resources.pak",
1958 ]
1962 } 1959 }
1963 1960
1964 if (!enable_one_click_signin) { 1961 if (!enable_one_click_signin) {
1965 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ] 1962 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ]
1966 } 1963 }
1967 if (enable_nacl) { 1964 if (enable_nacl) {
1968 sources += [ 1965 sources += [
1969 "../browser/chrome_service_worker_browsertest.cc", 1966 "../browser/chrome_service_worker_browsertest.cc",
1970 "../browser/extensions/extension_nacl_browsertest.cc", 1967 "../browser/extensions/extension_nacl_browsertest.cc",
1971 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc", 1968 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 "../browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest. cc", 2408 "../browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest. cc",
2412 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc", 2409 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
2413 "../browser/ui/ash/shelf_browsertest.cc", 2410 "../browser/ui/ash/shelf_browsertest.cc",
2414 ] 2411 ]
2415 2412
2416 if (toolkit_views) { 2413 if (toolkit_views) {
2417 sources -= [ "../browser/ui/views/frame/browser_non_client_frame_view_as h_browsertest.cc" ] 2414 sources -= [ "../browser/ui/views/frame/browser_non_client_frame_view_as h_browsertest.cc" ]
2418 } 2415 }
2419 } 2416 }
2420 if (is_mac) { 2417 if (is_mac) {
2421 # Other platforms only need {packed_extra_resources,packed_resources}, 2418 # Other platforms only need .pak files, and can build this target
2422 # and can build this target standalone much faster. 2419 # standalone much faster.
2423 deps += [ 2420 deps += [
2424 "//chrome", 2421 "//chrome",
2425 "//chrome/common:app_mode_app_support", 2422 "//chrome/common:app_mode_app_support",
2426 2423
2427 # TODO(GYP) Mac: GYP has this dependency. Uncommenting this line 2424 # TODO(GYP) Mac: GYP has this dependency. Uncommenting this line
2428 # generates duplicate symbols between 2425 # generates duplicate symbols between
2429 # obj/components/crash/content/app/breakpad_stubs/crash_reporter_clien t.o 2426 # obj/components/crash/content/app/breakpad_stubs/crash_reporter_clien t.o
2430 # obj/components/crash/content/app/lib/crash_reporter_client.o 2427 # obj/components/crash/content/app/lib/crash_reporter_client.o
2431 # It's not clear how this is supposed to work. The intent seems to be 2428 # It's not clear how this is supposed to work. The intent seems to be
2432 # to not link breakpad in the tests. The dependency on .../app:lib 2429 # to not link breakpad in the tests. The dependency on .../app:lib
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 "//third_party/pywebsocket/", 2713 "//third_party/pywebsocket/",
2717 "//third_party/tlslite/", 2714 "//third_party/tlslite/",
2718 "$root_out_dir/pyproto/", 2715 "$root_out_dir/pyproto/",
2719 ] 2716 ]
2720 2717
2721 if (is_linux || is_win) { 2718 if (is_linux || is_win) {
2722 data += [ 2719 data += [
2723 "$root_out_dir/chrome_100_percent.pak", 2720 "$root_out_dir/chrome_100_percent.pak",
2724 "$root_out_dir/chrome_200_percent.pak", 2721 "$root_out_dir/chrome_200_percent.pak",
2725 "$root_out_dir/locales/en-US.pak", 2722 "$root_out_dir/locales/en-US.pak",
2723 "$root_out_dir/resources.pak",
2726 ] 2724 ]
2727 } 2725 }
2728 2726
2729 # TODO(phajdan.jr): Only temporary, to make transition easier. 2727 # TODO(phajdan.jr): Only temporary, to make transition easier.
2730 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 2728 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
2731 2729
2732 deps = [ 2730 deps = [
2733 ":browser_tests_runner", 2731 ":browser_tests_runner",
2734 ":sync_integration_test_support", 2732 ":sync_integration_test_support",
2735 ":test_support", 2733 ":test_support",
2736 ":test_support_ui", 2734 ":test_support_ui",
2737 "//chrome:packed_extra_resources",
2738 "//chrome:packed_resources", 2735 "//chrome:packed_resources",
2739 "//chrome:resources", 2736 "//chrome:resources",
2740 "//chrome:strings", 2737 "//chrome:strings",
2741 "//chrome/app:chrome_dll_resources", 2738 "//chrome/app:chrome_dll_resources",
2742 "//chrome/app:command_ids", 2739 "//chrome/app:command_ids",
2743 "//chrome/common", 2740 "//chrome/common",
2744 "//chrome/renderer", 2741 "//chrome/renderer",
2745 "//components/sync", 2742 "//components/sync",
2746 "//crypto:platform", 2743 "//crypto:platform",
2747 "//testing/gmock", 2744 "//testing/gmock",
2748 "//testing/gtest", 2745 "//testing/gtest",
2749 "//third_party/WebKit/public:blink", 2746 "//third_party/WebKit/public:blink",
2750 "//third_party/icu", 2747 "//third_party/icu",
2751 "//third_party/leveldatabase", 2748 "//third_party/leveldatabase",
2752 ] 2749 ]
2753 2750
2754 data_deps = [ 2751 data_deps = [
2755 "//third_party/mesa:osmesa", 2752 "//third_party/mesa:osmesa",
2756 ] 2753 ]
2757 2754
2758 if (!is_mac) {
2759 data_deps += [ "//chrome:packed_extra_resources" ]
2760 }
2761
2762 if (is_mac) { 2755 if (is_mac) {
2763 # Dictionary sync is disabled on Mac. 2756 # Dictionary sync is disabled on Mac.
2764 sources -= [ 2757 sources -= [
2765 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , 2758 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" ,
2766 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", 2759 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
2767 ] 2760 ]
2768 2761
2769 data_deps += [ 2762 data_deps += [
2770 "//chrome", 2763 "//chrome",
2771 "//chrome:chrome_framework", 2764 "//chrome:chrome_framework",
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 "//third_party/pywebsocket/", 3350 "//third_party/pywebsocket/",
3358 "//third_party/tlslite/", 3351 "//third_party/tlslite/",
3359 "//third_party/zlib/google/test/data/", 3352 "//third_party/zlib/google/test/data/",
3360 "//tools/metrics/histograms/histograms.xml", 3353 "//tools/metrics/histograms/histograms.xml",
3361 "$root_out_dir/pyproto/google/", 3354 "$root_out_dir/pyproto/google/",
3362 ] 3355 ]
3363 if (is_android || is_linux || is_win) { 3356 if (is_android || is_linux || is_win) {
3364 data += [ 3357 data += [
3365 "$root_out_dir/chrome_100_percent.pak", 3358 "$root_out_dir/chrome_100_percent.pak",
3366 "$root_out_dir/locales/en-US.pak", 3359 "$root_out_dir/locales/en-US.pak",
3360 "$root_out_dir/resources.pak",
3367 ] 3361 ]
3368 } 3362 }
3369 if (is_linux || is_win) { 3363 if (is_linux || is_win) {
3370 data += [ "$root_out_dir/chrome_200_percent.pak" ] 3364 data += [ "$root_out_dir/chrome_200_percent.pak" ]
3371 } 3365 }
3372 3366
3373 defines = [] 3367 defines = []
3374 3368
3375 deps = [ 3369 deps = [
3376 # NOTE: New dependencies should generally be added in the OS!="ios" 3370 # NOTE: New dependencies should generally be added in the OS!="ios"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
3444 "//third_party/webrtc/modules/desktop_capture", 3438 "//third_party/webrtc/modules/desktop_capture",
3445 "//tools/json_schema_compiler/test:schema_test", 3439 "//tools/json_schema_compiler/test:schema_test",
3446 "//ui/gl", 3440 "//ui/gl",
3447 "//v8", 3441 "//v8",
3448 ] 3442 ]
3449 } 3443 }
3450 3444
3451 if (is_mac) { 3445 if (is_mac) {
3452 data_deps += [ "//chrome:chrome_framework" ] 3446 data_deps += [ "//chrome:chrome_framework" ]
3453 data += [ "$root_out_dir/Chromium Framework.framework/" ] 3447 data += [ "$root_out_dir/Chromium Framework.framework/" ]
3454 } else {
3455 data_deps += [ "//chrome:packed_extra_resources" ]
3456 } 3448 }
3457 3449
3458 if (is_android) { 3450 if (is_android) {
3459 # Offline pages are currently only on Android. 3451 # Offline pages are currently only on Android.
3460 sources += [ 3452 sources += [
3461 "../browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc" , 3453 "../browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc" ,
3462 "../browser/android/offline_pages/offline_page_request_job_unittest.cc", 3454 "../browser/android/offline_pages/offline_page_request_job_unittest.cc",
3463 "../browser/android/offline_pages/offline_page_utils_unittest.cc", 3455 "../browser/android/offline_pages/offline_page_utils_unittest.cc",
3464 "../browser/android/offline_pages/prerender_adapter_unittest.cc", 3456 "../browser/android/offline_pages/prerender_adapter_unittest.cc",
3465 "../browser/android/offline_pages/prerendering_loader_unittest.cc", 3457 "../browser/android/offline_pages/prerendering_loader_unittest.cc",
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
4573 "../browser/autofill/autofill_credit_card_filling_infobar_delegate_mobile_ unittest.cc", 4565 "../browser/autofill/autofill_credit_card_filling_infobar_delegate_mobile_ unittest.cc",
4574 "../browser/autofill/autofill_save_card_infobar_delegate_mobile_unittest.c c", 4566 "../browser/autofill/autofill_save_card_infobar_delegate_mobile_unittest.c c",
4575 "../browser/password_manager/account_chooser_dialog_android_unittest.cc", 4567 "../browser/password_manager/account_chooser_dialog_android_unittest.cc",
4576 "../browser/password_manager/auto_signin_first_run_dialog_android_unittest .cc", 4568 "../browser/password_manager/auto_signin_first_run_dialog_android_unittest .cc",
4577 "../browser/password_manager/save_password_infobar_delegate_android_unitte st.cc", 4569 "../browser/password_manager/save_password_infobar_delegate_android_unitte st.cc",
4578 "../browser/permissions/permission_queue_controller_unittest.cc", 4570 "../browser/permissions/permission_queue_controller_unittest.cc",
4579 ] 4571 ]
4580 } 4572 }
4581 if (!is_mac && !is_ios) { 4573 if (!is_mac && !is_ios) {
4582 deps += [ 4574 deps += [
4583 "//chrome:packed_extra_resources",
4584 "//chrome:packed_resources", 4575 "//chrome:packed_resources",
4585 "//chrome/tools/convert_dict:lib", 4576 "//chrome/tools/convert_dict:lib",
4586 "//third_party/hunspell", 4577 "//third_party/hunspell",
4587 ] 4578 ]
4588 } 4579 }
4589 if (is_win || is_mac) { 4580 if (is_win || is_mac) {
4590 sources += [ 4581 sources += [
4591 "../browser/media_galleries/fileapi/itunes_file_util_unittest.cc", 4582 "../browser/media_galleries/fileapi/itunes_file_util_unittest.cc",
4592 "../browser/media_galleries/fileapi/picasa_file_util_unittest.cc", 4583 "../browser/media_galleries/fileapi/picasa_file_util_unittest.cc",
4593 "../utility/media_galleries/itunes_library_parser_unittest.cc", 4584 "../utility/media_galleries/itunes_library_parser_unittest.cc",
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
5006 "touch_hud", 4997 "touch_hud",
5007 "ui", 4998 "ui",
5008 ] 4999 ]
5009 5000
5010 if (is_linux && !is_android) { 5001 if (is_linux && !is_android) {
5011 deps += [ "//components/font_service:manifest" ] 5002 deps += [ "//components/font_service:manifest" ]
5012 packaged_services += [ "font_service" ] 5003 packaged_services += [ "font_service" ]
5013 } 5004 }
5014 } 5005 }
5015 } 5006 }
OLDNEW
« chrome/chrome_paks.gni ('K') | « chrome/chrome_paks.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698