| 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("config.gni") | 5 import("config.gni") |
| 6 if (is_clang) { | 6 if (is_clang) { |
| 7 import("//build/config/clang/clang.gni") | 7 import("//build/config/clang/clang.gni") |
| 8 } | 8 } |
| 9 | 9 |
| 10 # features --------------------------------------------------------------------- | 10 # features --------------------------------------------------------------------- |
| 11 | 11 |
| 12 config("features") { | 12 config("features") { |
| 13 defines = [ | 13 defines = feature_defines_list |
| 14 "ENABLE_CUSTOM_SCHEME_HANDLER=0", | |
| 15 "ENABLE_SVG_FONTS=1", | |
| 16 ] | |
| 17 | |
| 18 if (is_debug) { | |
| 19 # TODO(GYP) this should also be set when release_valgrind_build is set, | |
| 20 # but we don't have that flag in the GN build yet. | |
| 21 defines += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] | |
| 22 } | |
| 23 | |
| 24 if (use_concatenated_impulse_responses) { | |
| 25 defines += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] | |
| 26 } | |
| 27 | |
| 28 if (is_android) { | |
| 29 defines += [ | |
| 30 "ENABLE_FAST_MOBILE_SCROLLING=1", | |
| 31 "ENABLE_MEDIA_CAPTURE=1", | |
| 32 ] | |
| 33 } else { | |
| 34 defines += [ | |
| 35 "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1", | |
| 36 "ENABLE_MEDIA_CAPTURE=0", | |
| 37 "ENABLE_WEB_AUDIO=1", | |
| 38 ] | |
| 39 } | |
| 40 | |
| 41 if (use_webaudio_ffmpeg) { | |
| 42 defines += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] | |
| 43 } | |
| 44 | |
| 45 if (use_openmax_dl_fft) { | |
| 46 defines += [ | |
| 47 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1", | |
| 48 # Enabling the FFT is enough to enable WebAudio support to | |
| 49 # allow most WebAudio features to work on Android. | |
| 50 "ENABLE_WEB_AUDIO=1", | |
| 51 ] | |
| 52 } | |
| 53 | |
| 54 if (!is_mac) { | |
| 55 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. | |
| 56 defines += [ "ENABLE_OPENTYPE_VERTICAL=1" ] | |
| 57 } | |
| 58 | |
| 59 if (use_default_render_theme) { | |
| 60 defines += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] | |
| 61 } | |
| 62 if (enable_oilpan) { | |
| 63 defines += [ "ENABLE_OILPAN=1" ] | |
| 64 } | |
| 65 } | 14 } |
| 66 | 15 |
| 67 # config ----------------------------------------------------------------------- | 16 # config ----------------------------------------------------------------------- |
| 68 | 17 |
| 69 config("config") { | 18 config("config") { |
| 70 include_dirs = [ ".", ".." ] | 19 include_dirs = [ ".", ".." ] |
| 71 | 20 |
| 72 cflags = [] | 21 cflags = [] |
| 73 defines = [] | 22 defines = [] |
| 74 | 23 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 101 } | 50 } |
| 102 | 51 |
| 103 if (is_clang) { | 52 if (is_clang) { |
| 104 cflags += [ "-Wglobal-constructors" ] | 53 cflags += [ "-Wglobal-constructors" ] |
| 105 if (blink_gc_plugin && clang_use_chrome_plugins) { | 54 if (blink_gc_plugin && clang_use_chrome_plugins) { |
| 106 # TODO(GYP) | 55 # TODO(GYP) |
| 107 #'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh ena
ble-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'], | 56 #'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh ena
ble-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'], |
| 108 } | 57 } |
| 109 } | 58 } |
| 110 } | 59 } |
| OLD | NEW |