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
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
7 import("//extensions/extensions.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
10 # GYP version: extensions/extensions.gyp:extensions_common_constants
11 source_set("common_constants") {
13 rebase_path(extensions_gypi_values.extensions_common_constants_sources,
17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
21 if (enable_extensions) {
23 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources,
28 # GYP version: extensions/extensions.gyp:extensions_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") {
33 sources = rebase_path(extensions_gypi_values.extensions_common_sources,
37 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
44 # TODO(benwells): figure out what to do with the api target and
45 # api resources compiled into the chrome resource bundle.
46 # http://crbug.com/162530
48 "//components/crx_file",
49 "//components/url_matcher",
50 "//content/public/common",
54 "//extensions/common/api",
55 "//extensions/strings",
56 "//extensions:extensions_resources",
60 "//third_party/libxml",
70 rebase_path(extensions_gypi_values.extensions_common_sources_openssl,
73 deps += [ "//third_party/boringssl" ]
75 sources += rebase_path(
76 extensions_gypi_values.extensions_common_sources_nonopenssl,
83 rebase_path(extensions_gypi_values.extensions_common_sources_nacl,
86 sources += nacl_sources