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

Side by Side Diff: BUILD.gn

Issue 2356703003: Revert of [d8] Fix the shared-library build (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
« no previous file with comments | « no previous file | include/v8.h » ('j') | 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 ############################################################################### 109 ###############################################################################
110 # Configurations 110 # Configurations
111 # 111 #
112 config("internal_config") { 112 config("internal_config") {
113 visibility = [ ":*" ] # Only targets in this file can depend on this. 113 visibility = [ ":*" ] # Only targets in this file can depend on this.
114 114
115 include_dirs = [ "." ] 115 include_dirs = [ "." ]
116 116
117 if (is_component_build) { 117 if (is_component_build) {
118 defines = [ "BUILDING_V8_SHARED" ] 118 defines = [
119 "V8_SHARED",
120 "BUILDING_V8_SHARED",
121 ]
119 } 122 }
120 } 123 }
121 124
122 config("internal_config_base") { 125 config("internal_config_base") {
123 visibility = [ ":*" ] # Only targets in this file can depend on this. 126 visibility = [ ":*" ] # Only targets in this file can depend on this.
124 127
125 include_dirs = [ "." ] 128 include_dirs = [ "." ]
126 } 129 }
127 130
128 # This config should be applied to code using the libplatform. 131 # This config should be applied to code using the libplatform.
129 config("libplatform_config") { 132 config("libplatform_config") {
130 include_dirs = [ "include" ] 133 include_dirs = [ "include" ]
131 } 134 }
132 135
133 # This config should be applied to code using the libsampler. 136 # This config should be applied to code using the libsampler.
134 config("libsampler_config") { 137 config("libsampler_config") {
135 include_dirs = [ "include" ] 138 include_dirs = [ "include" ]
136 } 139 }
137 140
138 # This config should only be applied to code using V8 and not any V8 code 141 # This config should only be applied to code using V8 and not any V8 code
139 # itself. 142 # itself.
140 config("external_config") { 143 config("external_config") {
141 if (is_component_build) { 144 if (is_component_build) {
142 defines = [ "USING_V8_SHARED" ] 145 defines = [
146 "V8_SHARED",
147 "USING_V8_SHARED",
148 ]
143 } 149 }
144 include_dirs = [ "include" ] 150 include_dirs = [ "include" ]
145 if (v8_enable_inspector_override) { 151 if (v8_enable_inspector_override) {
146 include_dirs += [ "$target_gen_dir/include" ] 152 include_dirs += [ "$target_gen_dir/include" ]
147 } 153 }
148 libs = [] 154 libs = []
149 if (is_android && current_toolchain != host_toolchain) { 155 if (is_android && current_toolchain != host_toolchain) {
150 libs += [ "log" ] 156 libs += [ "log" ]
151 } 157 }
152 } 158 }
(...skipping 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 public_deps = [ 2370 public_deps = [
2365 ":v8_base", 2371 ":v8_base",
2366 ":v8_maybe_snapshot", 2372 ":v8_maybe_snapshot",
2367 ] 2373 ]
2368 public_configs = [ ":external_config" ] 2374 public_configs = [ ":external_config" ]
2369 } 2375 }
2370 } 2376 }
2371 2377
2372 v8_executable("d8") { 2378 v8_executable("d8") {
2373 sources = [ 2379 sources = [
2374 "$target_gen_dir/d8-js.cc",
2375 "src/d8.cc", 2380 "src/d8.cc",
2376 "src/d8.h", 2381 "src/d8.h",
2377 ] 2382 ]
2378 2383
2379 configs = [ 2384 configs = [
2380 # Note: don't use :internal_config here because this target will get 2385 # Note: don't use :internal_config here because this target will get
2381 # the :external_config applied to it by virtue of depending on :v8, and 2386 # the :external_config applied to it by virtue of depending on :v8, and
2382 # you can't have both applied to the same target. 2387 # you can't have both applied to the same target.
2383 ":internal_config_base", 2388 ":internal_config_base",
2384 ] 2389 ]
2385 2390
2386 deps = [ 2391 deps = [
2387 ":d8_js2c", 2392 ":d8_js2c",
2388 ":v8", 2393 ":v8",
2389 ":v8_libplatform", 2394 ":v8_libplatform",
2390 "//build/config/sanitizers:deps", 2395 "//build/config/sanitizers:deps",
2391 "//build/win:default_exe_manifest", 2396 "//build/win:default_exe_manifest",
2392 ] 2397 ]
2393 2398
2394 # TODO(jochen): Add support for vtunejit. 2399 # TODO(jochen): Add support for vtunejit.
2395 2400
2396 if (is_posix) { 2401 if (is_posix) {
2397 sources += [ "src/d8-posix.cc" ] 2402 sources += [ "src/d8-posix.cc" ]
2398 } else if (is_win) { 2403 } else if (is_win) {
2399 sources += [ "src/d8-windows.cc" ] 2404 sources += [ "src/d8-windows.cc" ]
2400 } 2405 }
2401 2406
2407 if (!is_component_build) {
2408 sources += [ "$target_gen_dir/d8-js.cc" ]
2409 }
2402 if (v8_enable_i18n_support) { 2410 if (v8_enable_i18n_support) {
2403 deps += [ "//third_party/icu" ] 2411 deps += [ "//third_party/icu" ]
2404 } 2412 }
2405 } 2413 }
2406 2414
2407 v8_isolate_run("d8") { 2415 v8_isolate_run("d8") {
2408 deps = [ 2416 deps = [
2409 ":d8", 2417 ":d8",
2410 ] 2418 ]
2411 2419
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2762 ":fuzzer_support", 2770 ":fuzzer_support",
2763 ":lib_wasm_section_fuzzer", 2771 ":lib_wasm_section_fuzzer",
2764 ":wasm_module_runner", 2772 ":wasm_module_runner",
2765 ] 2773 ]
2766 2774
2767 configs = [ ":internal_config" ] 2775 configs = [ ":internal_config" ]
2768 } 2776 }
2769 2777
2770 v8_fuzzer("wasm_data_section_fuzzer") { 2778 v8_fuzzer("wasm_data_section_fuzzer") {
2771 } 2779 }
OLDNEW
« no previous file with comments | « no previous file | include/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698