Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: Source/config.gni

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebuilding fixed Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 27 matching lines...) Expand all
38 (cpu_arch == "x86" || 38 (cpu_arch == "x86" ||
39 cpu_arch == "x64" || 39 cpu_arch == "x64" ||
40 (cpu_arch == "arm" && arm_version > 7)) 40 (cpu_arch == "arm" && arm_version > 7))
41 41
42 use_webaudio_ffmpeg = !is_mac && !is_android 42 use_webaudio_ffmpeg = !is_mac && !is_android
43 43
44 # Set this to true to enable use of concatenated impulse responses for the HRTF 44 # Set this to true to enable use of concatenated impulse responses for the HRTF
45 # panner in WebAudio. 45 # panner in WebAudio.
46 # TODO(brettw) do we need this or can we assume its always on? 46 # TODO(brettw) do we need this or can we assume its always on?
47 use_concatenated_impulse_responses = true 47 use_concatenated_impulse_responses = true
48
49 # feature_defines_list ---------------------------------------------------------
50
51 feature_defines_list = [
52 "ENABLE_CUSTOM_SCHEME_HANDLER=0",
53 "ENABLE_SVG_FONTS=1",
54 ]
55
56 if (is_debug) {
57 # TODO(GYP) this should also be set when release_valgrind_build is set,
58 # but we don't have that flag in the GN build yet.
59 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ]
60 }
61
62 if (use_concatenated_impulse_responses) {
63 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ]
64 }
65
66 if (is_android) {
67 feature_defines_list += [
68 "ENABLE_FAST_MOBILE_SCROLLING=1",
69 "ENABLE_MEDIA_CAPTURE=1",
70 ]
71 } else {
72 feature_defines_list += [
73 "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1",
74 "ENABLE_MEDIA_CAPTURE=0",
75 "ENABLE_WEB_AUDIO=1",
76 ]
77 }
78
79 if (use_webaudio_ffmpeg) {
80 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
81 }
82
83 if (use_openmax_dl_fft) {
84 feature_defines_list += [
85 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1",
86 # Enabling the FFT is enough to enable WebAudio support to
87 # allow most WebAudio features to work on Android.
88 "ENABLE_WEB_AUDIO=1",
89 ]
90 }
91
92 if (!is_mac) {
93 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
94 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
95 }
96
97 if (use_default_render_theme) {
98 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
99 }
100 if (enable_oilpan) {
101 feature_defines_list += [ "ENABLE_OILPAN=1" ]
102 }
103
104 # feature_defines_string -------------------------------------------------------
105
106 # Convert the list to a space-separated string for passing to scripts.
107 # This would be the equivalent of passing '<(feature_defines)' in GYP.
108 feature_defines_string = exec_script(
109 "build/gn_list_to_space_separated_string.py",
110 feature_defines_list,
111 "trim string")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698