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

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

Issue 1134623003: GN: fixes for the official build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »
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/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build/module_args/v8.gni") 10 import("//build/module_args/v8.gni")
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 # TODO(brettw) Most of these should be removed. Instead of global feature 36 # TODO(brettw) Most of these should be removed. Instead of global feature
37 # flags, we should have more modular flags that apply only to a target and its 37 # flags, we should have more modular flags that apply only to a target and its
38 # dependents. For example, depending on the "x11" meta-target should define 38 # dependents. For example, depending on the "x11" meta-target should define
39 # USE_X11 for all dependents so that everything that could use X11 gets the 39 # USE_X11 for all dependents so that everything that could use X11 gets the
40 # define, but anything that doesn't depend on X11 doesn't see it. 40 # define, but anything that doesn't depend on X11 doesn't see it.
41 # 41 #
42 # For now we define these globally to match the current GYP build. 42 # For now we define these globally to match the current GYP build.
43 config("feature_flags") { 43 config("feature_flags") {
44 # TODO(brettw) most of these need to be parameterized. 44 # TODO(brettw) this probably needs to be parameterized.
45 defines = [ 45 defines = [
46 "CHROMIUM_BUILD",
47 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. 46 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere.
48 ] 47 ]
49 48
50 if (cld_version > 0) { 49 if (cld_version > 0) {
51 defines += [ "CLD_VERSION=$cld_version" ] 50 defines += [ "CLD_VERSION=$cld_version" ]
52 } 51 }
53 if (enable_mdns) { 52 if (enable_mdns) {
54 defines += [ "ENABLE_MDNS=1" ] 53 defines += [ "ENABLE_MDNS=1" ]
55 } 54 }
56 if (enable_notifications) { 55 if (enable_notifications) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 231 }
233 if (safe_browsing_mode == 1) { 232 if (safe_browsing_mode == 1) {
234 defines += [ "FULL_SAFE_BROWSING" ] 233 defines += [ "FULL_SAFE_BROWSING" ]
235 defines += [ "SAFE_BROWSING_CSD" ] 234 defines += [ "SAFE_BROWSING_CSD" ]
236 defines += [ "SAFE_BROWSING_DB_LOCAL" ] 235 defines += [ "SAFE_BROWSING_DB_LOCAL" ]
237 defines += [ "SAFE_BROWSING_SERVICE" ] 236 defines += [ "SAFE_BROWSING_SERVICE" ]
238 } else if (safe_browsing_mode == 2) { 237 } else if (safe_browsing_mode == 2) {
239 defines += [ "MOBILE_SAFE_BROWSING" ] 238 defines += [ "MOBILE_SAFE_BROWSING" ]
240 defines += [ "SAFE_BROWSING_SERVICE" ] 239 defines += [ "SAFE_BROWSING_SERVICE" ]
241 } 240 }
241 if (is_official_build) {
242 defines += [ "OFFICIAL_BUILD" ]
243 }
244 if (is_chrome_branded) {
245 defines += [ "GOOGLE_CHROME_BUILD" ]
246 } else {
247 defines += [ "CHROMIUM_BUILD" ]
248 }
242 } 249 }
243 250
244 # Debug/release ---------------------------------------------------------------- 251 # Debug/release ----------------------------------------------------------------
245 252
246 config("debug") { 253 config("debug") {
247 defines = [ 254 defines = [
248 "_DEBUG", 255 "_DEBUG",
249 "DYNAMIC_ANNOTATIONS_ENABLED=1", 256 "DYNAMIC_ANNOTATIONS_ENABLED=1",
250 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 257 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
251 ] 258 ]
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 "CoreFoundation.framework", 346 "CoreFoundation.framework",
340 "CoreGraphics.framework", 347 "CoreGraphics.framework",
341 "CoreText.framework", 348 "CoreText.framework",
342 "Foundation.framework", 349 "Foundation.framework",
343 "UIKit.framework", 350 "UIKit.framework",
344 ] 351 ]
345 } else if (is_linux) { 352 } else if (is_linux) {
346 libs = [ "dl" ] 353 libs = [ "dl" ]
347 } 354 }
348 } 355 }
OLDNEW
« no previous file with comments | « no previous file | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698