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 { | 9 } else { |
10 # TODO(brettw) remove this once && early-out is checked in. | 10 # TODO(brettw) remove this once && early-out is checked in. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 use_webaudio_ffmpeg = !is_mac && !is_android | 44 use_webaudio_ffmpeg = !is_mac && !is_android |
45 | 45 |
46 # Set this to true to enable use of concatenated impulse responses for the HRTF | 46 # Set this to true to enable use of concatenated impulse responses for the HRTF |
47 # panner in WebAudio. | 47 # panner in WebAudio. |
48 # TODO(brettw) do we need this or can we assume its always on? | 48 # TODO(brettw) do we need this or can we assume its always on? |
49 use_concatenated_impulse_responses = true | 49 use_concatenated_impulse_responses = true |
50 | 50 |
51 # feature_defines_list --------------------------------------------------------- | 51 # feature_defines_list --------------------------------------------------------- |
52 | 52 |
53 feature_defines_list = [ | 53 feature_defines_list = [ |
54 "ENABLE_CUSTOM_SCHEME_HANDLER=0", | |
55 "ENABLE_SVG_FONTS=1", | 54 "ENABLE_SVG_FONTS=1", |
56 ] | 55 ] |
57 | 56 |
58 if (is_debug) { | 57 if (is_debug) { |
59 # TODO(GYP) this should also be set when release_valgrind_build is set, | 58 # TODO(GYP) this should also be set when release_valgrind_build is set, |
60 # but we don't have that flag in the GN build yet. | 59 # but we don't have that flag in the GN build yet. |
61 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] | 60 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] |
62 } | 61 } |
63 | 62 |
64 if (use_concatenated_impulse_responses) { | 63 if (use_concatenated_impulse_responses) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 100 } |
102 | 101 |
103 # feature_defines_string ------------------------------------------------------- | 102 # feature_defines_string ------------------------------------------------------- |
104 | 103 |
105 # 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. |
106 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 105 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
107 feature_defines_string = exec_script( | 106 feature_defines_string = exec_script( |
108 "build/gn_list_to_space_separated_string.py", | 107 "build/gn_list_to_space_separated_string.py", |
109 feature_defines_list, | 108 feature_defines_list, |
110 "trim string") | 109 "trim string") |
OLD | NEW |