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

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

Issue 1705533002: Remove yasm (and DONT_EMBED_BUILD_METADATA). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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 | « DEPS ('k') | third_party/yasm/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")
11 11
12 declare_args() { 12 declare_args() {
13 # When set, turns off the (normally-on) iterator debugging and related stuff 13 # When set, turns off the (normally-on) iterator debugging and related stuff
14 # that is normally turned on for Debug builds. These are generally useful for 14 # that is normally turned on for Debug builds. These are generally useful for
15 # catching bugs but in some cases may cause conflicts or excessive slowness. 15 # catching bugs but in some cases may cause conflicts or excessive slowness.
16 disable_iterator_debugging = false 16 disable_iterator_debugging = false
17 17
18 # Set to true to not store any build metadata, e.g. ifdef out all __DATE__
19 # and __TIME__. Set to 0 to reenable the use of these macros in the code
20 # base. See http://crbug.com/314403.
21 #
22 # Continue to embed build meta data in Official builds, basically the
23 # time it was built.
24 # TODO(maruel): This decision should be revisited because having an
25 # official deterministic build has high value too but MSVC toolset can't
26 # generate anything deterministic with WPO enabled AFAIK.
27 dont_embed_build_metadata = !is_official_build
28
29 # Set to true to enable dcheck in Release builds. 18 # Set to true to enable dcheck in Release builds.
30 dcheck_always_on = false 19 dcheck_always_on = false
31 20
32 # Set to true to compile with the OpenGL ES 2.0 conformance tests. 21 # Set to true to compile with the OpenGL ES 2.0 conformance tests.
33 internal_gles2_conform_tests = false 22 internal_gles2_conform_tests = false
34 } 23 }
35 24
36 # TODO(brettw) Most of these should be removed. Instead of global feature 25 # 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 26 # 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 27 # 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 28 # 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. 29 # define, but anything that doesn't depend on X11 doesn't see it.
41 # 30 #
42 # For now we define these globally to match the current GYP build. 31 # For now we define these globally to match the current GYP build.
43 config("feature_flags") { 32 config("feature_flags") {
44 # TODO(brettw) this probably needs to be parameterized. 33 # TODO(brettw) this probably needs to be parameterized.
45 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe re. 34 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe re.
46 35
47 if (cld_version > 0) { 36 if (cld_version > 0) {
48 defines += [ "CLD_VERSION=$cld_version" ] 37 defines += [ "CLD_VERSION=$cld_version" ]
49 } 38 }
50 if (dont_embed_build_metadata) {
51 defines += [ "DONT_EMBED_BUILD_METADATA" ]
52 }
53 if (dcheck_always_on) { 39 if (dcheck_always_on) {
54 defines += [ "DCHECK_ALWAYS_ON=1" ] 40 defines += [ "DCHECK_ALWAYS_ON=1" ]
55 } 41 }
56 if (use_udev) { 42 if (use_udev) {
57 # TODO(brettw) should probably be "=1". 43 # TODO(brettw) should probably be "=1".
58 defines += [ "USE_UDEV" ] 44 defines += [ "USE_UDEV" ]
59 } 45 }
60 if (use_openssl) { 46 if (use_openssl) {
61 defines += [ "USE_OPENSSL=1" ] 47 defines += [ "USE_OPENSSL=1" ]
62 } 48 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 "CoreFoundation.framework", 169 "CoreFoundation.framework",
184 "CoreGraphics.framework", 170 "CoreGraphics.framework",
185 "CoreText.framework", 171 "CoreText.framework",
186 "Foundation.framework", 172 "Foundation.framework",
187 "UIKit.framework", 173 "UIKit.framework",
188 ] 174 ]
189 } else if (is_linux) { 175 } else if (is_linux) {
190 libs = [ "dl" ] 176 libs = [ "dl" ]
191 } 177 }
192 } 178 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/yasm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698