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

Side by Side Diff: BUILD.gn

Issue 29720588: Issue 6396 - Error creating non debug build config (Closed)
Patch Set: Created March 12, 2018, 11:18 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 v8_toolset_for_shell = "host" 157 v8_toolset_for_shell = "host"
158 158
159 ############################################################################### 159 ###############################################################################
160 # Configurations 160 # Configurations
161 # 161 #
162 config("internal_config") { 162 config("internal_config") {
163 visibility = [ ":*" ] # Only targets in this file can depend on this. 163 visibility = [ ":*" ] # Only targets in this file can depend on this.
164 164
165 include_dirs = [ "." ] 165 include_dirs = [ "." ]
166 166
167 if (is_component_build) { 167 if (is_component_build || v8_component_build) {
168 defines = [ "BUILDING_V8_SHARED" ] 168 defines = [ "BUILDING_V8_SHARED" ]
169 } 169 }
170 } 170 }
171 171
172 config("internal_config_base") { 172 config("internal_config_base") {
173 visibility = [ ":*" ] # Only targets in this file can depend on this. 173 visibility = [ ":*" ] # Only targets in this file can depend on this.
174 174
175 include_dirs = [ "." ] 175 include_dirs = [ "." ]
176 } 176 }
177 177
178 # This config should be applied to code using the libplatform. 178 # This config should be applied to code using the libplatform.
179 config("libplatform_config") { 179 config("libplatform_config") {
180 include_dirs = [ "include" ] 180 include_dirs = [ "include" ]
181 if (is_component_build) { 181 if (is_component_build) {
182 defines = [ "USING_V8_PLATFORM_SHARED" ] 182 defines = [ "USING_V8_PLATFORM_SHARED" ]
183 } 183 }
184 } 184 }
185 185
186 # This config should be applied to code using the libbase. 186 # This config should be applied to code using the libbase.
187 config("libbase_config") { 187 config("libbase_config") {
188 if (is_component_build) { 188 if (is_component_build || v8_component_build) {
189 defines = [ "USING_V8_BASE_SHARED" ] 189 defines = [ "USING_V8_BASE_SHARED" ]
190 } 190 }
191 libs = [] 191 libs = []
192 if (is_android && current_toolchain != host_toolchain) { 192 if (is_android && current_toolchain != host_toolchain) {
193 libs += [ "log" ] 193 libs += [ "log" ]
194 } 194 }
195 } 195 }
196 196
197 # This config should be applied to code using the libsampler. 197 # This config should be applied to code using the libsampler.
198 config("libsampler_config") { 198 config("libsampler_config") {
199 include_dirs = [ "include" ] 199 include_dirs = [ "include" ]
200 } 200 }
201 201
202 # This config should only be applied to code using V8 and not any V8 code 202 # This config should only be applied to code using V8 and not any V8 code
203 # itself. 203 # itself.
204 config("external_config") { 204 config("external_config") {
205 if (is_component_build) { 205 if (is_component_build || v8_component_build) {
206 defines = [ "USING_V8_SHARED" ] 206 defines = [ "USING_V8_SHARED" ]
207 } 207 }
208 include_dirs = [ 208 include_dirs = [
209 "include", 209 "include",
210 "$target_gen_dir/include", 210 "$target_gen_dir/include",
211 ] 211 ]
212 } 212 }
213 213
214 # This config should only be applied to code that needs to be explicitly 214 # This config should only be applied to code that needs to be explicitly
215 # aware of whether we are using startup data or not. 215 # aware of whether we are using startup data or not.
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 760
761 script = "tools/run.py" 761 script = "tools/run.py"
762 762
763 sources = [] 763 sources = []
764 764
765 outputs = [ 765 outputs = [
766 "$target_gen_dir/snapshot.cc", 766 "$target_gen_dir/snapshot.cc",
767 ] 767 ]
768 768
769 args = [ 769 args = [
770 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", 770 rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
771 "root_out_dir") + "/mksnapshot", 771 "root_out_dir") + "/mksnapshot"),
772 root_build_dir),
sergei 2018/03/12 12:43:31 Is it correct that `root_build_dir` is removed now
anton 2018/03/12 12:51:22 Previously it was relative path (relative to build
773 "--startup_src", 772 "--startup_src",
774 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), 773 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
775 ] 774 ]
776 775
777 if (v8_random_seed != "0") { 776 if (v8_random_seed != "0") {
778 args += [ 777 args += [
779 "--random-seed", 778 "--random-seed",
780 v8_random_seed, 779 v8_random_seed,
781 ] 780 ]
782 } 781 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 "is_component_build=$is_component_build", 826 "is_component_build=$is_component_build",
828 "is_debug=$is_debug", 827 "is_debug=$is_debug",
829 "is_gcov_coverage=$is_gcov_coverage", 828 "is_gcov_coverage=$is_gcov_coverage",
830 "is_msan=$is_msan", 829 "is_msan=$is_msan",
831 "is_tsan=$is_tsan", 830 "is_tsan=$is_tsan",
832 "is_ubsan_vptr=$is_ubsan_vptr", 831 "is_ubsan_vptr=$is_ubsan_vptr",
833 "target_cpu=\"$target_cpu\"", 832 "target_cpu=\"$target_cpu\"",
834 "v8_enable_i18n_support=$v8_enable_i18n_support", 833 "v8_enable_i18n_support=$v8_enable_i18n_support",
835 "v8_target_cpu=\"$v8_target_cpu\"", 834 "v8_target_cpu=\"$v8_target_cpu\"",
836 "v8_use_snapshot=$v8_use_snapshot", 835 "v8_use_snapshot=$v8_use_snapshot",
836 "v8_component_build=$v8_component_build"
837 ] 837 ]
838 } 838 }
839 839
840 ############################################################################### 840 ###############################################################################
841 # Source Sets (aka static libraries) 841 # Source Sets (aka static libraries)
842 # 842 #
843 843
844 source_set("v8_maybe_snapshot") { 844 source_set("v8_maybe_snapshot") {
845 if (v8_use_snapshot && v8_use_external_startup_data) { 845 if (v8_use_snapshot && v8_use_external_startup_data) {
846 public_deps = [ 846 public_deps = [
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 ] 2386 ]
2387 } 2387 }
2388 2388
2389 if (v8_postmortem_support) { 2389 if (v8_postmortem_support) {
2390 sources += [ "$target_gen_dir/debug-support.cc" ] 2390 sources += [ "$target_gen_dir/debug-support.cc" ]
2391 deps += [ ":postmortem-metadata" ] 2391 deps += [ ":postmortem-metadata" ]
2392 } 2392 }
2393 } 2393 }
2394 2394
2395 v8_component("v8_libbase") { 2395 v8_component("v8_libbase") {
2396 force_shared_library = true
2396 sources = [ 2397 sources = [
2397 "src/base/adapters.h", 2398 "src/base/adapters.h",
2398 "src/base/atomic-utils.h", 2399 "src/base/atomic-utils.h",
2399 "src/base/atomicops.h", 2400 "src/base/atomicops.h",
2400 "src/base/atomicops_internals_atomicword_compat.h", 2401 "src/base/atomicops_internals_atomicword_compat.h",
2401 "src/base/atomicops_internals_portable.h", 2402 "src/base/atomicops_internals_portable.h",
2402 "src/base/atomicops_internals_std.h", 2403 "src/base/atomicops_internals_std.h",
2403 "src/base/base-export.h", 2404 "src/base/base-export.h",
2404 "src/base/bits.cc", 2405 "src/base/bits.cc",
2405 "src/base/bits.h", 2406 "src/base/bits.h",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 "src/base/utils/random-number-generator.cc", 2454 "src/base/utils/random-number-generator.cc",
2454 "src/base/utils/random-number-generator.h", 2455 "src/base/utils/random-number-generator.h",
2455 ] 2456 ]
2456 2457
2457 configs = [ ":internal_config_base" ] 2458 configs = [ ":internal_config_base" ]
2458 2459
2459 public_configs = [ ":libbase_config" ] 2460 public_configs = [ ":libbase_config" ]
2460 2461
2461 defines = [] 2462 defines = []
2462 2463
2463 if (is_component_build) { 2464 if (is_component_build || v8_component_build) {
2464 defines = [ "BUILDING_V8_BASE_SHARED" ] 2465 defines = [ "BUILDING_V8_BASE_SHARED" ]
2465 } 2466 }
2466 2467
2467 if (is_posix) { 2468 if (is_posix) {
2468 sources += [ 2469 sources += [
2469 "src/base/platform/platform-posix-time.cc", 2470 "src/base/platform/platform-posix-time.cc",
2470 "src/base/platform/platform-posix-time.h", 2471 "src/base/platform/platform-posix-time.h",
2471 "src/base/platform/platform-posix.cc", 2472 "src/base/platform/platform-posix.cc",
2472 "src/base/platform/platform-posix.h", 2473 "src/base/platform/platform-posix.h",
2473 ] 2474 ]
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 if (current_toolchain == v8_snapshot_toolchain) { 2624 if (current_toolchain == v8_snapshot_toolchain) {
2624 v8_executable("mksnapshot") { 2625 v8_executable("mksnapshot") {
2625 visibility = [ ":*" ] # Only targets in this file can depend on this. 2626 visibility = [ ":*" ] # Only targets in this file can depend on this.
2626 2627
2627 sources = [ 2628 sources = [
2628 "src/snapshot/mksnapshot.cc", 2629 "src/snapshot/mksnapshot.cc",
2629 ] 2630 ]
2630 2631
2631 configs = [ ":internal_config" ] 2632 configs = [ ":internal_config" ]
2632 2633
2634 if (v8_component_build) {
2635 configs += [
2636 "//build/config/gcc:rpath_for_built_shared_libraries",
2637 #"//build/config/gcc:executable_ldconfig"
sergei 2018/03/12 12:43:31 The commented line.
anton 2018/03/12 12:51:22 Right, it's because the task is not finished yet.
2638 ]
2639 }
2640
2633 deps = [ 2641 deps = [
2634 ":v8_base", 2642 ":v8_base",
2635 ":v8_builtins_setup", 2643 ":v8_builtins_setup",
2636 ":v8_libbase", 2644 ":v8_libbase",
2637 ":v8_libplatform", 2645 ":v8_libplatform",
2638 ":v8_nosnapshot", 2646 ":v8_nosnapshot",
2639 "//build/config:exe_and_shlib_deps", 2647 "//build/config:exe_and_shlib_deps",
2640 "//build/win:default_exe_manifest", 2648 "//build/win:default_exe_manifest",
2641 ] 2649 ]
2642 } 2650 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 ":v8_simple_wasm_function_sigs_section_fuzzer", 2717 ":v8_simple_wasm_function_sigs_section_fuzzer",
2710 ":v8_simple_wasm_fuzzer", 2718 ":v8_simple_wasm_fuzzer",
2711 ":v8_simple_wasm_globals_section_fuzzer", 2719 ":v8_simple_wasm_globals_section_fuzzer",
2712 ":v8_simple_wasm_imports_section_fuzzer", 2720 ":v8_simple_wasm_imports_section_fuzzer",
2713 ":v8_simple_wasm_memory_section_fuzzer", 2721 ":v8_simple_wasm_memory_section_fuzzer",
2714 ":v8_simple_wasm_names_section_fuzzer", 2722 ":v8_simple_wasm_names_section_fuzzer",
2715 ":v8_simple_wasm_types_section_fuzzer", 2723 ":v8_simple_wasm_types_section_fuzzer",
2716 ] 2724 ]
2717 } 2725 }
2718 2726
2719 if (is_component_build) { 2727 # we need to have v8 shared libs as we have to link libadblockplus-jni.so with i t
2728 if (true) {
2720 v8_component("v8") { 2729 v8_component("v8") {
2730 force_shared_library = true
2721 sources = [ 2731 sources = [
2722 "src/v8dll-main.cc", 2732 "src/v8dll-main.cc",
2723 ] 2733 ]
2724 2734
2725 public_deps = [ 2735 public_deps = [
2726 ":v8_base", 2736 ":v8_base",
2727 ":v8_maybe_snapshot", 2737 ":v8_maybe_snapshot",
2728 ] 2738 ]
2729 2739
2730 configs = [ ":internal_config" ] 2740 configs = [ ":internal_config" ]
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3244 ] 3254 ]
3245 3255
3246 configs = [ 3256 configs = [
3247 ":external_config", 3257 ":external_config",
3248 ":internal_config_base", 3258 ":internal_config_base",
3249 ] 3259 ]
3250 } 3260 }
3251 3261
3252 v8_fuzzer("wasm_compile_fuzzer") { 3262 v8_fuzzer("wasm_compile_fuzzer") {
3253 } 3263 }
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