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 source_set("common") {
30 sources = rebase_path(extensions_gypi_values.extensions_common_sources,
34 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
35 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
41 # TODO(benwells): figure out what to do with the api target and
42 # api resources compiled into the chrome resource bundle.
43 # http://crbug.com/162530
45 "//components/crx_file",
46 "//components/url_matcher",
47 "//content/public/common",
51 "//extensions/common/api",
52 "//extensions/strings",
53 "//extensions:extensions_resources",
57 "//third_party/libxml",
67 rebase_path(extensions_gypi_values.extensions_common_sources_openssl,
70 sources += ssl_sources
72 nonssl_sources = rebase_path(
73 extensions_gypi_values.extensions_common_sources_nonopenssl,
76 sources += nonssl_sources
81 rebase_path(extensions_gypi_values.extensions_common_sources_nacl,
84 sources += nacl_sources