OLD | NEW |
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 source_set("common") { | 29 # This must be a static library because extensions common depends on |
| 30 # GetTrustedICAPublicKey in extensions/browser which isn't always linked |
| 31 # in. TODO(brettw): This reverse dependency should be fixed. |
| 32 static_library("common") { |
30 sources = rebase_path(extensions_gypi_values.extensions_common_sources, | 33 sources = rebase_path(extensions_gypi_values.extensions_common_sources, |
31 ".", | 34 ".", |
32 "//extensions") | 35 "//extensions") |
33 | 36 |
34 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 37 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
35 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
36 | 39 |
37 deps = [ | 40 deps = [ |
38 ":common_constants", | 41 ":common_constants", |
39 ":mojo", | 42 ":mojo", |
(...skipping 16 matching lines...) Expand all Loading... |
56 "//third_party/icu", | 59 "//third_party/icu", |
57 "//third_party/libxml", | 60 "//third_party/libxml", |
58 "//third_party/re2", | 61 "//third_party/re2", |
59 "//ui/base", | 62 "//ui/base", |
60 "//ui/gfx/geometry", | 63 "//ui/gfx/geometry", |
61 "//ui/gfx/ipc", | 64 "//ui/gfx/ipc", |
62 "//url", | 65 "//url", |
63 ] | 66 ] |
64 | 67 |
65 if (use_openssl) { | 68 if (use_openssl) { |
66 ssl_sources = | 69 sources += |
67 rebase_path(extensions_gypi_values.extensions_common_sources_openssl, | 70 rebase_path(extensions_gypi_values.extensions_common_sources_openssl, |
68 ".", | 71 ".", |
69 "//extensions") | 72 "//extensions") |
70 sources += ssl_sources | 73 deps += [ "//third_party/boringssl" ] |
71 } else { | 74 } else { |
72 nonssl_sources = rebase_path( | 75 sources += rebase_path( |
73 extensions_gypi_values.extensions_common_sources_nonopenssl, | 76 extensions_gypi_values.extensions_common_sources_nonopenssl, |
74 ".", | 77 ".", |
75 "//extensions") | 78 "//extensions") |
76 sources += nonssl_sources | |
77 } | 79 } |
78 | 80 |
79 if (enable_nacl) { | 81 if (enable_nacl) { |
80 nacl_sources = | 82 nacl_sources = |
81 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, | 83 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, |
82 ".", | 84 ".", |
83 "//extensions") | 85 "//extensions") |
84 sources += nacl_sources | 86 sources += nacl_sources |
85 } | 87 } |
86 } | 88 } |
87 } # enable_extensions | 89 } # enable_extensions |
OLD | NEW |