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

Side by Side Diff: trunk/src/chrome/common/BUILD.gn

Issue 409543008: Revert 284508 "GN chrome/common build, rename enable_printing." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/chrome/chrome_common.gypi ('k') | trunk/src/chrome/renderer/BUILD.gn » ('j') | 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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 gypi_values = exec_script( 7 gypi_values = exec_script(
8 "//build/gypi_to_gn.py", 8 "//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_common.gypi") ], 9 [ rebase_path("../chrome_common.gypi") ],
10 "scope", 10 "scope",
(...skipping 24 matching lines...) Expand all
35 "//base:i18n", 35 "//base:i18n",
36 "//base:prefs", 36 "//base:prefs",
37 "//base:base_static", 37 "//base:base_static",
38 "//chrome:resources", 38 "//chrome:resources",
39 "//chrome:strings", 39 "//chrome:strings",
40 "//chrome/app/theme:theme_resources", 40 "//chrome/app/theme:theme_resources",
41 "//chrome/common:constants", 41 "//chrome/common:constants",
42 "//chrome/common/net", 42 "//chrome/common/net",
43 "//chrome/common/safe_browsing:proto", 43 "//chrome/common/safe_browsing:proto",
44 "//components/cloud_devices/common", 44 "//components/cloud_devices/common",
45 "//components/json_schema",
46 "//components/metrics", 45 "//components/metrics",
47 "//components/policy:policy_component_common", 46 "//components/policy:policy_component_common",
48 "//components/translate/core/common", 47 "//components/translate/core/common",
49 "//components/variations", 48 "//components/variations",
50 "//content/public/common", 49 "//content/public/common",
51 "//crypto", 50 "//crypto",
52 "//extensions:extensions_resources", 51 "//extensions:extensions_resources",
53 "//extensions/strings", 52 "//extensions/strings",
54 "//net", 53 "//net",
55 "//skia", 54 "//skia",
56 "//third_party/icu", 55 "//third_party/icu",
57 "//third_party/libxml", 56 "//third_party/libxml",
58 "//third_party/sqlite", 57 "//third_party/sqlite",
59 "//third_party/zlib:zip", 58 "//third_party/zlib:zip",
60 "//ui/resources:resources", 59 "//ui/resources:resources",
61 "//url", 60 "//url",
62 #":installer_util", TODO(GYP) 61 #":installer_util", TODO(GYP)
62 #"//components/json_schema", TODO(GYP)
63 #"//media/cast/cast.gyp:cast_transport", TODO(GYP) 63 #"//media/cast/cast.gyp:cast_transport", TODO(GYP)
64 ] 64 ]
65 65
66 if (is_ios) { 66 if (!is_ios) {
67 sources += [
68 # Use this Mac file that was filtered out.
69 "chrome_version_info_mac.mm",
70 ]
71 } else {
72 # Non-iOS.
73 deps += [ 67 deps += [
74 "//chrome/common/extensions/api", 68 "//chrome/common/extensions/api",
75 "//components/visitedlink/common", 69 "//components/visitedlink/common",
76 "//components/autofill/content/common", 70 "//components/autofill/content/common",
77 "//components/autofill/core/common", 71 "//components/autofill/core/common",
78 "//components/password_manager/core/common",
79 "//components/signin/core/common",
80 "//components/translate/content/common", 72 "//components/translate/content/common",
81 "//extensions/common/api", 73 "//extensions/common/api",
82 "//ipc", 74 "//ipc",
83 "//third_party/adobe/flash:flapper_version_h", 75 "//third_party/adobe/flash:flapper_version_h",
84 "//third_party/re2", 76 "//third_party/re2",
85 "//third_party/widevine/cdm:version_h", 77 "//third_party/widevine/cdm:version_h",
78 #'<(DEPTH)/components/components.gyp:password_manager_core_common', TODO( GYP)
79 #'<(DEPTH)/components/components.gyp:signin_core_common', TODO(GYP)
80 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP)
81 #'<(DEPTH)/extensions/common/api/api.gyp:extensions_api', TODO(GYP)
86 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) 82 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP)
87 ] 83 ]
88 } 84 }
89 85
90 if (enable_extensions) {
91 sources += rebase_path(
92 gypi_values.chrome_common_extensions_sources,
93 ".", "//chrome")
94 deps += [
95 "//device/bluetooth",
96 "//device/usb",
97 ]
98 }
99
100 if (is_win || is_mac) {
101 sources += rebase_path(
102 gypi_values.chrome_common_win_mac_sources,
103 ".", "//chrome")
104 if (use_openssl) {
105 sources -= [
106 "extensions/api/networking_private/networking_private_crypto_nss.cc",
107 ]
108 } else {
109 sources -= [
110 "extensions/api/networking_private/networking_private_crypto_openssl.cc" ,
111 ]
112 }
113 }
114 if (is_mac) {
115 sources += rebase_path(
116 gypi_values.chrome_common_mac_sources,
117 ".", "//chrome")
118 }
119
120 if (enable_nacl) { 86 if (enable_nacl) {
121 deps += [ 87 deps += [
122 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) 88 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP)
123 ] 89 ]
124 sources += [ 90 sources += [
125 "extensions/manifest_handlers/nacl_modules_handler.cc", 91 "extensions/manifest_handlers/nacl_modules_handler.cc",
126 "extensions/manifest_handlers/nacl_modules_handler.h", 92 "extensions/manifest_handlers/nacl_modules_handler.h",
127 ] 93 ]
128 } 94 }
129 95
130 # Printing.
131 if (printing_mode == 0) {
132 sources -= [
133 "print_messages.cc",
134 "print_messages.h",
135 ]
136 } else {
137 deps += [ "//printing" ]
138 if (printing_mode == 1) {
139 # Full printing support.
140 sources += rebase_path(
141 gypi_values.chrome_common_service_process_sources,
142 ".", "//chrome")
143 }
144 }
145
146 if (enable_service_discovery) {
147 sources += [
148 "local_discovery/service_discovery_client.cc",
149 "local_discovery/service_discovery_client.h",
150 ]
151 }
152 if (enable_mdns) {
153 sources += [
154 "local_discovery/service_discovery_client_impl.cc",
155 "local_discovery/service_discovery_client_impl.h",
156 ]
157 }
158
159 if (is_android) {
160 sources -= [
161 "badge_util.cc",
162 "chrome_version_info_posix.cc",
163 "extensions/api/extension_action/browser_action_handler.cc",
164 "extensions/api/extension_action/page_action_handler.cc",
165 "extensions/api/spellcheck/spellcheck_handler.cc",
166 "extensions/manifest_handlers/minimum_chrome_version_checker.cc",
167 "icon_with_badge_image_source.cc",
168 "media_galleries/metadata_types.h",
169 "net/url_util.cc",
170 "spellcheck_common.cc",
171 ]
172 } else {
173 # Non-Android.
174 sources += rebase_path(
175 gypi_values.chrome_common_importer_sources,
176 ".", "//chrome")
177 }
178
179 if (is_win) {
180 deps += [ "//third_party/wtl" ]
181 }
182
183 if (enable_mdns) {
184 sources += [ "local_discovery/local_discovery_messages.h" ]
185 }
186
187 if (is_chromeos) {
188 sources -= [ "chrome_version_info_linux.cc" ]
189 }
190
191 if (is_mac) {
192 sources -= [
193 "child_process_logging_posix.cc",
194 "chrome_version_info_posix.cc",
195 ]
196 deps += [
197 "//third_party/mach_override",
198 #'../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_ toolbox_for_mac', TODO(GYP)
199 ]
200 }
201
202 if (enable_remoting) {
203 #deps += [ '../remoting/remoting.gyp:remoting_client_plugin' ] TODO(GYP)
204 }
205 if (!enable_plugins) {
206 sources -= [ "pepper_permission_util.cc" ]
207 }
208 if (!enable_webrtc) {
209 sources -= [ "media/webrtc_logging_messages.h" ]
210 }
211 if (enable_configuration_policy) {
212 deps += [ "//components/policy" ]
213 }
214
215 if (safe_browsing_mode == 1) { 96 if (safe_browsing_mode == 1) {
216 defines += [ "FULL_SAFE_BROWSING" ] 97 defines += [ "FULL_SAFE_BROWSING" ]
217 sources += rebase_path( 98 sources += rebase_path(
218 gypi_values.chrome_common_full_safe_browsing_sources, 99 gypi_values.chrome_common_full_safe_browsing_sources,
219 ".", "//chrome") 100 ".", "//chrome")
220 } 101 }
221 if (safe_browsing_mode == 2) { 102 if (safe_browsing_mode == 2) {
222 defines += [ "MOBILE_SAFE_BROWSING" ] 103 defines += [ "MOBILE_SAFE_BROWSING" ]
223 } 104 }
224 } 105 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 "pref_font_webkit_names.h", 166 "pref_font_webkit_names.h",
286 "pref_names.cc", 167 "pref_names.cc",
287 "pref_names.h", 168 "pref_names.h",
288 "widevine_cdm_constants.cc", 169 "widevine_cdm_constants.cc",
289 "widevine_cdm_constants.h", 170 "widevine_cdm_constants.h",
290 ] 171 ]
291 172
292 deps = [ 173 deps = [
293 "//base", 174 "//base",
294 "//base/third_party/dynamic_annotations", 175 "//base/third_party/dynamic_annotations",
295 "//components/bookmarks/common",
296 "//third_party/widevine/cdm:version_h", 176 "//third_party/widevine/cdm:version_h",
177 #'../components/components.gyp:bookmarks_common', TODO(GYP)
297 ] 178 ]
298 179
299 if (enable_nacl) { 180 if (enable_nacl) {
300 deps += [ 181 deps += [
301 #'../components/nacl.gyp:nacl_switches', TODO(GYP) 182 #'../components/nacl.gyp:nacl_switches', TODO(GYP)
302 ] 183 ]
303 } 184 }
304 } 185 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/chrome_common.gypi ('k') | trunk/src/chrome/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698