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

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

Issue 666813002: GN: Fix Android component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-clank
Patch Set: Actually undo gyp change Created 6 years, 2 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
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() {
(...skipping 14 matching lines...) Expand all
25 # dependents. For example, depending on the "x11" meta-target should define 25 # dependents. For example, depending on the "x11" meta-target should define
26 # USE_X11 for all dependents so that everything that could use X11 gets the 26 # USE_X11 for all dependents so that everything that could use X11 gets the
27 # define, but anything that doesn't depend on X11 doesn't see it. 27 # define, but anything that doesn't depend on X11 doesn't see it.
28 # 28 #
29 # For now we define these globally to match the current GYP build. 29 # For now we define these globally to match the current GYP build.
30 config("feature_flags") { 30 config("feature_flags") {
31 # TODO(brettw) most of these need to be parameterized. 31 # TODO(brettw) most of these need to be parameterized.
32 defines = [ 32 defines = [
33 "CHROMIUM_BUILD", 33 "CHROMIUM_BUILD",
34 "ENABLE_EGLIMAGE=1", 34 "ENABLE_EGLIMAGE=1",
35 "ENABLE_BACKGROUND=1",
36 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. 35 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere.
37 ] 36 ]
38 37
38 if (enable_background) {
39 defines += [ "ENABLE_BACKGROUND=1" ]
40 }
39 if (cld_version > 0) { 41 if (cld_version > 0) {
40 defines += [ "CLD_VERSION=$cld_version" ] 42 defines += [ "CLD_VERSION=$cld_version" ]
41 } 43 }
42 if (enable_mdns) { 44 if (enable_mdns) {
43 defines += [ "ENABLE_MDNS=1" ] 45 defines += [ "ENABLE_MDNS=1" ]
44 } 46 }
45 if (enable_notifications) { 47 if (enable_notifications) {
46 defines += [ "ENABLE_NOTIFICATIONS" ] 48 defines += [ "ENABLE_NOTIFICATIONS" ]
47 } 49 }
48 if (enable_pepper_cdms) { 50 if (enable_pepper_cdms) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "CoreText.framework", 293 "CoreText.framework",
292 "Foundation.framework", 294 "Foundation.framework",
293 "UIKit.framework", 295 "UIKit.framework",
294 ] 296 ]
295 } else if (is_linux) { 297 } else if (is_linux) {
296 libs = [ 298 libs = [
297 "dl", 299 "dl",
298 ] 300 ]
299 } 301 }
300 } 302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698