| 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 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 use_webaudio_ffmpeg = !is_mac && !is_android | 41 use_webaudio_ffmpeg = !is_mac && !is_android |
| 42 | 42 |
| 43 # Set this to true to enable use of concatenated impulse responses for the HRTF | 43 # Set this to true to enable use of concatenated impulse responses for the HRTF |
| 44 # panner in WebAudio. | 44 # panner in WebAudio. |
| 45 # TODO(brettw) do we need this or can we assume its always on? | 45 # TODO(brettw) do we need this or can we assume its always on? |
| 46 use_concatenated_impulse_responses = true | 46 use_concatenated_impulse_responses = true |
| 47 | 47 |
| 48 # feature_defines_list --------------------------------------------------------- | 48 # feature_defines_list --------------------------------------------------------- |
| 49 | 49 |
| 50 feature_defines_list = [ "ENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0" ] | 50 feature_defines_list = [ |
| 51 "ENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0", |
| 52 "ENABLE_OILPAN=1", |
| 53 ] |
| 51 | 54 |
| 52 if (is_debug) { | 55 if (is_debug) { |
| 53 # TODO(GYP) this should also be set when release_valgrind_build is set, | 56 # TODO(GYP) this should also be set when release_valgrind_build is set, |
| 54 # but we don't have that flag in the GN build yet. | 57 # but we don't have that flag in the GN build yet. |
| 55 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] | 58 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] |
| 56 } | 59 } |
| 57 | 60 |
| 58 if (use_concatenated_impulse_responses) { | 61 if (use_concatenated_impulse_responses) { |
| 59 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] | 62 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] |
| 60 } | 63 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 76 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] | 79 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] |
| 77 } | 80 } |
| 78 | 81 |
| 79 if (use_openmax_dl_fft) { | 82 if (use_openmax_dl_fft) { |
| 80 feature_defines_list += [ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" ] | 83 feature_defines_list += [ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" ] |
| 81 } | 84 } |
| 82 | 85 |
| 83 if (use_default_render_theme) { | 86 if (use_default_render_theme) { |
| 84 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] | 87 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] |
| 85 } | 88 } |
| 86 if (enable_oilpan) { | |
| 87 feature_defines_list += [ "ENABLE_OILPAN=1" ] | |
| 88 } | |
| 89 if (blink_asserts_off_in_release && !is_debug) { | 89 if (blink_asserts_off_in_release && !is_debug) { |
| 90 feature_defines_list += [ "ENABLE_ASSERT=0" ] | 90 feature_defines_list += [ "ENABLE_ASSERT=0" ] |
| 91 } | 91 } |
| 92 if (blink_logging_always_on) { | 92 if (blink_logging_always_on) { |
| 93 feature_defines_list += [ "LOG_DISABLED=0" ] | 93 feature_defines_list += [ "LOG_DISABLED=0" ] |
| 94 } | 94 } |
| 95 | 95 |
| 96 # feature_defines_string ------------------------------------------------------- | 96 # feature_defines_string ------------------------------------------------------- |
| 97 | 97 |
| 98 # Convert the list to a space-separated string for passing to scripts. | 98 # Convert the list to a space-separated string for passing to scripts. |
| 99 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 99 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
| 100 feature_defines_string = | 100 feature_defines_string = |
| 101 exec_script("build/gn_list_to_space_separated_string.py", | 101 exec_script("build/gn_list_to_space_separated_string.py", |
| 102 feature_defines_list, | 102 feature_defines_list, |
| 103 "trim string") | 103 "trim string") |
| OLD | NEW |