| OLD | NEW |
| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//third_party/WebKit/public/features.gni") | 6 import("//third_party/WebKit/public/features.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 } | 10 } |
| 11 if (current_cpu == "arm") { | 11 if (current_cpu == "arm") { |
| 12 import("//build/config/arm.gni") | 12 import("//build/config/arm.gni") |
| 13 } else { | 13 } else { |
| 14 # TODO(brettw) remove this once && early-out is checked in. | 14 # TODO(brettw) remove this once && early-out is checked in. |
| 15 arm_version = 0 | 15 arm_version = 0 |
| 16 } | 16 } |
| 17 | 17 |
| 18 declare_args() { | 18 declare_args() { |
| 19 # Set to true to enable the clang plugin that checks the usage of the Blink | 19 # Set to true to enable the clang plugin that checks the usage of the Blink |
| 20 # garbage-collection infrastructure during compilation. | 20 # garbage-collection infrastructure during compilation. |
| 21 blink_gc_plugin = false | 21 blink_gc_plugin = false |
| 22 blink_gc_plugin_dump_graph = false | 22 blink_gc_plugin_dump_graph = false |
| 23 | 23 |
| 24 blink_asserts_always_on = false | 24 blink_asserts_always_on = false |
| 25 } | 25 } |
| 26 | 26 |
| 27 use_default_render_theme = use_aura | |
| 28 | |
| 29 # Whether Android ARM or x86 build uses OpenMAX DL FFT. Currently only | 27 # Whether Android ARM or x86 build uses OpenMAX DL FFT. Currently only |
| 30 # supported on Android ARMv7+, ia32 or x64 without webview. When enabled, this | 28 # supported on Android ARMv7+, ia32 or x64 without webview. When enabled, this |
| 31 # will also enable WebAudio support on Android ARM, ia32 and x64. Default is | 29 # will also enable WebAudio support on Android ARM, ia32 and x64. Default is |
| 32 # enabled. Whether WebAudio is actually available depends on runtime settings | 30 # enabled. Whether WebAudio is actually available depends on runtime settings |
| 33 # and flags. | 31 # and flags. |
| 34 use_openmax_dl_fft = is_android && | 32 use_openmax_dl_fft = is_android && |
| 35 (current_cpu == "x86" || | 33 (current_cpu == "x86" || |
| 36 current_cpu == "x64" || | 34 current_cpu == "x64" || |
| 37 (current_cpu == "arm" && arm_version >= 7) || | 35 (current_cpu == "arm" && arm_version >= 7) || |
| 38 current_cpu == "mipsel") | 36 current_cpu == "mipsel") |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 89 } |
| 92 | 90 |
| 93 # feature_defines_string ------------------------------------------------------- | 91 # feature_defines_string ------------------------------------------------------- |
| 94 | 92 |
| 95 # Convert the list to a space-separated string for passing to scripts. | 93 # Convert the list to a space-separated string for passing to scripts. |
| 96 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 94 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
| 97 feature_defines_string = exec_script( | 95 feature_defines_string = exec_script( |
| 98 "build/gn_list_to_space_separated_string.py", | 96 "build/gn_list_to_space_separated_string.py", |
| 99 feature_defines_list, | 97 feature_defines_list, |
| 100 "trim string") | 98 "trim string") |
| OLD | NEW |