| 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 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
| 9 } else { | |
| 10 # TODO(brettw) remove this once && early-out is checked in. | |
| 11 is_android_webview_build = false | |
| 12 } | 9 } |
| 10 |
| 13 if (cpu_arch == "arm") { | 11 if (cpu_arch == "arm") { |
| 14 import("//build/config/arm.gni") | 12 import("//build/config/arm.gni") |
| 15 } else { | 13 } else { |
| 16 # TODO(brettw) remove this once && early-out is checked in. | 14 # TODO(brettw) remove this once && early-out is checked in. |
| 17 arm_version = 0 | 15 arm_version = 0 |
| 18 } | 16 } |
| 19 | 17 |
| 20 declare_args() { | 18 declare_args() { |
| 21 # Enables the Oilpan garbage-collection infrastructure. | 19 # Enable asserts, even in release builds. |
| 22 sky_enable_oilpan = false | |
| 23 | |
| 24 # Set to true to enable the clang plugin that checks the usage of the Blink | |
| 25 # garbage-collection infrastructure during compilation. | |
| 26 sky_gc_plugin = false | |
| 27 sky_gc_plugin_dump_graph = false | |
| 28 | |
| 29 sky_asserts_always_on = false | 20 sky_asserts_always_on = false |
| 30 | 21 |
| 31 sky_enable_compostior = false | 22 # Experimental support for the Dart VM. |
| 23 sky_use_dart = false |
| 32 } | 24 } |
| 33 | 25 |
| 34 # feature_defines_list --------------------------------------------------------- | 26 # feature_defines_list --------------------------------------------------------- |
| 35 | 27 |
| 36 feature_defines_list = [] | 28 feature_defines_list = [] |
| 37 | 29 |
| 38 if (is_debug) { | 30 if (is_debug) { |
| 39 # TODO(GYP) this should also be set when release_valgrind_build is set, | 31 # TODO(GYP) this should also be set when release_valgrind_build is set, |
| 40 # but we don't have that flag in the GN build yet. | 32 # but we don't have that flag in the GN build yet. |
| 41 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] | 33 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] |
| 42 } | 34 } |
| 43 | 35 |
| 44 if (!is_mac) { | 36 if (!is_mac) { |
| 45 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. | 37 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. |
| 46 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ] | 38 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ] |
| 47 } | 39 } |
| 48 | 40 |
| 49 if (sky_enable_oilpan) { | |
| 50 feature_defines_list += [ "ENABLE_OILPAN=1" ] | |
| 51 } | |
| 52 if (sky_asserts_always_on) { | 41 if (sky_asserts_always_on) { |
| 53 feature_defines_list += [ "ENABLE_ASSERT=1" ] | 42 feature_defines_list += [ "ENABLE_ASSERT=1" ] |
| 54 } | 43 } |
| 55 if (sky_enable_compostior) { | 44 |
| 56 feature_defines_list += [ "ENABLE_COMPOSITOR=1" ] | 45 if (sky_use_dart) { |
| 46 feature_defines_list += [ "WTF_USE_DART=1" ] |
| 57 } | 47 } |
| 58 | 48 |
| 59 # feature_defines_string ------------------------------------------------------- | 49 # feature_defines_string ------------------------------------------------------- |
| 60 | 50 |
| 61 # Convert the list to a space-separated string for passing to scripts. | 51 # Convert the list to a space-separated string for passing to scripts. |
| 62 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 52 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
| 63 feature_defines_string = | 53 feature_defines_string = |
| 64 exec_script("build/gn_list_to_space_separated_string.py", | 54 exec_script("build/gn_list_to_space_separated_string.py", |
| 65 feature_defines_list, | 55 feature_defines_list, |
| 66 "trim string") | 56 "trim string") |
| OLD | NEW |