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

Side by Side Diff: BUILD.gn

Issue 2183063002: [build] Conditionally print to stdout on Android (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Define behind variable Created 4 years, 4 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 | gypfiles/standalone.gypi » ('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
11 if (is_android) { 11 if (is_android) {
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } 13 }
14 14
15 import("gni/v8.gni") 15 import("gni/v8.gni")
16 import("gni/isolate.gni") 16 import("gni/isolate.gni")
17 import("//build_overrides/v8.gni") 17 import("//build_overrides/v8.gni")
18 18
19 import("snapshot_toolchain.gni") 19 import("snapshot_toolchain.gni")
20 20
21 declare_args() { 21 declare_args() {
22 # Print to stdout on Android.
23 v8_android_log_stdout = false
24
22 # Sets -DVERIFY_HEAP. 25 # Sets -DVERIFY_HEAP.
23 v8_enable_verify_heap = false 26 v8_enable_verify_heap = false
24 27
25 # Enable compiler warnings when using V8_DEPRECATED apis. 28 # Enable compiler warnings when using V8_DEPRECATED apis.
26 v8_deprecation_warnings = false 29 v8_deprecation_warnings = false
27 30
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 31 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
29 v8_imminent_deprecation_warnings = "" 32 v8_imminent_deprecation_warnings = ""
30 33
31 # Embeds the given script into the snapshot. 34 # Embeds the given script into the snapshot.
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 309 }
307 if (v8_current_cpu == "x64") { 310 if (v8_current_cpu == "x64") {
308 defines += [ "V8_TARGET_ARCH_X64" ] 311 defines += [ "V8_TARGET_ARCH_X64" ]
309 if (is_win) { 312 if (is_win) {
310 # Increase the initial stack size. The default is 1MB, this is 2MB. This 313 # Increase the initial stack size. The default is 1MB, this is 2MB. This
311 # applies only to executables and shared libraries produced by V8 since 314 # applies only to executables and shared libraries produced by V8 since
312 # ldflags are not pushed to dependants. 315 # ldflags are not pushed to dependants.
313 ldflags += [ "/STACK:2097152" ] 316 ldflags += [ "/STACK:2097152" ]
314 } 317 }
315 } 318 }
319 if (is_android && v8_android_log_stdout) {
320 defines += [ "V8_ANDROID_LOG_STDOUT" ]
321 }
316 322
317 # TODO(jochen): Support v8_enable_prof on Windows. 323 # TODO(jochen): Support v8_enable_prof on Windows.
318 # TODO(jochen): Add support for compiling with simulators. 324 # TODO(jochen): Add support for compiling with simulators.
319 325
320 if (is_debug) { 326 if (is_debug) {
321 if (is_linux && v8_enable_backtrace) { 327 if (is_linux && v8_enable_backtrace) {
322 ldflags += [ "-rdynamic" ] 328 ldflags += [ "-rdynamic" ]
323 } 329 }
324 330
325 # TODO(jochen): Add support for different debug optimization levels. 331 # TODO(jochen): Add support for different debug optimization levels.
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 2537
2532 deps = [ 2538 deps = [
2533 ":fuzzer_support", 2539 ":fuzzer_support",
2534 ] 2540 ]
2535 2541
2536 configs = [ ":internal_config" ] 2542 configs = [ ":internal_config" ]
2537 } 2543 }
2538 2544
2539 v8_fuzzer("wasm_asmjs_fuzzer") { 2545 v8_fuzzer("wasm_asmjs_fuzzer") {
2540 } 2546 }
OLDNEW
« no previous file with comments | « no previous file | gypfiles/standalone.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698