| 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_SVG_FONTS=1", | |
| 55 ] | 54 ] |
| 56 | 55 |
| 57 if (is_debug) { | 56 if (is_debug) { |
| 58 # TODO(GYP) this should also be set when release_valgrind_build is set, | 57 # TODO(GYP) this should also be set when release_valgrind_build is set, |
| 59 # but we don't have that flag in the GN build yet. | 58 # but we don't have that flag in the GN build yet. |
| 60 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] | 59 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] |
| 61 } | 60 } |
| 62 | 61 |
| 63 if (use_concatenated_impulse_responses) { | 62 if (use_concatenated_impulse_responses) { |
| 64 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] | 63 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 99 } |
| 101 | 100 |
| 102 # feature_defines_string ------------------------------------------------------- | 101 # feature_defines_string ------------------------------------------------------- |
| 103 | 102 |
| 104 # Convert the list to a space-separated string for passing to scripts. | 103 # Convert the list to a space-separated string for passing to scripts. |
| 105 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 104 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
| 106 feature_defines_string = exec_script( | 105 feature_defines_string = exec_script( |
| 107 "build/gn_list_to_space_separated_string.py", | 106 "build/gn_list_to_space_separated_string.py", |
| 108 feature_defines_list, | 107 feature_defines_list, |
| 109 "trim string") | 108 "trim string") |
| OLD | NEW |