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

Side by Side Diff: build/config/BUILD.gn

Issue 287343006: ui/base and some other GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | build/config/features.gni » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 9
10 declare_args() { 10 declare_args() {
11 # When set, turns off the (normally-on) iterator debugging and related stuff 11 # When set, turns off the (normally-on) iterator debugging and related stuff
12 # that is normally turned on for Debug builds. These are generally useful for 12 # that is normally turned on for Debug builds. These are generally useful for
13 # catching bugs but in some cases may cause conflicts or excessive slowness. 13 # catching bugs but in some cases may cause conflicts or excessive slowness.
14 disable_iterator_debugging = false 14 disable_iterator_debugging = false
15 } 15 }
16 16
17 # TODO(brettw) Most of these should be removed. Instead of global feature 17 # TODO(brettw) Most of these should be removed. Instead of global feature
18 # flags, we should have more modular flags that apply only to a target and its 18 # flags, we should have more modular flags that apply only to a target and its
19 # dependents. For example, depending on the "x11" meta-target should define 19 # dependents. For example, depending on the "x11" meta-target should define
20 # USE_X11 for all dependents so that everything that could use X11 gets the 20 # USE_X11 for all dependents so that everything that could use X11 gets the
21 # define, but anything that doesn't depend on X11 doesn't see it. 21 # define, but anything that doesn't depend on X11 doesn't see it.
22 # 22 #
23 # For now we define these globally to match the current GYP build. 23 # For now we define these globally to match the current GYP build.
24 config("feature_flags") { 24 config("feature_flags") {
25 # TODO(brettw) most of these need to be parameterized. 25 # TODO(brettw) most of these need to be parameterized.
26 defines = [ 26 defines = [
27 "CHROMIUM_BUILD", 27 "CHROMIUM_BUILD",
28 "ENABLE_ONE_CLICK_SIGNIN", 28 "ENABLE_ONE_CLICK_SIGNIN",
29 "ENABLE_REMOTING=1", 29 "ENABLE_REMOTING=1",
30 "ENABLE_WEBRTC=1",
31 "ENABLE_CONFIGURATION_POLICY", 30 "ENABLE_CONFIGURATION_POLICY",
32 "ENABLE_NOTIFICATIONS", 31 "ENABLE_NOTIFICATIONS",
33 "ENABLE_EGLIMAGE=1", 32 "ENABLE_EGLIMAGE=1",
34 "ENABLE_TASK_MANAGER=1", 33 "ENABLE_TASK_MANAGER=1",
35 "ENABLE_EXTENSIONS=1", 34 "ENABLE_EXTENSIONS=1",
36 "ENABLE_PLUGIN_INSTALLATION=1", 35 "ENABLE_PLUGIN_INSTALLATION=1",
37 "ENABLE_SESSION_SERVICE=1", 36 "ENABLE_SESSION_SERVICE=1",
38 "ENABLE_THEMES=1", 37 "ENABLE_THEMES=1",
39 "ENABLE_AUTOFILL_DIALOG=1", 38 "ENABLE_AUTOFILL_DIALOG=1",
40 "ENABLE_BACKGROUND=1", 39 "ENABLE_BACKGROUND=1",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 116 }
118 if (use_x11) { 117 if (use_x11) {
119 defines += [ "USE_X11=1" ] 118 defines += [ "USE_X11=1" ]
120 if (use_xi2_mt > 0) { 119 if (use_xi2_mt > 0) {
121 defines += [ "USE_XI2_MT=$use_xi2_mt" ] 120 defines += [ "USE_XI2_MT=$use_xi2_mt" ]
122 } 121 }
123 } 122 }
124 if (use_allocator != "tcmalloc") { 123 if (use_allocator != "tcmalloc") {
125 defines += [ "NO_TCMALLOC" ] 124 defines += [ "NO_TCMALLOC" ]
126 } 125 }
126 if (enable_webrtc) {
127 defines += [ "ENABLE_WEBRTC=1" ]
128 }
127 } 129 }
128 130
129 # Debug/release ---------------------------------------------------------------- 131 # Debug/release ----------------------------------------------------------------
130 132
131 config("debug") { 133 config("debug") {
132 defines = [ 134 defines = [
133 "_DEBUG", 135 "_DEBUG",
134 "DYNAMIC_ANNOTATIONS_ENABLED=1", 136 "DYNAMIC_ANNOTATIONS_ENABLED=1",
135 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 137 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
136 ] 138 ]
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 "CoreText.framework", 222 "CoreText.framework",
221 "Foundation.framework", 223 "Foundation.framework",
222 "UIKit.framework", 224 "UIKit.framework",
223 ] 225 ]
224 } else if (is_linux) { 226 } else if (is_linux) {
225 libs = [ 227 libs = [
226 "dl", 228 "dl",
227 ] 229 ]
228 } 230 }
229 } 231 }
OLDNEW
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | build/config/features.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698