| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 if (is_android) { | 61 if (is_android) { |
| 62 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ] | 62 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ] |
| 63 } else { | 63 } else { |
| 64 feature_defines_list += [ | 64 feature_defines_list += [ |
| 65 "WTF_USE_ICCJPEG=1", | 65 "WTF_USE_ICCJPEG=1", |
| 66 "WTF_USE_QCMSLIB=1", | 66 "WTF_USE_QCMSLIB=1", |
| 67 ] | 67 ] |
| 68 } | 68 } |
| 69 | 69 |
| 70 if (is_mac) { | |
| 71 feature_defines_list += [ "WTF_USE_NEW_THEME=1" ] | |
| 72 } | |
| 73 | |
| 74 if (use_webaudio_ffmpeg) { | 70 if (use_webaudio_ffmpeg) { |
| 75 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] | 71 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] |
| 76 } | 72 } |
| 77 | 73 |
| 78 if (use_openmax_dl_fft) { | 74 if (use_openmax_dl_fft) { |
| 79 feature_defines_list += [ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" ] | 75 feature_defines_list += [ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" ] |
| 80 } | 76 } |
| 81 | 77 |
| 82 if (use_default_render_theme) { | 78 if (use_default_render_theme) { |
| 83 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] | 79 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] |
| 84 } | 80 } |
| 85 if (enable_oilpan) { | 81 if (enable_oilpan) { |
| 86 feature_defines_list += [ "ENABLE_OILPAN=1" ] | 82 feature_defines_list += [ "ENABLE_OILPAN=1" ] |
| 87 } | 83 } |
| 88 if (blink_asserts_off_in_release && !is_debug) { | 84 if (blink_asserts_off_in_release && !is_debug) { |
| 89 feature_defines_list += [ "ENABLE_ASSERT=0" ] | 85 feature_defines_list += [ "ENABLE_ASSERT=0" ] |
| 90 } | 86 } |
| 91 | 87 |
| 92 # feature_defines_string ------------------------------------------------------- | 88 # feature_defines_string ------------------------------------------------------- |
| 93 | 89 |
| 94 # Convert the list to a space-separated string for passing to scripts. | 90 # Convert the list to a space-separated string for passing to scripts. |
| 95 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 91 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
| 96 feature_defines_string = | 92 feature_defines_string = |
| 97 exec_script("build/gn_list_to_space_separated_string.py", | 93 exec_script("build/gn_list_to_space_separated_string.py", |
| 98 feature_defines_list, | 94 feature_defines_list, |
| 99 "trim string") | 95 "trim string") |
| OLD | NEW |