blob: 7da4a0f8973f4162b9b9f395187a7361e83b9658 [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")
brettw5ff98192015-10-22 06:36:157import("//build/config/sysroot.gni")
brettw00899e62016-11-12 02:10:178import("//extensions/features/features.gni")
Brett Wilson65f951c2016-11-03 22:06:129import("//printing/features/features.gni")
[email protected]3b816b92014-06-23 22:28:1510
[email protected]3b816b92014-06-23 22:28:1511static_library("utility") {
brettwe0703302016-08-30 21:40:4612 sources = [
13 "chrome_content_utility_client.cc",
14 "chrome_content_utility_client.h",
brettwe0703302016-08-30 21:40:4615 "cloud_print/bitmap_image.cc",
16 "cloud_print/bitmap_image.h",
17 "cloud_print/pwg_encoder.cc",
18 "cloud_print/pwg_encoder.h",
brettwe0703302016-08-30 21:40:4619 "ipc_shell_handler_win.cc",
20 "ipc_shell_handler_win.h",
21 "printing_handler.cc",
22 "printing_handler.h",
23 "shell_handler_impl_win.cc",
24 "shell_handler_impl_win.h",
25 "utility_message_handler.h",
26 ]
27
[email protected]1e8205e82014-07-08 10:54:2428 defines = []
rsesek99679aa2016-06-28 21:24:1729 configs += [
30 "//build/config:precompiled_headers",
31 "//build/config/compiler:wexit_time_destructors",
32 ]
[email protected]3b816b92014-06-23 22:28:1533
Brett Wilsone53895272014-09-23 23:41:4634 public_deps = []
[email protected]3b816b92014-06-23 22:28:1535 deps = [
36 "//base",
agrieved7a71c882015-11-20 19:53:2837 "//chrome:resources",
38 "//chrome:strings",
39 "//chrome/common",
amistry6f72f042016-04-05 20:42:0740 "//chrome/common:mojo_bindings",
amistryab6f6ae2016-05-11 06:44:1841 "//components/safe_json/utility",
ghose.tapu4183aa22015-01-16 04:21:4842 "//components/search_engines",
[email protected]0e256aa2014-07-24 23:10:5343 "//components/strings",
rsleevi24f64dc22015-08-07 21:39:2144 "//components/url_formatter",
tfarina02f77a42015-12-17 22:38:2345 "//content/public/child",
[email protected]3b816b92014-06-23 22:28:1546 "//content/public/common",
47 "//content/public/utility",
tfarina02f77a42015-12-17 22:38:2348 "//courgette:courgette_lib",
brettw00899e62016-11-12 02:10:1749 "//extensions/features",
rockota628d0b2017-02-09 08:40:1550 "//ipc",
[email protected]0e256aa2014-07-24 23:10:5351 "//media",
tfarina02f77a42015-12-17 22:38:2352 "//net:net_with_v8",
Brett Wilson65f951c2016-11-03 22:06:1253 "//printing/features",
rockot734fb662016-10-15 16:41:3054 "//services/service_manager/public/cpp",
[email protected]3b816b92014-06-23 22:28:1555 "//skia",
tfarina02f77a42015-12-17 22:38:2356 "//sql",
[email protected]3b816b92014-06-23 22:28:1557 "//third_party/libxml",
[email protected]3b816b92014-06-23 22:28:1558 ]
59
rsesek65d31352015-06-08 22:53:4460 if (!is_android) {
brettwe0703302016-08-30 21:40:4661 sources += [
62 "importer/bookmark_html_reader.cc",
63 "importer/bookmark_html_reader.h",
64 "importer/bookmarks_file_importer.cc",
65 "importer/bookmarks_file_importer.h",
66 "importer/edge_database_reader_win.cc",
67 "importer/edge_database_reader_win.h",
68 "importer/edge_importer_win.cc",
69 "importer/edge_importer_win.h",
70 "importer/external_process_importer_bridge.cc",
71 "importer/external_process_importer_bridge.h",
72 "importer/favicon_reencode.cc",
73 "importer/favicon_reencode.h",
74 "importer/firefox_importer.cc",
75 "importer/firefox_importer.h",
76 "importer/ie_importer_win.cc",
77 "importer/ie_importer_win.h",
78 "importer/importer.cc",
79 "importer/importer.h",
80 "importer/importer_creator.cc",
81 "importer/importer_creator.h",
82 "importer/nss_decryptor.cc",
83 "importer/nss_decryptor.h",
84 "importer/nss_decryptor_mac.h",
85 "importer/nss_decryptor_mac.mm",
86 "importer/nss_decryptor_win.cc",
87 "importer/nss_decryptor_win.h",
88 "importer/safari_importer.h",
89 "importer/safari_importer.mm",
90 "profile_import_handler.cc",
91 "profile_import_handler.h",
92 ]
amistryfaa231a42015-05-20 01:49:1293 deps += [
94 "//chrome/common:mojo_bindings",
tibell1d83f162016-12-01 01:30:0495 "//chrome/common/importer:interfaces",
amistryfaa231a42015-05-20 01:49:1296 "//net:net_utility_services",
rockote0437032017-03-25 02:49:0097 "//services/data_decoder:lib",
amistryfaa231a42015-05-20 01:49:1298 ]
[email protected]3b816b92014-06-23 22:28:1599 }
100
rouslan8fdbfb242017-03-15 01:12:49101 if (is_android) {
102 deps += [ "//components/payments/content/android/utility" ]
103 }
104
Brett Wilson642752142014-08-26 19:05:21105 if (enable_extensions) {
brettwe0703302016-08-30 21:40:46106 sources += [
107 "extensions/extensions_handler.cc",
108 "extensions/extensions_handler.h",
109 "image_writer/disk_unmounter_mac.cc",
110 "image_writer/disk_unmounter_mac.h",
111 "image_writer/error_messages.cc",
112 "image_writer/error_messages.h",
113 "image_writer/image_writer.cc",
114 "image_writer/image_writer.h",
115 "image_writer/image_writer_handler.cc",
116 "image_writer/image_writer_handler.h",
117 "image_writer/image_writer_mac.cc",
118 "image_writer/image_writer_win.cc",
119 "media_galleries/ipc_data_source.cc",
120 "media_galleries/ipc_data_source.h",
121 "media_galleries/itunes_pref_parser_win.cc",
122 "media_galleries/itunes_pref_parser_win.h",
123 "media_galleries/media_metadata_parser.cc",
124 "media_galleries/media_metadata_parser.h",
125 ]
[email protected]ddc6a122014-06-27 04:52:32126 deps += [
127 "//chrome/common/extensions/api",
rockot38130232014-11-06 18:50:01128 "//extensions/utility",
[email protected]ddc6a122014-06-27 04:52:32129 ]
130
scottmga266f952014-12-03 20:47:10131 public_deps += [ "//chrome/common/extensions/api" ]
[email protected]ddc6a122014-06-27 04:52:32132
jschuh05b47b882015-02-25 21:40:57133 # Prevent wininet from loading in the renderer. http://crbug.com/460679
134 if (is_win) {
135 ldflags = [ "/DELAYLOAD:wininet.dll" ]
forshaw57e6480812015-12-03 14:08:12136
137 # Add ESE library for Edge Import support.
138 libs = [ "esent.lib" ]
139 ldflags += [ "/DELAYLOAD:esent.dll" ]
jschuh05b47b882015-02-25 21:40:57140 }
141
[email protected]ddc6a122014-06-27 04:52:32142 if (is_win || is_mac) {
brettwe0703302016-08-30 21:40:46143 sources += [
144 "media_galleries/iapps_xml_utils.cc",
145 "media_galleries/iapps_xml_utils.h",
146 "media_galleries/itunes_library_parser.cc",
147 "media_galleries/itunes_library_parser.h",
148 "media_galleries/picasa_album_table_reader.cc",
149 "media_galleries/picasa_album_table_reader.h",
150 "media_galleries/picasa_albums_indexer.cc",
151 "media_galleries/picasa_albums_indexer.h",
152 "media_galleries/pmp_column_reader.cc",
153 "media_galleries/pmp_column_reader.h",
154 ]
[email protected]0e256aa2014-07-24 23:10:53155 deps += [ "//components/wifi" ]
[email protected]ddc6a122014-06-27 04:52:32156 } else {
157 sources += [ "image_writer/image_writer_stub.cc" ]
158 }
[email protected]3b816b92014-06-23 22:28:15159 }
160
davidben2bcbc6b2015-04-22 02:36:41161 if (use_nss_certs) {
162 sources += [
163 "importer/nss_decryptor_system_nss.cc",
164 "importer/nss_decryptor_system_nss.h",
165 ]
166 deps += [
167 "//crypto",
168 "//crypto:platform",
169 ]
[email protected]3b816b92014-06-23 22:28:15170 }
171
weili5addafe2016-05-24 02:46:23172 if (enable_print_preview || (enable_basic_printing && is_win)) {
173 deps += [ "//pdf" ]
174 } else {
[email protected]3b816b92014-06-23 22:28:15175 sources -= [
176 "printing_handler.cc",
177 "printing_handler.h",
178 ]
179 }
180
rseseka8abcd32016-09-12 23:00:04181 if (is_mac && safe_browsing_mode == 1) {
182 deps += [ "//chrome/utility/safe_browsing/mac" ]
Robert Sesek8e3b34f2016-05-17 20:25:17183 }
zhaobin687cddcf2017-03-27 22:16:11184
185 if (enable_media_router) {
186 sources += [
187 "media_router/dial_device_description_parser_impl.cc",
188 "media_router/dial_device_description_parser_impl.h",
189 ]
190 }
Robert Sesek8e3b34f2016-05-17 20:25:17191}