blob: 2f48b5468e533dfe4ab575ddb24ca9ce55983863 [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",
rouslanbb7522e2017-03-28 17:06:1941 "//components/payments/content/utility",
amistryab6f6ae2016-05-11 06:44:1842 "//components/safe_json/utility",
ghose.tapu4183aa22015-01-16 04:21:4843 "//components/search_engines",
[email protected]0e256aa2014-07-24 23:10:5344 "//components/strings",
rsleevi24f64dc22015-08-07 21:39:2145 "//components/url_formatter",
tfarina02f77a42015-12-17 22:38:2346 "//content/public/child",
[email protected]3b816b92014-06-23 22:28:1547 "//content/public/common",
48 "//content/public/utility",
tfarina02f77a42015-12-17 22:38:2349 "//courgette:courgette_lib",
brettw00899e62016-11-12 02:10:1750 "//extensions/features",
rockota628d0b2017-02-09 08:40:1551 "//ipc",
[email protected]0e256aa2014-07-24 23:10:5352 "//media",
tfarina02f77a42015-12-17 22:38:2353 "//net:net_with_v8",
Brett Wilson65f951c2016-11-03 22:06:1254 "//printing/features",
rockot734fb662016-10-15 16:41:3055 "//services/service_manager/public/cpp",
[email protected]3b816b92014-06-23 22:28:1556 "//skia",
tfarina02f77a42015-12-17 22:38:2357 "//sql",
[email protected]3b816b92014-06-23 22:28:1558 "//third_party/libxml",
[email protected]3b816b92014-06-23 22:28:1559 ]
60
rsesek65d31352015-06-08 22:53:4461 if (!is_android) {
brettwe0703302016-08-30 21:40:4662 sources += [
63 "importer/bookmark_html_reader.cc",
64 "importer/bookmark_html_reader.h",
65 "importer/bookmarks_file_importer.cc",
66 "importer/bookmarks_file_importer.h",
67 "importer/edge_database_reader_win.cc",
68 "importer/edge_database_reader_win.h",
69 "importer/edge_importer_win.cc",
70 "importer/edge_importer_win.h",
71 "importer/external_process_importer_bridge.cc",
72 "importer/external_process_importer_bridge.h",
73 "importer/favicon_reencode.cc",
74 "importer/favicon_reencode.h",
75 "importer/firefox_importer.cc",
76 "importer/firefox_importer.h",
77 "importer/ie_importer_win.cc",
78 "importer/ie_importer_win.h",
79 "importer/importer.cc",
80 "importer/importer.h",
81 "importer/importer_creator.cc",
82 "importer/importer_creator.h",
83 "importer/nss_decryptor.cc",
84 "importer/nss_decryptor.h",
85 "importer/nss_decryptor_mac.h",
86 "importer/nss_decryptor_mac.mm",
87 "importer/nss_decryptor_win.cc",
88 "importer/nss_decryptor_win.h",
89 "importer/safari_importer.h",
90 "importer/safari_importer.mm",
91 "profile_import_handler.cc",
92 "profile_import_handler.h",
93 ]
amistryfaa231a42015-05-20 01:49:1294 deps += [
95 "//chrome/common:mojo_bindings",
tibell1d83f162016-12-01 01:30:0496 "//chrome/common/importer:interfaces",
amistryfaa231a42015-05-20 01:49:1297 "//net:net_utility_services",
rockote0437032017-03-25 02:49:0098 "//services/data_decoder:lib",
amistryfaa231a42015-05-20 01:49:1299 ]
[email protected]3b816b92014-06-23 22:28:15100 }
101
Brett Wilson642752142014-08-26 19:05:21102 if (enable_extensions) {
brettwe0703302016-08-30 21:40:46103 sources += [
104 "extensions/extensions_handler.cc",
105 "extensions/extensions_handler.h",
106 "image_writer/disk_unmounter_mac.cc",
107 "image_writer/disk_unmounter_mac.h",
108 "image_writer/error_messages.cc",
109 "image_writer/error_messages.h",
110 "image_writer/image_writer.cc",
111 "image_writer/image_writer.h",
112 "image_writer/image_writer_handler.cc",
113 "image_writer/image_writer_handler.h",
114 "image_writer/image_writer_mac.cc",
115 "image_writer/image_writer_win.cc",
116 "media_galleries/ipc_data_source.cc",
117 "media_galleries/ipc_data_source.h",
118 "media_galleries/itunes_pref_parser_win.cc",
119 "media_galleries/itunes_pref_parser_win.h",
120 "media_galleries/media_metadata_parser.cc",
121 "media_galleries/media_metadata_parser.h",
122 ]
[email protected]ddc6a122014-06-27 04:52:32123 deps += [
124 "//chrome/common/extensions/api",
rockot38130232014-11-06 18:50:01125 "//extensions/utility",
[email protected]ddc6a122014-06-27 04:52:32126 ]
127
scottmga266f952014-12-03 20:47:10128 public_deps += [ "//chrome/common/extensions/api" ]
[email protected]ddc6a122014-06-27 04:52:32129
jschuh05b47b882015-02-25 21:40:57130 # Prevent wininet from loading in the renderer. http://crbug.com/460679
131 if (is_win) {
132 ldflags = [ "/DELAYLOAD:wininet.dll" ]
forshaw57e6480812015-12-03 14:08:12133
134 # Add ESE library for Edge Import support.
135 libs = [ "esent.lib" ]
136 ldflags += [ "/DELAYLOAD:esent.dll" ]
jschuh05b47b882015-02-25 21:40:57137 }
138
[email protected]ddc6a122014-06-27 04:52:32139 if (is_win || is_mac) {
brettwe0703302016-08-30 21:40:46140 sources += [
141 "media_galleries/iapps_xml_utils.cc",
142 "media_galleries/iapps_xml_utils.h",
143 "media_galleries/itunes_library_parser.cc",
144 "media_galleries/itunes_library_parser.h",
145 "media_galleries/picasa_album_table_reader.cc",
146 "media_galleries/picasa_album_table_reader.h",
147 "media_galleries/picasa_albums_indexer.cc",
148 "media_galleries/picasa_albums_indexer.h",
149 "media_galleries/pmp_column_reader.cc",
150 "media_galleries/pmp_column_reader.h",
151 ]
[email protected]0e256aa2014-07-24 23:10:53152 deps += [ "//components/wifi" ]
[email protected]ddc6a122014-06-27 04:52:32153 } else {
154 sources += [ "image_writer/image_writer_stub.cc" ]
155 }
[email protected]3b816b92014-06-23 22:28:15156 }
157
davidben2bcbc6b2015-04-22 02:36:41158 if (use_nss_certs) {
159 sources += [
160 "importer/nss_decryptor_system_nss.cc",
161 "importer/nss_decryptor_system_nss.h",
162 ]
163 deps += [
164 "//crypto",
165 "//crypto:platform",
166 ]
[email protected]3b816b92014-06-23 22:28:15167 }
168
weili5addafe2016-05-24 02:46:23169 if (enable_print_preview || (enable_basic_printing && is_win)) {
170 deps += [ "//pdf" ]
171 } else {
[email protected]3b816b92014-06-23 22:28:15172 sources -= [
173 "printing_handler.cc",
174 "printing_handler.h",
175 ]
176 }
177
rseseka8abcd32016-09-12 23:00:04178 if (is_mac && safe_browsing_mode == 1) {
179 deps += [ "//chrome/utility/safe_browsing/mac" ]
Robert Sesek8e3b34f2016-05-17 20:25:17180 }
zhaobin687cddcf2017-03-27 22:16:11181
182 if (enable_media_router) {
183 sources += [
184 "media_router/dial_device_description_parser_impl.cc",
185 "media_router/dial_device_description_parser_impl.h",
186 ]
187 }
Robert Sesek8e3b34f2016-05-17 20:25:17188}