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/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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 # TODO(brettw) should probably be "=1" | 47 # TODO(brettw) should probably be "=1" |
48 defines += [ "ENABLE_PEPPER_CDMS" ] | 48 defines += [ "ENABLE_PEPPER_CDMS" ] |
49 } | 49 } |
50 if (enable_browser_cdms) { | 50 if (enable_browser_cdms) { |
51 # TODO(brettw) should probably be "=1" | 51 # TODO(brettw) should probably be "=1" |
52 defines += [ "ENABLE_BROWSER_CDMS" ] | 52 defines += [ "ENABLE_BROWSER_CDMS" ] |
53 } | 53 } |
54 if (enable_plugins) { | 54 if (enable_plugins) { |
55 defines += [ "ENABLE_PLUGINS=1" ] | 55 defines += [ "ENABLE_PLUGINS=1" ] |
56 } | 56 } |
57 if (printing_mode > 0) { | 57 if (enable_basic_printing || enable_print_preview) { |
58 defines += [ "ENABLE_PRINTING=1", "ENABLE_BASIC_PRINTING=1" ] | 58 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. |
59 if (printing_mode < 2) { | 59 defines += [ "ENABLE_PRINTING=1" ] |
| 60 if (enable_basic_printing) { |
| 61 # Enable basic printing support and UI. |
| 62 defines += [ "ENABLE_BASIC_PRINTING=1" ] |
| 63 } |
| 64 if (enable_print_preview) { |
| 65 # Enable printing with print preview. |
| 66 # Can be defined without ENABLE_BASIC_PRINTING. |
60 defines += [ "ENABLE_PRINT_PREVIEW=1" ] | 67 defines += [ "ENABLE_PRINT_PREVIEW=1" ] |
61 } | 68 } |
62 } | 69 } |
63 if (enable_spellcheck) { | 70 if (enable_spellcheck) { |
64 defines += [ "ENABLE_SPELLCHECK=1" ] | 71 defines += [ "ENABLE_SPELLCHECK=1" ] |
65 } | 72 } |
66 if (dont_embed_build_metadata) { | 73 if (dont_embed_build_metadata) { |
67 defines += [ "DONT_EMBED_BUILD_METADATA" ] | 74 defines += [ "DONT_EMBED_BUILD_METADATA" ] |
68 } | 75 } |
69 if (use_udev) { | 76 if (use_udev) { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 "CoreText.framework", | 306 "CoreText.framework", |
300 "Foundation.framework", | 307 "Foundation.framework", |
301 "UIKit.framework", | 308 "UIKit.framework", |
302 ] | 309 ] |
303 } else if (is_linux) { | 310 } else if (is_linux) { |
304 libs = [ | 311 libs = [ |
305 "dl", | 312 "dl", |
306 ] | 313 ] |
307 } | 314 } |
308 } | 315 } |
OLD | NEW |