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

Side by Side Diff: extensions/common/BUILD.gn

Issue 673663004: Android: Do not build any extensions code except for extensions_constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zoom_controller
Patch Set: fix merge conflict Created 6 years, 2 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/test/base/chrome_unit_test_suite.cc ('k') | extensions/common/extension.h » ('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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
7 7
8 mojom("mojo") {
9 sources = [
10 "mojo/keep_alive.mojom",
11 "stash.mojom",
12 ]
13 }
14
15 # GYP version: extensions/extensions.gyp:extensions_common_constants 8 # GYP version: extensions/extensions.gyp:extensions_common_constants
16 source_set("common_constants") { 9 source_set("common_constants") {
17 sources = [ 10 sources = [
18 "constants.cc", 11 "constants.cc",
19 "constants.h", 12 "constants.h",
20 ] 13 ]
21 14
22 if (is_win) { 15 if (is_win) {
23 cflags = [ 16 cflags = [
24 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 17 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
25 ] 18 ]
26 } 19 }
27 } 20 }
28 21
22 if (enable_extensions) {
23
24 mojom("mojo") {
25 sources = [
26 "mojo/keep_alive.mojom",
27 "stash.mojom",
28 ]
29 }
30
31
29 # GYP version: extensions/extensions.gyp:extensions_common 32 # GYP version: extensions/extensions.gyp:extensions_common
30 source_set("common") { 33 source_set("common") {
31 sources = [ 34 sources = [
32 "api/messaging/message.h", 35 "api/messaging/message.h",
33 "api/bluetooth/bluetooth_manifest_data.cc", 36 "api/bluetooth/bluetooth_manifest_data.cc",
34 "api/bluetooth/bluetooth_manifest_data.h", 37 "api/bluetooth/bluetooth_manifest_data.h",
35 "api/bluetooth/bluetooth_manifest_handler.cc", 38 "api/bluetooth/bluetooth_manifest_handler.cc",
36 "api/bluetooth/bluetooth_manifest_handler.h", 39 "api/bluetooth/bluetooth_manifest_handler.h",
37 "api/bluetooth/bluetooth_manifest_permission.cc", 40 "api/bluetooth/bluetooth_manifest_permission.cc",
38 "api/bluetooth/bluetooth_manifest_permission.h", 41 "api/bluetooth/bluetooth_manifest_permission.h",
(...skipping 15 matching lines...) Expand all
54 "event_filter.cc", 57 "event_filter.cc",
55 "event_filter.h", 58 "event_filter.h",
56 "event_filtering_info.cc", 59 "event_filtering_info.cc",
57 "event_filtering_info.h", 60 "event_filtering_info.h",
58 "event_matcher.cc", 61 "event_matcher.cc",
59 "event_matcher.h", 62 "event_matcher.h",
60 "extension.cc", 63 "extension.cc",
61 "extension.h", 64 "extension.h",
62 "extension_api.cc", 65 "extension_api.cc",
63 "extension_api.h", 66 "extension_api.h",
64 "extension_api_stub.cc",
65 "extension_icon_set.cc", 67 "extension_icon_set.cc",
66 "extension_icon_set.h", 68 "extension_icon_set.h",
67 "extension_l10n_util.cc", 69 "extension_l10n_util.cc",
68 "extension_l10n_util.h", 70 "extension_l10n_util.h",
69 "extension_message_generator.cc", 71 "extension_message_generator.cc",
70 "extension_message_generator.h", 72 "extension_message_generator.h",
71 "extension_messages.cc", 73 "extension_messages.cc",
72 "extension_messages.h", 74 "extension_messages.h",
73 "extension_paths.cc", 75 "extension_paths.cc",
74 "extension_paths.h", 76 "extension_paths.h",
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ":common_constants", 221 ":common_constants",
220 ":mojo", 222 ":mojo",
221 # TODO(benwells): figure out what to do with the api target and 223 # TODO(benwells): figure out what to do with the api target and
222 # api resources compiled into the chrome resource bundle. 224 # api resources compiled into the chrome resource bundle.
223 # http://crbug.com/162530 225 # http://crbug.com/162530
224 "//chrome:resources", 226 "//chrome:resources",
225 "//components/crx_file", 227 "//components/crx_file",
226 "//components/url_matcher", 228 "//components/url_matcher",
227 "//content/public/common", 229 "//content/public/common",
228 "//crypto", 230 "//crypto",
231 "//device/bluetooth",
232 "//device/usb",
233 "//extensions/common/api",
229 "//extensions/strings", 234 "//extensions/strings",
235 "//extensions:extensions_resources",
230 "//ipc", 236 "//ipc",
231 "//net", 237 "//net",
232 "//third_party/icu", 238 "//third_party/icu",
233 "//third_party/libxml", 239 "//third_party/libxml",
234 "//third_party/re2", 240 "//third_party/re2",
235 "//ui/base", 241 "//ui/base",
236 "//ui/gfx/geometry", 242 "//ui/gfx/geometry",
237 "//ui/gfx/ipc", 243 "//ui/gfx/ipc",
238 "//url", 244 "//url",
239 ] 245 ]
240 246
241 if (enable_extensions) {
242 sources -= [
243 "extension_api_stub.cc",
244 ]
245
246 deps += [
247 "//device/bluetooth",
248 "//device/usb",
249 "//extensions/common/api",
250 "//extensions:extensions_resources",
251 ]
252 } else {
253 sources -= [
254 "api/bluetooth/bluetooth_manifest_data.cc",
255 "api/bluetooth/bluetooth_manifest_data.h",
256 "api/bluetooth/bluetooth_manifest_handler.cc",
257 "api/bluetooth/bluetooth_manifest_handler.h",
258 "api/bluetooth/bluetooth_manifest_permission.cc",
259 "api/bluetooth/bluetooth_manifest_permission.h",
260 "api/messaging/message.h",
261 "api/sockets/sockets_manifest_data.cc",
262 "api/sockets/sockets_manifest_data.h",
263 "api/sockets/sockets_manifest_handler.cc",
264 "api/sockets/sockets_manifest_handler.h",
265 "api/sockets/sockets_manifest_permission.cc",
266 "api/sockets/sockets_manifest_permission.h",
267 "extension_api.cc",
268 "manifest_handlers/externally_connectable.cc",
269 "manifest_handlers/externally_connectable.h",
270 "manifest_handlers/options_page_info.cc",
271 "manifest_handlers/options_page_info.h",
272 ]
273 }
274
275 if (enable_nacl) { 247 if (enable_nacl) {
276 sources += [ 248 sources += [
277 "manifest_handlers/nacl_modules_handler.cc", 249 "manifest_handlers/nacl_modules_handler.cc",
278 "manifest_handlers/nacl_modules_handler.h", 250 "manifest_handlers/nacl_modules_handler.h",
279 ] 251 ]
280 } 252 }
281 253
282 if (is_win) { 254 if (is_win) {
283 cflags = [ 255 cflags = [
284 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 256 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
285 ] 257 ]
286 } 258 }
287 } 259 }
260
261 } # enable_extensions
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_unit_test_suite.cc ('k') | extensions/common/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698