Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/utility/BUILD.gn

Issue 2298523002: Remove chrome utility GYP integration. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ],
11 "scope",
12 [ "../chrome_utility.gypi" ])
13
14 # Provides a way for the utility library to push ldflags to dependents. 9 # Provides a way for the utility library to push ldflags to dependents.
15 config("utility_ldflags") { 10 config("utility_ldflags") {
16 if (is_mac && safe_browsing_mode == 1) { 11 if (is_mac && safe_browsing_mode == 1) {
17 libs = [ "bz2" ] 12 libs = [ "bz2" ]
18 } 13 }
19 } 14 }
20 15
21 static_library("utility") { 16 static_library("utility") {
22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") 17 sources = [
18 "chrome_content_utility_client.cc",
19 "chrome_content_utility_client.h",
20 "chrome_content_utility_ipc_whitelist.cc",
21 "chrome_content_utility_ipc_whitelist.h",
22 "cloud_print/bitmap_image.cc",
23 "cloud_print/bitmap_image.h",
24 "cloud_print/pwg_encoder.cc",
25 "cloud_print/pwg_encoder.h",
26 "image_decoder_impl.cc",
27 "image_decoder_impl.h",
28 "ipc_shell_handler_win.cc",
29 "ipc_shell_handler_win.h",
30 "printing_handler.cc",
31 "printing_handler.h",
32 "shell_handler_impl_win.cc",
33 "shell_handler_impl_win.h",
34 "utility_message_handler.h",
35 ]
36
23 defines = [] 37 defines = []
24 configs += [ 38 configs += [
25 "//build/config:precompiled_headers", 39 "//build/config:precompiled_headers",
26 "//build/config/compiler:wexit_time_destructors", 40 "//build/config/compiler:wexit_time_destructors",
27 ] 41 ]
28 all_dependent_configs = [ ":utility_ldflags" ] 42 all_dependent_configs = [ ":utility_ldflags" ]
29 43
30 public_deps = [] 44 public_deps = []
31 deps = [ 45 deps = [
32 "//base", 46 "//base",
(...skipping 11 matching lines...) Expand all
44 "//courgette:courgette_lib", 58 "//courgette:courgette_lib",
45 "//media", 59 "//media",
46 "//net:net_with_v8", 60 "//net:net_with_v8",
47 "//services/shell/public/cpp", 61 "//services/shell/public/cpp",
48 "//skia", 62 "//skia",
49 "//sql", 63 "//sql",
50 "//third_party/libxml", 64 "//third_party/libxml",
51 ] 65 ]
52 66
53 if (!is_android) { 67 if (!is_android) {
68 sources += [
69 "importer/bookmark_html_reader.cc",
70 "importer/bookmark_html_reader.h",
71 "importer/bookmarks_file_importer.cc",
72 "importer/bookmarks_file_importer.h",
73 "importer/edge_database_reader_win.cc",
74 "importer/edge_database_reader_win.h",
75 "importer/edge_importer_win.cc",
76 "importer/edge_importer_win.h",
77 "importer/external_process_importer_bridge.cc",
78 "importer/external_process_importer_bridge.h",
79 "importer/favicon_reencode.cc",
80 "importer/favicon_reencode.h",
81 "importer/firefox_importer.cc",
82 "importer/firefox_importer.h",
83 "importer/ie_importer_win.cc",
84 "importer/ie_importer_win.h",
85 "importer/importer.cc",
86 "importer/importer.h",
87 "importer/importer_creator.cc",
88 "importer/importer_creator.h",
89 "importer/nss_decryptor.cc",
90 "importer/nss_decryptor.h",
91 "importer/nss_decryptor_mac.h",
92 "importer/nss_decryptor_mac.mm",
93 "importer/nss_decryptor_win.cc",
94 "importer/nss_decryptor_win.h",
95 "importer/safari_importer.h",
96 "importer/safari_importer.mm",
97 "profile_import_handler.cc",
98 "profile_import_handler.h",
99 ]
54 deps += [ 100 deps += [
55 "//chrome/common:mojo_bindings", 101 "//chrome/common:mojo_bindings",
56 "//net:net_utility_services", 102 "//net:net_utility_services",
57 ] 103 ]
58 sources +=
59 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..")
60 } 104 }
61 105
62 if (enable_extensions) { 106 if (enable_extensions) {
107 sources += [
108 "extensions/extensions_handler.cc",
109 "extensions/extensions_handler.h",
110 "image_writer/disk_unmounter_mac.cc",
111 "image_writer/disk_unmounter_mac.h",
112 "image_writer/error_messages.cc",
113 "image_writer/error_messages.h",
114 "image_writer/image_writer.cc",
115 "image_writer/image_writer.h",
116 "image_writer/image_writer_handler.cc",
117 "image_writer/image_writer_handler.h",
118 "image_writer/image_writer_mac.cc",
119 "image_writer/image_writer_win.cc",
120 "media_galleries/ipc_data_source.cc",
121 "media_galleries/ipc_data_source.h",
122 "media_galleries/itunes_pref_parser_win.cc",
123 "media_galleries/itunes_pref_parser_win.h",
124 "media_galleries/media_metadata_parser.cc",
125 "media_galleries/media_metadata_parser.h",
126 ]
63 deps += [ 127 deps += [
64 "//chrome/common/extensions/api", 128 "//chrome/common/extensions/api",
65 "//extensions/utility", 129 "//extensions/utility",
66 ] 130 ]
67 131
68 public_deps += [ "//chrome/common/extensions/api" ] 132 public_deps += [ "//chrome/common/extensions/api" ]
69 133
70 sources +=
71 rebase_path(gypi_values.chrome_utility_extensions_sources, ".", "..")
72 sources +=
73 rebase_path(gypi_values.chrome_utility_shared_media_sources, ".", "..")
74
75 # Prevent wininet from loading in the renderer. http://crbug.com/460679 134 # Prevent wininet from loading in the renderer. http://crbug.com/460679
76 if (is_win) { 135 if (is_win) {
77 ldflags = [ "/DELAYLOAD:wininet.dll" ] 136 ldflags = [ "/DELAYLOAD:wininet.dll" ]
78 137
79 # Add ESE library for Edge Import support. 138 # Add ESE library for Edge Import support.
80 libs = [ "esent.lib" ] 139 libs = [ "esent.lib" ]
81 ldflags += [ "/DELAYLOAD:esent.dll" ] 140 ldflags += [ "/DELAYLOAD:esent.dll" ]
82 } 141 }
83 142
84 if (is_win || is_mac) { 143 if (is_win || is_mac) {
85 sources += 144 sources += [
86 rebase_path(gypi_values.chrome_utility_win_mac_media_gallery_sources, 145 "media_galleries/iapps_xml_utils.cc",
87 ".", 146 "media_galleries/iapps_xml_utils.h",
88 "..") 147 "media_galleries/itunes_library_parser.cc",
148 "media_galleries/itunes_library_parser.h",
149 "media_galleries/picasa_album_table_reader.cc",
150 "media_galleries/picasa_album_table_reader.h",
151 "media_galleries/picasa_albums_indexer.cc",
152 "media_galleries/picasa_albums_indexer.h",
153 "media_galleries/pmp_column_reader.cc",
154 "media_galleries/pmp_column_reader.h",
155 ]
89 deps += [ "//components/wifi" ] 156 deps += [ "//components/wifi" ]
90 } else { 157 } else {
91 sources += [ "image_writer/image_writer_stub.cc" ] 158 sources += [ "image_writer/image_writer_stub.cc" ]
92 } 159 }
93 } 160 }
94 161
95 if (use_nss_certs) { 162 if (use_nss_certs) {
96 sources += [ 163 sources += [
97 "importer/nss_decryptor_system_nss.cc", 164 "importer/nss_decryptor_system_nss.cc",
98 "importer/nss_decryptor_system_nss.h", 165 "importer/nss_decryptor_system_nss.h",
99 ] 166 ]
100 deps += [ 167 deps += [
101 "//crypto", 168 "//crypto",
102 "//crypto:platform", 169 "//crypto:platform",
103 ] 170 ]
104 } 171 }
105 172
106 if (enable_print_preview || (enable_basic_printing && is_win)) { 173 if (enable_print_preview || (enable_basic_printing && is_win)) {
107 deps += [ "//pdf" ] 174 deps += [ "//pdf" ]
108 } else { 175 } else {
109 sources -= [ 176 sources -= [
110 "printing_handler.cc", 177 "printing_handler.cc",
111 "printing_handler.h", 178 "printing_handler.h",
112 ] 179 ]
113 } 180 }
114 181
115 if (safe_browsing_mode == 1) { 182 if (safe_browsing_mode == 1) {
116 sources += 183 sources += [
117 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") 184 "safe_browsing/mac/convert_big_endian.h",
185 "safe_browsing/mac/dmg_analyzer.cc",
186 "safe_browsing/mac/dmg_analyzer.h",
187 "safe_browsing/mac/dmg_iterator.cc",
188 "safe_browsing/mac/dmg_iterator.h",
189 "safe_browsing/mac/hfs.cc",
190 "safe_browsing/mac/hfs.h",
191 "safe_browsing/mac/read_stream.cc",
192 "safe_browsing/mac/read_stream.h",
193 "safe_browsing/mac/udif.cc",
194 "safe_browsing/mac/udif.h",
195 ]
118 deps += [ "//third_party/zlib" ] 196 deps += [ "//third_party/zlib" ]
119 } 197 }
120 } 198 }
121 199
122 if (is_mac) { 200 if (is_mac) {
123 import("//testing/libfuzzer/fuzzer_test.gni") 201 import("//testing/libfuzzer/fuzzer_test.gni")
124 fuzzer_test("safe_browsing_dmg_fuzzer") { 202 fuzzer_test("safe_browsing_dmg_fuzzer") {
125 sources = [ 203 sources = [
126 "safe_browsing/mac/convert_big_endian.h", 204 "safe_browsing/mac/convert_big_endian.h",
127 "safe_browsing/mac/fuzzer.cc", 205 "safe_browsing/mac/fuzzer.cc",
128 "safe_browsing/mac/hfs.cc", 206 "safe_browsing/mac/hfs.cc",
129 "safe_browsing/mac/hfs.h", 207 "safe_browsing/mac/hfs.h",
130 "safe_browsing/mac/read_stream.cc", 208 "safe_browsing/mac/read_stream.cc",
131 "safe_browsing/mac/read_stream.h", 209 "safe_browsing/mac/read_stream.h",
132 "safe_browsing/mac/udif.cc", 210 "safe_browsing/mac/udif.cc",
133 "safe_browsing/mac/udif.h", 211 "safe_browsing/mac/udif.h",
134 ] 212 ]
135 213
136 additional_configs = [ ":utility_ldflags" ] 214 additional_configs = [ ":utility_ldflags" ]
137 215
138 deps = [ 216 deps = [
139 "//base", 217 "//base",
140 "//third_party/zlib", 218 "//third_party/zlib",
141 ] 219 ]
142 } 220 }
143 } 221 }
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698