blob: 7b8e1d04006164509f02e31981fa09bb77b7e3b5 [file] [log] [blame]
[email protected]3b816b92014-06-23 22:28:151# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/crypto.gni")
6import("//build/config/features.gni")
7
scottmga266f952014-12-03 20:47:108gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_utility.gypi") ],
10 "scope",
11 [ "../chrome_utility.gypi" ])
[email protected]3b816b92014-06-23 22:28:1512
13static_library("utility") {
14 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
[email protected]1e8205e82014-07-08 10:54:2415 defines = []
[email protected]3b816b92014-06-23 22:28:1516
Brett Wilsone53895272014-09-23 23:41:4617 public_deps = []
[email protected]3b816b92014-06-23 22:28:1518 deps = [
19 "//base",
[email protected]0e256aa2014-07-24 23:10:5320 "//components/strings",
21 "//components/url_fixer",
[email protected]3b816b92014-06-23 22:28:1522 "//content/public/common",
23 "//content/public/utility",
[email protected]0e256aa2014-07-24 23:10:5324 "//media",
[email protected]3b816b92014-06-23 22:28:1525 "//skia",
26 "//third_party/libxml",
27 "//chrome:resources",
28 "//chrome:strings",
29 "//chrome/common",
[email protected]3b816b92014-06-23 22:28:1530 ]
31
[email protected]ddc6a122014-06-27 04:52:3232 if (!is_android) {
scottmga266f952014-12-03 20:47:1033 sources +=
34 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..")
[email protected]3b816b92014-06-23 22:28:1535 }
36
Brett Wilson642752142014-08-26 19:05:2137 if (enable_extensions) {
[email protected]ddc6a122014-06-27 04:52:3238 deps += [
39 "//chrome/common/extensions/api",
rockot38130232014-11-06 18:50:0140 "//extensions/utility",
scottmga266f952014-12-03 20:47:1041
[email protected]ddc6a122014-06-27 04:52:3242 #"//third_party/libexif", TODO(GYP)
43 ]
44
scottmga266f952014-12-03 20:47:1045 public_deps += [ "//chrome/common/extensions/api" ]
[email protected]ddc6a122014-06-27 04:52:3246
scottmga266f952014-12-03 20:47:1047 sources +=
48 rebase_path(gypi_values.chrome_utility_extensions_sources, ".", "..")
49 sources +=
50 rebase_path(gypi_values.chrome_utility_shared_media_sources, ".", "..")
[email protected]ddc6a122014-06-27 04:52:3251
52 if (is_win || is_mac) {
scottmga266f952014-12-03 20:47:1053 sources +=
54 rebase_path(gypi_values.chrome_utility_win_mac_media_gallery_sources,
55 ".",
56 "..")
[email protected]0e256aa2014-07-24 23:10:5357 deps += [ "//components/wifi" ]
[email protected]ddc6a122014-06-27 04:52:3258 } else {
59 sources += [ "image_writer/image_writer_stub.cc" ]
60 }
61
62 if (is_mac) {
scottmga266f952014-12-03 20:47:1063 sources +=
64 rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
65 ".",
66 "..")
[email protected]ddc6a122014-06-27 04:52:3267 }
[email protected]3b816b92014-06-23 22:28:1568 }
69
Brett Wilson642752142014-08-26 19:05:2170 if (use_openssl) {
James Robinson2ed4d692014-09-17 05:20:5871 if (!is_win && !is_mac && !is_android) {
Brett Wilson642752142014-08-26 19:05:2172 sources -= [ "importer/nss_decryptor.cc" ]
73 }
74 } else { # !use_openssl
[email protected]3b816b92014-06-23 22:28:1575 if (!is_win && !is_mac) {
76 sources += [
77 "importer/nss_decryptor_system_nss.cc",
78 "importer/nss_decryptor_system_nss.h",
79 ]
80 deps += [
81 "//crypto",
82 "//crypto:platform",
83 ]
84 }
85 }
86
vitalybuka93eea402014-11-05 23:47:1587 if (!enable_print_preview) {
[email protected]3b816b92014-06-23 22:28:1588 sources -= [
89 "printing_handler.cc",
90 "printing_handler.h",
91 ]
92 }
93
94 if (!enable_mdns) {
95 sources -= [
96 "local_discovery/service_discovery_message_handler.cc",
97 "local_discovery/service_discovery_message_handler.h",
98 ]
99 }
[email protected]1e8205e82014-07-08 10:54:24100
101 if (safe_browsing_mode == 1) {
102 defines += [ "FULL_SAFE_BROWSING" ]
103 }
[email protected]3b816b92014-06-23 22:28:15104}