Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: BUILD.gn

Issue 29733646: Issue 6396 - Error creating non debug build config (Closed)
Patch Set: Created March 26, 2018, 10:47 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gni/v8.gni » ('j') | gni/v8.gni » ('J')
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/host_byteorder.gni") 8 import("//build/config/host_byteorder.gni")
9 import("//build/config/jumbo.gni") 9 import("//build/config/jumbo.gni")
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 v8_toolset_for_shell = "host" 163 v8_toolset_for_shell = "host"
164 164
165 ############################################################################### 165 ###############################################################################
166 # Configurations 166 # Configurations
167 # 167 #
168 config("internal_config") { 168 config("internal_config") {
169 visibility = [ ":*" ] # Only targets in this file can depend on this. 169 visibility = [ ":*" ] # Only targets in this file can depend on this.
170 170
171 include_dirs = [ "." ] 171 include_dirs = [ "." ]
172 172
173 if (is_component_build) { 173 if (is_component_build || v8_component_build) {
174 defines = [ "BUILDING_V8_SHARED" ] 174 defines = [ "BUILDING_V8_SHARED" ]
175 } 175 }
176 } 176 }
177 177
178 config("internal_config_base") { 178 config("internal_config_base") {
179 visibility = [ ":*" ] # Only targets in this file can depend on this. 179 visibility = [ ":*" ] # Only targets in this file can depend on this.
180 180
181 include_dirs = [ "." ] 181 include_dirs = [ "." ]
182 } 182 }
183 183
184 # This config should be applied to code using the libplatform. 184 # This config should be applied to code using the libplatform.
185 config("libplatform_config") { 185 config("libplatform_config") {
186 include_dirs = [ "include" ] 186 include_dirs = [ "include" ]
187 if (is_component_build) { 187 if (is_component_build) {
188 defines = [ "USING_V8_PLATFORM_SHARED" ] 188 defines = [ "USING_V8_PLATFORM_SHARED" ]
189 } 189 }
190 } 190 }
191 191
192 # This config should be applied to code using the libbase. 192 # This config should be applied to code using the libbase.
193 config("libbase_config") { 193 config("libbase_config") {
194 if (is_component_build) { 194 if (is_component_build || v8_component_build) {
195 defines = [ "USING_V8_BASE_SHARED" ] 195 defines = [ "USING_V8_BASE_SHARED" ]
196 } 196 }
197 libs = [] 197 libs = []
198 if (is_android && current_toolchain != host_toolchain) { 198 if (is_android && current_toolchain != host_toolchain) {
199 libs += [ "log" ] 199 libs += [ "log" ]
200 } 200 }
201 } 201 }
202 202
203 # This config should be applied to code using the libsampler. 203 # This config should be applied to code using the libsampler.
204 config("libsampler_config") { 204 config("libsampler_config") {
205 include_dirs = [ "include" ] 205 include_dirs = [ "include" ]
206 } 206 }
207 207
208 # This config should only be applied to code using V8 and not any V8 code 208 # This config should only be applied to code using V8 and not any V8 code
209 # itself. 209 # itself.
210 config("external_config") { 210 config("external_config") {
211 defines = [] 211 defines = []
212 if (is_component_build) { 212 if (is_component_build || v8_component_build) {
213 defines += [ "USING_V8_SHARED" ] 213 defines += [ "USING_V8_SHARED" ]
214 } 214 }
215 if (v8_enable_v8_checks) { 215 if (v8_enable_v8_checks) {
216 defines += [ "V8_ENABLE_CHECKS" ] # Used in "include/v8.h". 216 defines += [ "V8_ENABLE_CHECKS" ] # Used in "include/v8.h".
217 } 217 }
218 include_dirs = [ 218 include_dirs = [
219 "include", 219 "include",
220 "$target_gen_dir/include", 220 "$target_gen_dir/include",
221 ] 221 ]
222 } 222 }
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 776
777 script = "tools/run.py" 777 script = "tools/run.py"
778 778
779 sources = [] 779 sources = []
780 780
781 outputs = [ 781 outputs = [
782 "$target_gen_dir/snapshot.cc", 782 "$target_gen_dir/snapshot.cc",
783 ] 783 ]
784 784
785 args = [ 785 args = [
786 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", 786 rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
787 "root_out_dir") + "/mksnapshot", 787 "root_out_dir") + "/mksnapshot"),
788 root_build_dir),
789 "--startup_src", 788 "--startup_src",
790 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), 789 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
791 ] 790 ]
792 791
793 if (v8_random_seed != "0") { 792 if (v8_random_seed != "0") {
794 args += [ 793 args += [
795 "--random-seed", 794 "--random-seed",
796 v8_random_seed, 795 v8_random_seed,
797 ] 796 ]
798 } 797 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 "is_debug=$is_debug", 843 "is_debug=$is_debug",
845 "is_gcov_coverage=$is_gcov_coverage", 844 "is_gcov_coverage=$is_gcov_coverage",
846 "is_msan=$is_msan", 845 "is_msan=$is_msan",
847 "is_tsan=$is_tsan", 846 "is_tsan=$is_tsan",
848 "is_ubsan_vptr=$is_ubsan_vptr", 847 "is_ubsan_vptr=$is_ubsan_vptr",
849 "target_cpu=\"$target_cpu\"", 848 "target_cpu=\"$target_cpu\"",
850 "v8_enable_i18n_support=$v8_enable_i18n_support", 849 "v8_enable_i18n_support=$v8_enable_i18n_support",
851 "v8_enable_verify_predictable=$v8_enable_verify_predictable", 850 "v8_enable_verify_predictable=$v8_enable_verify_predictable",
852 "v8_target_cpu=\"$v8_target_cpu\"", 851 "v8_target_cpu=\"$v8_target_cpu\"",
853 "v8_use_snapshot=$v8_use_snapshot", 852 "v8_use_snapshot=$v8_use_snapshot",
853 "v8_component_build=$v8_component_build"
854 ] 854 ]
855 } 855 }
856 856
857 ############################################################################### 857 ###############################################################################
858 # Source Sets (aka static libraries) 858 # Source Sets (aka static libraries)
859 # 859 #
860 860
861 source_set("v8_maybe_snapshot") { 861 source_set("v8_maybe_snapshot") {
862 if (v8_use_snapshot && v8_use_external_startup_data) { 862 if (v8_use_snapshot && v8_use_external_startup_data) {
863 public_deps = [ 863 public_deps = [
(...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 ] 2456 ]
2457 } 2457 }
2458 2458
2459 if (v8_postmortem_support) { 2459 if (v8_postmortem_support) {
2460 sources += [ "$target_gen_dir/debug-support.cc" ] 2460 sources += [ "$target_gen_dir/debug-support.cc" ]
2461 deps += [ ":postmortem-metadata" ] 2461 deps += [ ":postmortem-metadata" ]
2462 } 2462 }
2463 } 2463 }
2464 2464
2465 v8_component("v8_libbase") { 2465 v8_component("v8_libbase") {
2466 force_shared_library = true
2466 sources = [ 2467 sources = [
2467 "src/base/adapters.h", 2468 "src/base/adapters.h",
2468 "src/base/atomic-utils.h", 2469 "src/base/atomic-utils.h",
2469 "src/base/atomicops.h", 2470 "src/base/atomicops.h",
2470 "src/base/atomicops_internals_atomicword_compat.h", 2471 "src/base/atomicops_internals_atomicword_compat.h",
2471 "src/base/atomicops_internals_portable.h", 2472 "src/base/atomicops_internals_portable.h",
2472 "src/base/atomicops_internals_std.h", 2473 "src/base/atomicops_internals_std.h",
2473 "src/base/base-export.h", 2474 "src/base/base-export.h",
2474 "src/base/bits.cc", 2475 "src/base/bits.cc",
2475 "src/base/bits.h", 2476 "src/base/bits.h",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 "src/base/utils/random-number-generator.cc", 2525 "src/base/utils/random-number-generator.cc",
2525 "src/base/utils/random-number-generator.h", 2526 "src/base/utils/random-number-generator.h",
2526 ] 2527 ]
2527 2528
2528 configs = [ ":internal_config_base" ] 2529 configs = [ ":internal_config_base" ]
2529 2530
2530 public_configs = [ ":libbase_config" ] 2531 public_configs = [ ":libbase_config" ]
2531 2532
2532 defines = [] 2533 defines = []
2533 2534
2534 if (is_component_build) { 2535 if (is_component_build || v8_component_build) {
2535 defines = [ "BUILDING_V8_BASE_SHARED" ] 2536 defines = [ "BUILDING_V8_BASE_SHARED" ]
2536 } 2537 }
2537 2538
2538 if (is_posix) { 2539 if (is_posix) {
2539 sources += [ 2540 sources += [
2540 "src/base/platform/platform-posix-time.cc", 2541 "src/base/platform/platform-posix-time.cc",
2541 "src/base/platform/platform-posix-time.h", 2542 "src/base/platform/platform-posix-time.h",
2542 "src/base/platform/platform-posix.cc", 2543 "src/base/platform/platform-posix.cc",
2543 "src/base/platform/platform-posix.h", 2544 "src/base/platform/platform-posix.h",
2544 ] 2545 ]
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
2694 if (current_toolchain == v8_snapshot_toolchain) { 2695 if (current_toolchain == v8_snapshot_toolchain) {
2695 v8_executable("mksnapshot") { 2696 v8_executable("mksnapshot") {
2696 visibility = [ ":*" ] # Only targets in this file can depend on this. 2697 visibility = [ ":*" ] # Only targets in this file can depend on this.
2697 2698
2698 sources = [ 2699 sources = [
2699 "src/snapshot/mksnapshot.cc", 2700 "src/snapshot/mksnapshot.cc",
2700 ] 2701 ]
2701 2702
2702 configs = [ ":internal_config" ] 2703 configs = [ ":internal_config" ]
2703 2704
2705 if (v8_component_build) {
2706 configs += [
2707 "//build/config/gcc:rpath_for_built_shared_libraries"
2708 ]
2709 }
2710
2704 deps = [ 2711 deps = [
2705 ":v8_base", 2712 ":v8_base",
2706 ":v8_init", 2713 ":v8_init",
2707 ":v8_libbase", 2714 ":v8_libbase",
2708 ":v8_libplatform", 2715 ":v8_libplatform",
2709 ":v8_nosnapshot", 2716 ":v8_nosnapshot",
2710 "//build/config:exe_and_shlib_deps", 2717 "//build/config:exe_and_shlib_deps",
2711 "//build/win:default_exe_manifest", 2718 "//build/win:default_exe_manifest",
2712 ] 2719 ]
2713 } 2720 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 ":v8_simple_wasm_function_sigs_section_fuzzer", 2787 ":v8_simple_wasm_function_sigs_section_fuzzer",
2781 ":v8_simple_wasm_fuzzer", 2788 ":v8_simple_wasm_fuzzer",
2782 ":v8_simple_wasm_globals_section_fuzzer", 2789 ":v8_simple_wasm_globals_section_fuzzer",
2783 ":v8_simple_wasm_imports_section_fuzzer", 2790 ":v8_simple_wasm_imports_section_fuzzer",
2784 ":v8_simple_wasm_memory_section_fuzzer", 2791 ":v8_simple_wasm_memory_section_fuzzer",
2785 ":v8_simple_wasm_names_section_fuzzer", 2792 ":v8_simple_wasm_names_section_fuzzer",
2786 ":v8_simple_wasm_types_section_fuzzer", 2793 ":v8_simple_wasm_types_section_fuzzer",
2787 ] 2794 ]
2788 } 2795 }
2789 2796
2790 if (is_component_build) { 2797 # we need to have v8 shared libs as we have to link libadblockplus-jni.so with i t.
2798 # see https://issues.adblockplus.org/ticket/6369
2799 if (true) {
2791 v8_component("v8") { 2800 v8_component("v8") {
2801 force_shared_library = true
2792 sources = [ 2802 sources = [
2793 "src/v8dll-main.cc", 2803 "src/v8dll-main.cc",
2794 ] 2804 ]
2795 2805
2796 public_deps = [ 2806 public_deps = [
2797 ":v8_base", 2807 ":v8_base",
2798 ":v8_maybe_snapshot", 2808 ":v8_maybe_snapshot",
2799 ] 2809 ]
2800 2810
2801 configs = [ ":internal_config" ] 2811 configs = [ ":internal_config" ]
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3315 ] 3325 ]
3316 3326
3317 configs = [ 3327 configs = [
3318 ":external_config", 3328 ":external_config",
3319 ":internal_config_base", 3329 ":internal_config_base",
3320 ] 3330 ]
3321 } 3331 }
3322 3332
3323 v8_fuzzer("wasm_compile_fuzzer") { 3333 v8_fuzzer("wasm_compile_fuzzer") {
3324 } 3334 }
OLDNEW
« no previous file with comments | « no previous file | gni/v8.gni » ('j') | gni/v8.gni » ('J')

Powered by Google App Engine
This is Rietveld