OLD | NEW |
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 29 matching lines...) Expand all Loading... |
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) this probably needs to be parameterized. | 44 # TODO(brettw) this probably needs to be parameterized. |
45 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe
re. | 45 defines = [ "V8_DEPRECATION_WARNINGS" ] # Don't use deprecated V8 APIs anywhe
re. |
46 | 46 |
47 if (cld_version > 0) { | 47 if (cld_version > 0) { |
48 defines += [ "CLD_VERSION=$cld_version" ] | 48 defines += [ "CLD_VERSION=$cld_version" ] |
49 } | 49 } |
50 if (enable_basic_printing || enable_print_preview) { | |
51 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. | |
52 defines += [ "ENABLE_PRINTING=1" ] | |
53 if (enable_basic_printing) { | |
54 # Enable basic printing support and UI. | |
55 defines += [ "ENABLE_BASIC_PRINTING=1" ] | |
56 } | |
57 if (enable_print_preview) { | |
58 # Enable printing with print preview. | |
59 # Can be defined without ENABLE_BASIC_PRINTING. | |
60 defines += [ "ENABLE_PRINT_PREVIEW=1" ] | |
61 } | |
62 } | |
63 if (dont_embed_build_metadata) { | 50 if (dont_embed_build_metadata) { |
64 defines += [ "DONT_EMBED_BUILD_METADATA" ] | 51 defines += [ "DONT_EMBED_BUILD_METADATA" ] |
65 } | 52 } |
66 if (dcheck_always_on) { | 53 if (dcheck_always_on) { |
67 defines += [ "DCHECK_ALWAYS_ON=1" ] | 54 defines += [ "DCHECK_ALWAYS_ON=1" ] |
68 } | 55 } |
69 if (use_udev) { | 56 if (use_udev) { |
70 # TODO(brettw) should probably be "=1". | 57 # TODO(brettw) should probably be "=1". |
71 defines += [ "USE_UDEV" ] | 58 defines += [ "USE_UDEV" ] |
72 } | 59 } |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 "CoreFoundation.framework", | 219 "CoreFoundation.framework", |
233 "CoreGraphics.framework", | 220 "CoreGraphics.framework", |
234 "CoreText.framework", | 221 "CoreText.framework", |
235 "Foundation.framework", | 222 "Foundation.framework", |
236 "UIKit.framework", | 223 "UIKit.framework", |
237 ] | 224 ] |
238 } else if (is_linux) { | 225 } else if (is_linux) { |
239 libs = [ "dl" ] | 226 libs = [ "dl" ] |
240 } | 227 } |
241 } | 228 } |
OLD | NEW |