OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 | 6 |
7 gypi_values = exec_script( | 7 gypi_values = exec_script( |
8 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
9 [ rebase_path("../chrome_common.gypi") ], | 9 [ rebase_path("../chrome_common.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ".", "//chrome") | 138 ".", "//chrome") |
139 } | 139 } |
140 | 140 |
141 if (enable_nacl) { | 141 if (enable_nacl) { |
142 deps += [ | 142 deps += [ |
143 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) | 143 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) |
144 ] | 144 ] |
145 } | 145 } |
146 | 146 |
147 # Printing. | 147 # Printing. |
148 if (printing_mode == 0) { | 148 if (!enable_basic_printing && !enable_print_preview) { |
149 sources -= [ | 149 sources -= [ |
150 "print_messages.cc", | 150 "print_messages.cc", |
151 "print_messages.h", | 151 "print_messages.h", |
152 ] | 152 ] |
153 } else { | 153 } else { |
154 deps += [ "//printing" ] | 154 deps += [ "//printing" ] |
155 if (printing_mode == 1) { | 155 if (enable_print_preview) { |
156 # Full printing support. | 156 # Full printing support. |
157 sources += rebase_path( | 157 sources += rebase_path( |
158 gypi_values.chrome_common_service_process_sources, | 158 gypi_values.chrome_common_service_process_sources, |
159 ".", "//chrome") | 159 ".", "//chrome") |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 if (enable_service_discovery) { | 163 if (enable_service_discovery) { |
164 sources += [ | 164 sources += [ |
165 "local_discovery/service_discovery_client.cc", | 165 "local_discovery/service_discovery_client.cc", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 314 } |
315 | 315 |
316 if (enable_extensions) { | 316 if (enable_extensions) { |
317 sources += [ | 317 sources += [ |
318 "extensions/extension_test_util.cc", | 318 "extensions/extension_test_util.cc", |
319 "extensions/extension_test_util.h", | 319 "extensions/extension_test_util.h", |
320 ] | 320 ] |
321 } | 321 } |
322 | 322 |
323 } | 323 } |
OLD | NEW |