OLD | NEW |
---|---|
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//printing/features/features.gni") | 6 import("//printing/features/features.gni") |
7 | 7 |
8 # This file is in a separate directory so all targets in the build can refer to | 8 # This file is in a separate directory so all targets in the build can refer to |
9 # the buildflag header to get the necessary preprocessor defines without | 9 # the buildflag header to get the necessary preprocessor defines without |
10 # bringing in any printing targets. | 10 # bringing in any printing targets. |
11 | 11 |
12 buildflag_header("features") { | 12 buildflag_header("features") { |
13 header = "features.h" | 13 header = "features.h" |
14 | 14 |
15 # enable_print_browser requires enable_print_preview | |
16 if (enable_print_browser) { | |
17 enable_print_preview = true | |
skau
2016/12/16 18:05:53
instead of forcing print_preview to be true, can y
| |
18 } | |
19 | |
15 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. | 20 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. |
16 enable_printing = enable_basic_printing || enable_print_preview | 21 enable_printing = enable_basic_printing || enable_print_preview |
17 | 22 |
18 flags = [ | 23 flags = [ |
19 "ENABLE_PRINTING=$enable_printing", | 24 "ENABLE_PRINTING=$enable_printing", |
20 "ENABLE_BASIC_PRINTING=$enable_basic_printing", | 25 "ENABLE_BASIC_PRINTING=$enable_basic_printing", |
21 "ENABLE_PRINT_PREVIEW=$enable_print_preview", | 26 "ENABLE_PRINT_PREVIEW=$enable_print_preview", |
27 "ENABLE_PRINT_BROWSER=$enable_print_browser", | |
22 ] | 28 ] |
23 } | 29 } |
OLD | NEW |