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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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("//extensions/extensions.gni") 7 import("//extensions/extensions.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 9
10 # GYP version: extensions/extensions.gyp:extensions_common_constants 10 # GYP version: extensions/extensions.gyp:extensions_common_constants
11 source_set("common_constants") { 11 source_set("common_constants") {
12 sources = 12 sources =
13 rebase_path(extensions_gypi_values.extensions_common_constants_sources, 13 rebase_path(extensions_gypi_values.extensions_common_constants_sources,
14 ".", 14 ".",
15 "//extensions") 15 "//extensions")
16 16
17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
19 } 19 }
20 20
21 if (enable_extensions) { 21 if (enable_extensions) {
22 mojom("mojo") { 22 mojom("mojo") {
23 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources, 23 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources,
24 ".", 24 ".",
25 "//extensions") 25 "//extensions")
26 } 26 }
27 27
28 # GYP version: extensions/extensions.gyp:extensions_common 28 # GYP version: extensions/extensions.gyp:extensions_common
29 # This must be a static library because extensions common depends on 29 # This must be a static library because extensions common depends on
30 # GetTrustedICAPublicKey in extensions/browser which isn't always linked 30 # GetTrustedICAPublicKey in extensions/browser which isn"t always linked
31 # in. TODO(brettw): This reverse dependency should be fixed. 31 # in. TODO(brettw): This reverse dependency should be fixed.
32 static_library("common") { 32 static_library("common") {
33 sources = rebase_path(extensions_gypi_values.extensions_common_sources, 33 sources = rebase_path(extensions_gypi_values.extensions_common_sources,
34 ".", 34 ".",
35 "//extensions") 35 "//extensions")
36 36
37 configs += [ 37 configs += [
38 "//build/config:precompiled_headers", 38 "//build/config:precompiled_headers",
39 39
40 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 40 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
41 "//build/config/compiler:no_size_t_to_int_warning", 41 "//build/config/compiler:no_size_t_to_int_warning",
42 ] 42 ]
43 43
44 deps = [ 44 deps = [
45 ":common_constants", 45 ":common_constants",
46 ":mojo", 46 ":mojo",
47 47
48 # TODO(benwells): figure out what to do with the api target and 48 # TODO(benwells): figure out what to do with the api target and
49 # api resources compiled into the chrome resource bundle. 49 # api resources compiled into the chrome resource bundle.
50 # http://crbug.com/162530 50 # http://crbug.com/162530
51 "//chrome:resources", 51 "//chrome:resources",
52 "//components/crx_file", 52 "//components/crx_file",
53 "//components/url_matcher", 53 "//components/url_matcher",
54 "//content/public/common", 54 "//content/public/common",
55 "//crypto", 55 "//crypto",
56 "//device/bluetooth", 56 "//device/bluetooth",
57 "//device/usb",
58 "//extensions/common/api", 57 "//extensions/common/api",
59 "//extensions/strings", 58 "//extensions/strings",
60 "//extensions:extensions_resources", 59 "//extensions:extensions_resources",
61 "//ipc", 60 "//ipc",
62 "//net", 61 "//net",
63 "//third_party/icu", 62 "//third_party/icu",
64 "//third_party/libxml", 63 "//third_party/libxml",
65 "//third_party/re2", 64 "//third_party/re2",
66 "//ui/base", 65 "//ui/base",
67 "//ui/gfx/geometry", 66 "//ui/gfx/geometry",
68 "//ui/gfx/ipc", 67 "//ui/gfx/ipc",
69 "//url", 68 "//url",
70 ] 69 ]
71 70
71 if (!is_android) {
72 deps += ["//device/usb"]
73 } else {
74 sources -= [
75 "api/printer_provider/usb_printer_manifest_data.cc",
76 "api/printer_provider/usb_printer_manifest_data.h",
77 "api/printer_provider/usb_printer_manifest_handler.cc",
78 "api/printer_provider/usb_printer_manifest_handler.h",
79 ]
80 }
81
72 if (use_openssl) { 82 if (use_openssl) {
73 sources += 83 sources +=
74 rebase_path(extensions_gypi_values.extensions_common_sources_openssl, 84 rebase_path(extensions_gypi_values.extensions_common_sources_openssl,
75 ".", 85 ".",
76 "//extensions") 86 "//extensions")
77 deps += [ "//third_party/boringssl" ] 87 deps += [ "//third_party/boringssl" ]
78 } else { 88 } else {
79 sources += rebase_path( 89 sources += rebase_path(
80 extensions_gypi_values.extensions_common_sources_nonopenssl, 90 extensions_gypi_values.extensions_common_sources_nonopenssl,
81 ".", 91 ".",
82 "//extensions") 92 "//extensions")
83 } 93 }
84 94
85 if (enable_nacl) { 95 if (enable_nacl) {
86 nacl_sources = 96 nacl_sources =
87 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, 97 rebase_path(extensions_gypi_values.extensions_common_sources_nacl,
88 ".", 98 ".",
89 "//extensions") 99 "//extensions")
90 sources += nacl_sources 100 sources += nacl_sources
91 } 101 }
92 } 102 }
93 } # enable_extensions 103 } # enable_extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698