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/json_schema_api.gni") | 5 import("//build/json_schema_api.gni") |
6 import("schemas.gni") | 6 import("schemas.gni") |
7 | 7 |
8 assert(enable_extensions) | 8 assert(enable_extensions) |
9 | 9 |
10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api | 10 # GYP version: chrome/common/extensions/api/api.gyp:chrome_api |
11 json_schema_api("api") { | 11 json_schema_api("api") { |
12 schemas = true | 12 schemas = true |
13 bundle = true | 13 bundle = true |
| 14 configs = [ "//build/config:precompiled_headers" ] |
14 bundle_name = "Chrome" | 15 bundle_name = "Chrome" |
15 | 16 |
16 deps = schema_dependencies | 17 deps = schema_dependencies |
17 } | 18 } |
18 | 19 |
19 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration | 20 # GYP version: chrome/browser/extensions/api/api.gyp:chrome_api_registration |
20 json_schema_api("api_registration") { | 21 json_schema_api("api_registration") { |
21 impl_dir = "//chrome/browser/extensions/api" | 22 impl_dir = "//chrome/browser/extensions/api" |
22 bundle_registration = true | 23 bundle_registration = true |
| 24 configs = [ "//build/config:precompiled_headers" ] |
23 bundle_name = "Chrome" | 25 bundle_name = "Chrome" |
24 | 26 |
25 deps = [ | 27 deps = [ |
26 # Different APIs include headers from these targets. | 28 # Different APIs include headers from these targets. |
27 "//content/public/browser", | 29 "//content/public/browser", |
28 "//extensions/browser", | 30 "//extensions/browser", |
29 | 31 |
30 # Different APIs include some headers from chrome/common that in turn | 32 # Different APIs include some headers from chrome/common that in turn |
31 # include generated headers from these targets. | 33 # include generated headers from these targets. |
32 # TODO(brettw) this should be made unnecessary if possible. | 34 # TODO(brettw) this should be made unnecessary if possible. |
33 ":api", | 35 ":api", |
34 "//components/copresence/proto", | 36 "//components/copresence/proto", |
35 "//components/metrics/proto", | 37 "//components/metrics/proto", |
36 "//skia", | 38 "//skia", |
37 "//sync", | 39 "//sync", |
38 "//ui/accessibility:ax_gen", | 40 "//ui/accessibility:ax_gen", |
39 ] | 41 ] |
40 if (is_chromeos) { | 42 if (is_chromeos) { |
41 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP) | 43 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO(GYP) |
42 } | 44 } |
43 deps += schema_dependencies | 45 deps += schema_dependencies |
44 | 46 |
45 # This must be a static library because the generated schemas have | 47 # This must be a static library because the generated schemas have |
46 # dependencies into both the browser and child processes, and this won't link | 48 # dependencies into both the browser and child processes, and this won't link |
47 # in the multi DLL build. In the child DLL, only some files are needed, and | 49 # in the multi DLL build. In the child DLL, only some files are needed, and |
48 # these have no dependencies into the browser, so a static library solves the | 50 # these have no dependencies into the browser, so a static library solves the |
49 # problem. | 51 # problem. |
50 generate_static_library = true | 52 generate_static_library = true |
51 } | 53 } |
OLD | NEW |