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 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
17 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
18 } | 19 } |
19 | 20 |
20 if (enable_extensions) { | 21 if (enable_extensions) { |
21 mojom("mojo") { | 22 mojom("mojo") { |
22 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources, | 23 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources, |
23 ".", | 24 ".", |
24 "//extensions") | 25 "//extensions") |
25 } | 26 } |
26 | 27 |
27 # GYP version: extensions/extensions.gyp:extensions_common | 28 # GYP version: extensions/extensions.gyp:extensions_common |
28 source_set("common") { | 29 source_set("common") { |
29 sources = rebase_path(extensions_gypi_values.extensions_common_sources, | 30 sources = rebase_path(extensions_gypi_values.extensions_common_sources, |
30 ".", | 31 ".", |
31 "//extensions") | 32 "//extensions") |
| 33 |
32 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 34 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
33 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 35 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
34 | 36 |
35 deps = [ | 37 deps = [ |
36 ":common_constants", | 38 ":common_constants", |
37 ":mojo", | 39 ":mojo", |
38 | 40 |
39 # TODO(benwells): figure out what to do with the api target and | 41 # TODO(benwells): figure out what to do with the api target and |
40 # api resources compiled into the chrome resource bundle. | 42 # api resources compiled into the chrome resource bundle. |
41 # http://crbug.com/162530 | 43 # http://crbug.com/162530 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 78 |
77 if (enable_nacl) { | 79 if (enable_nacl) { |
78 nacl_sources = | 80 nacl_sources = |
79 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, | 81 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, |
80 ".", | 82 ".", |
81 "//extensions") | 83 "//extensions") |
82 sources += nacl_sources | 84 sources += nacl_sources |
83 } | 85 } |
84 } | 86 } |
85 } # enable_extensions | 87 } # enable_extensions |
OLD | NEW |