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

Side by Side Diff: BUILD.gn

Issue 2619743002: [build] Exclude stand-alone targets when built with chromium
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | 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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || 2483 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
2484 (current_toolchain == v8_snapshot_toolchain && 2484 (current_toolchain == v8_snapshot_toolchain &&
2485 v8_toolset_for_shell == "host") || 2485 v8_toolset_for_shell == "host") ||
2486 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target") 2486 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")
2487 2487
2488 group("gn_all") { 2488 group("gn_all") {
2489 testonly = true 2489 testonly = true
2490 2490
2491 deps = [ 2491 deps = [
2492 ":d8", 2492 ":d8",
2493 ":v8_hello_world",
2494 ":v8_parser_shell",
2495 ":v8_sample_process",
2496 ":v8_simple_json_fuzzer",
2497 ":v8_simple_parser_fuzzer",
2498 ":v8_simple_regexp_fuzzer",
2499 ":v8_simple_wasm_asmjs_fuzzer",
2500 ":v8_simple_wasm_fuzzer",
2501 "test:gn_all", 2493 "test:gn_all",
2502 "tools:gn_all", 2494 "tools:gn_all",
2503 ] 2495 ]
2504 2496
2497 if (!build_with_chromium) {
2498 deps += [
2499 ":v8_hello_world",
2500 ":v8_parser_shell",
2501 ":v8_sample_process",
2502 ":v8_simple_json_fuzzer",
2503 ":v8_simple_parser_fuzzer",
2504 ":v8_simple_regexp_fuzzer",
2505 ":v8_simple_wasm_asmjs_fuzzer",
2506 ":v8_simple_wasm_fuzzer",
2507 ]
2508 }
2509
2505 if (want_v8_shell) { 2510 if (want_v8_shell) {
2506 deps += [ ":v8_shell" ] 2511 deps += [ ":v8_shell" ]
2507 } 2512 }
2508 2513
2509 if (v8_test_isolation_mode != "noop") { 2514 if (v8_test_isolation_mode != "noop") {
2510 deps += [ ":d8_run" ] 2515 deps += [ ":d8_run" ]
2511 } 2516 }
2512 } 2517 }
2513 2518
2514 if (is_component_build) { 2519 if (is_component_build) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 } 2592 }
2588 2593
2589 v8_isolate_run("d8") { 2594 v8_isolate_run("d8") {
2590 deps = [ 2595 deps = [
2591 ":d8", 2596 ":d8",
2592 ] 2597 ]
2593 2598
2594 isolate = "//src/d8.isolate" 2599 isolate = "//src/d8.isolate"
2595 } 2600 }
2596 2601
2597 v8_executable("v8_hello_world") { 2602 if (!build_with_chromium) {
2598 sources = [ 2603 v8_executable("v8_hello_world") {
2599 "samples/hello-world.cc", 2604 sources = [
2600 ] 2605 "samples/hello-world.cc",
2606 ]
2601 2607
2602 configs = [ 2608 configs = [
2603 # Note: don't use :internal_config here because this target will get 2609 # Note: don't use :internal_config here because this target will get
2604 # the :external_config applied to it by virtue of depending on :v8, and 2610 # the :external_config applied to it by virtue of depending on :v8, and
2605 # you can't have both applied to the same target. 2611 # you can't have both applied to the same target.
2606 ":internal_config_base", 2612 ":internal_config_base",
2607 ] 2613 ]
2608 2614
2609 deps = [ 2615 deps = [
2610 ":v8", 2616 ":v8",
2611 ":v8_libbase", 2617 ":v8_libbase",
2612 ":v8_libplatform", 2618 ":v8_libplatform",
2613 "//build/config/sanitizers:deps", 2619 "//build/config/sanitizers:deps",
2614 "//build/win:default_exe_manifest", 2620 "//build/win:default_exe_manifest",
2615 ] 2621 ]
2616 2622
2617 if (v8_enable_i18n_support) { 2623 if (v8_enable_i18n_support) {
2618 deps += [ "//third_party/icu" ] 2624 deps += [ "//third_party/icu" ]
Michael Achenbach 2017/01/09 08:09:31 The following 50 lines are only indentation change
2625 }
2626 }
2627
2628 v8_executable("v8_sample_process") {
2629 sources = [
2630 "samples/process.cc",
2631 ]
2632
2633 configs = [
2634 # Note: don't use :internal_config here because this target will get
2635 # the :external_config applied to it by virtue of depending on :v8, and
2636 # you can't have both applied to the same target.
2637 ":internal_config_base",
2638 ]
2639
2640 deps = [
2641 ":v8",
2642 ":v8_libbase",
2643 ":v8_libplatform",
2644 "//build/config/sanitizers:deps",
2645 "//build/win:default_exe_manifest",
2646 ]
2647
2648 if (v8_enable_i18n_support) {
2649 deps += [ "//third_party/icu" ]
2650 }
2651 }
2652
2653 v8_executable("v8_parser_shell") {
2654 sources = [
2655 "tools/parser-shell.cc",
2656 "tools/shell-utils.h",
2657 ]
2658
2659 configs = [
2660 ":external_config",
2661 ":internal_config_base",
2662 ]
2663
2664 deps = [
2665 ":v8",
2666 ":v8_libbase",
2667 ":v8_libplatform",
2668 "//build/config/sanitizers:deps",
2669 "//build/win:default_exe_manifest",
2670 ]
2671
2672 if (v8_enable_i18n_support) {
2673 deps += [ "//third_party/icu" ]
2674 }
2619 } 2675 }
2620 } 2676 }
2621 2677
2622 v8_executable("v8_sample_process") {
2623 sources = [
2624 "samples/process.cc",
2625 ]
2626
2627 configs = [
2628 # Note: don't use :internal_config here because this target will get
2629 # the :external_config applied to it by virtue of depending on :v8, and
2630 # you can't have both applied to the same target.
2631 ":internal_config_base",
2632 ]
2633
2634 deps = [
2635 ":v8",
2636 ":v8_libbase",
2637 ":v8_libplatform",
2638 "//build/config/sanitizers:deps",
2639 "//build/win:default_exe_manifest",
2640 ]
2641
2642 if (v8_enable_i18n_support) {
2643 deps += [ "//third_party/icu" ]
2644 }
2645 }
2646
2647 v8_executable("v8_parser_shell") {
2648 sources = [
2649 "tools/parser-shell.cc",
2650 "tools/shell-utils.h",
2651 ]
2652
2653 configs = [
2654 ":external_config",
2655 ":internal_config_base",
2656 ]
2657
2658 deps = [
2659 ":v8",
2660 ":v8_libbase",
2661 ":v8_libplatform",
2662 "//build/config/sanitizers:deps",
2663 "//build/win:default_exe_manifest",
2664 ]
2665
2666 if (v8_enable_i18n_support) {
2667 deps += [ "//third_party/icu" ]
2668 }
2669 }
2670
2671 if (want_v8_shell) { 2678 if (want_v8_shell) {
2672 v8_executable("v8_shell") { 2679 v8_executable("v8_shell") {
2673 sources = [ 2680 sources = [
2674 "samples/shell.cc", 2681 "samples/shell.cc",
2675 ] 2682 ]
2676 2683
2677 configs = [ 2684 configs = [
2678 # Note: don't use :internal_config here because this target will get 2685 # Note: don't use :internal_config here because this target will get
2679 # the :external_config applied to it by virtue of depending on :v8, and 2686 # the :external_config applied to it by virtue of depending on :v8, and
2680 # you can't have both applied to the same target. 2687 # you can't have both applied to the same target.
2681 ":internal_config_base", 2688 ":internal_config_base",
2682 ] 2689 ]
2683 2690
2684 deps = [ 2691 deps = [
2685 ":v8", 2692 ":v8",
2686 ":v8_libbase", 2693 ":v8_libbase",
2687 ":v8_libplatform", 2694 ":v8_libplatform",
2688 "//build/config/sanitizers:deps", 2695 "//build/config/sanitizers:deps",
2689 "//build/win:default_exe_manifest", 2696 "//build/win:default_exe_manifest",
2690 ] 2697 ]
2691 2698
2692 if (v8_enable_i18n_support) { 2699 if (v8_enable_i18n_support) {
2693 deps += [ "//third_party/icu" ] 2700 deps += [ "//third_party/icu" ]
2694 } 2701 }
2695 } 2702 }
2696 } 2703 }
2697 2704
2698 template("v8_fuzzer") { 2705 template("v8_fuzzer") {
2699 name = target_name
2700 forward_variables_from(invoker, "*") 2706 forward_variables_from(invoker, "*")
2701 v8_executable("v8_simple_" + name) { 2707 if (!build_with_chromium) {
2702 deps = [ 2708 name = target_name
2703 ":" + name, 2709 v8_executable("v8_simple_" + name) {
2704 "//build/config/sanitizers:deps", 2710 deps = [
2705 "//build/win:default_exe_manifest", 2711 ":" + name,
2706 ] 2712 "//build/config/sanitizers:deps",
2713 "//build/win:default_exe_manifest",
2714 ]
2707 2715
2708 sources = [ 2716 sources = [
2709 "test/fuzzer/fuzzer.cc", 2717 "test/fuzzer/fuzzer.cc",
2710 ] 2718 ]
2711 2719
2712 configs = [ ":external_config" ] 2720 configs = [ ":external_config" ]
2721 }
2713 } 2722 }
2714 } 2723 }
2715 2724
2716 v8_source_set("json_fuzzer") { 2725 v8_source_set("json_fuzzer") {
2717 sources = [ 2726 sources = [
2718 "test/fuzzer/json.cc", 2727 "test/fuzzer/json.cc",
2719 ] 2728 ]
2720 2729
2721 deps = [ 2730 deps = [
2722 ":fuzzer_support", 2731 ":fuzzer_support",
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 ] 3021 ]
3013 3022
3014 configs = [ 3023 configs = [
3015 ":external_config", 3024 ":external_config",
3016 ":internal_config_base", 3025 ":internal_config_base",
3017 ] 3026 ]
3018 } 3027 }
3019 3028
3020 v8_fuzzer("wasm_data_section_fuzzer") { 3029 v8_fuzzer("wasm_data_section_fuzzer") {
3021 } 3030 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698