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 } | 13 } |
14 | 14 |
15 declare_args() { | 15 declare_args() { |
16 # Set to true to enable the clang plugin that checks the usage of the Blink | 16 # Set to true to enable the clang plugin that checks the usage of the Blink |
17 # garbage-collection infrastructure during compilation. | 17 # garbage-collection infrastructure during compilation. |
18 blink_gc_plugin = true | 18 blink_gc_plugin = true |
19 | 19 |
20 # Set to true to have the clang Blink GC plugin emit class graph (in JSON) | |
21 # with typed pointer edges; for debugging or other (internal) uses. | |
22 blink_gc_plugin_option_do_dump_graph = false | |
Nico
2016/06/21 20:53:13
you can have declare_args in BUILD.gn files, so if
sof
2016/06/22 10:58:04
I've moved the GC plugin ones to Source/BUILD.gn ,
| |
23 | |
24 # Set to true to have the clang Blink GC plugin additionally check if | |
25 # a class has an empty destructor which would be unnecessarily invoked | |
26 # when finalized. | |
27 blink_gc_plugin_option_warn_unneeded_finalizer = false | |
28 | |
29 # Clang plugin installation directory; the default is | |
30 # to use the build tree "third_party/llvm-build/Release+Asserts/lib" | |
31 # directory. | |
32 blink_gc_plugin_lib_path = "//third_party/llvm-build/Release+Asserts/lib/" | |
Nico
2016/06/21 20:53:13
Hm, the plugin usually only works with clangs buil
sof
2016/06/21 21:12:39
I think it makes sense to broaden the configurable
sof
2016/06/22 10:58:04
Didn't go the whole hog, but added clang_plugin_li
| |
33 | |
20 # If true, doesn't compile debug symbols into webcore reducing the | 34 # If true, doesn't compile debug symbols into webcore reducing the |
21 # size of the binary and increasing the speed of gdb. | 35 # size of the binary and increasing the speed of gdb. |
22 remove_webcore_debug_symbols = false | 36 remove_webcore_debug_symbols = false |
23 | 37 |
24 # If true, enables blink logging macros (WTF_LOG and friends) unconditionally. | 38 # If true, enables blink logging macros (WTF_LOG and friends) unconditionally. |
25 # When false, blink logging macros are enabled only if assertions are enabled. | 39 # When false, blink logging macros are enabled only if assertions are enabled. |
26 blink_logging_always_on = false | 40 blink_logging_always_on = false |
27 | 41 |
28 # If true, defaults image interpolation to low quality. | 42 # If true, defaults image interpolation to low quality. |
29 use_low_quality_image_interpolation = is_android | 43 use_low_quality_image_interpolation = is_android |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 } | 100 } |
87 | 101 |
88 # feature_defines_string ------------------------------------------------------- | 102 # feature_defines_string ------------------------------------------------------- |
89 | 103 |
90 # Convert the list to a space-separated string for passing to scripts. | 104 # Convert the list to a space-separated string for passing to scripts. |
91 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 105 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
92 feature_defines_string = | 106 feature_defines_string = |
93 exec_script("build/gn_list_to_space_separated_string.py", | 107 exec_script("build/gn_list_to_space_separated_string.py", |
94 feature_defines_list, | 108 feature_defines_list, |
95 "trim string") | 109 "trim string") |
OLD | NEW |