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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
| 7 import("//printing/features/features.gni") |
7 import("//services/service_manager/public/service_manifest.gni") | 8 import("//services/service_manager/public/service_manifest.gni") |
8 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
9 | 10 |
10 # This target is for dependency tracking for the command ID header. | 11 # This target is for dependency tracking for the command ID header. |
11 source_set("command_ids") { | 12 source_set("command_ids") { |
12 sources = [ | 13 sources = [ |
13 "chrome_command_ids.h", | 14 "chrome_command_ids.h", |
14 ] | 15 ] |
15 } | 16 } |
16 | 17 |
17 # On Windows, links chrome_dll.rc. On other platforms, does nothing so you can | 18 # On Windows, links chrome_dll.rc. On other platforms, does nothing so you can |
18 # unconditionally depend on it. | 19 # unconditionally depend on it. |
19 source_set("chrome_dll_resources") { | 20 source_set("chrome_dll_resources") { |
20 # This source is added unconditionally for include checking on non-Windows | 21 # This source is added unconditionally for include checking on non-Windows |
21 # platforms. | 22 # platforms. |
22 sources = [ | 23 sources = [ |
23 "chrome_dll_resource.h", | 24 "chrome_dll_resource.h", |
24 ] | 25 ] |
25 if (is_win) { | 26 if (is_win) { |
26 sources += [ "chrome_dll.rc" ] | 27 sources += [ "chrome_dll.rc" ] |
| 28 if (enable_basic_printing) { |
| 29 # The resource compiler can only handle macro functions up to 31 chars |
| 30 # which the buildflag system produces for this. Make a define so we can |
| 31 # toggle off of the enable-basic-printing flag in the .rc file. |
| 32 defines = [ "ENABLE_BASIC_PRINTING_FOR_RC" ] |
| 33 } |
| 34 deps = [ |
| 35 "//printing/features", |
| 36 ] |
27 } | 37 } |
28 } | 38 } |
29 | 39 |
30 if (is_android) { | 40 if (is_android) { |
31 import("//build/config/android/rules.gni") | 41 import("//build/config/android/rules.gni") |
32 android_generated_java_resources = [ | 42 android_generated_java_resources = [ |
33 "java/res/values-am/generated_resources.xml", | 43 "java/res/values-am/generated_resources.xml", |
34 "java/res/values-ar/generated_resources.xml", | 44 "java/res/values-ar/generated_resources.xml", |
35 "java/res/values-bg/generated_resources.xml", | 45 "java/res/values-bg/generated_resources.xml", |
36 "java/res/values-ca/generated_resources.xml", | 46 "java/res/values-ca/generated_resources.xml", |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 "//chrome/child", | 310 "//chrome/child", |
301 "//chrome/common", | 311 "//chrome/common", |
302 "//chrome/gpu", | 312 "//chrome/gpu", |
303 "//chrome/renderer", | 313 "//chrome/renderer", |
304 "//chrome/utility", | 314 "//chrome/utility", |
305 "//components/crash/content/app", | 315 "//components/crash/content/app", |
306 "//components/crash/content/app:lib", | 316 "//components/crash/content/app:lib", |
307 "//components/startup_metric_utils/browser:lib", | 317 "//components/startup_metric_utils/browser:lib", |
308 "//content/public/app:both", | 318 "//content/public/app:both", |
309 "//content/public/common", | 319 "//content/public/common", |
| 320 "//printing/features", |
310 "//ui/base", | 321 "//ui/base", |
311 ] | 322 ] |
312 | 323 |
313 if (is_mac) { | 324 if (is_mac) { |
314 sources += [ "chrome_main_mac.mm" ] | 325 sources += [ "chrome_main_mac.mm" ] |
315 | 326 |
316 deps += [ "//chrome:chrome_framework" ] | 327 deps += [ "//chrome:chrome_framework" ] |
317 } | 328 } |
318 | 329 |
319 if (is_win) { | 330 if (is_win) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 group("service_manifests") { | 417 group("service_manifests") { |
407 data_deps = [ | 418 data_deps = [ |
408 ":chrome_content_browser_manifest", | 419 ":chrome_content_browser_manifest", |
409 ":chrome_content_gpu_manifest", | 420 ":chrome_content_gpu_manifest", |
410 ":chrome_content_plugin_manifest", | 421 ":chrome_content_plugin_manifest", |
411 ":chrome_content_renderer_manifest", | 422 ":chrome_content_renderer_manifest", |
412 ":chrome_content_utility_manifest", | 423 ":chrome_content_utility_manifest", |
413 ] | 424 ] |
414 } | 425 } |
415 } | 426 } |
OLD | NEW |