Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/common/extensions/api/schemas.gni

Issue 489153003: Split bundle generation steps so that API registration is generated in browser, not common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra targets Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 import("//build/config/features.gni")
6
7 gypi_values = exec_script(
8 "//build/gypi_to_gn.py",
9 [ rebase_path("schemas.gypi") ],
10 "scope",
11 [ "schemas.gypi" ])
12
13 # Common sources that are both bundled and compiled.
14 if (is_android) {
15 # Should be eliminated. See crbug.com/305852.
16 sources = gypi_values.android_schema_files
17 } else {
18 sources = gypi_values.main_schema_files
19 if (is_chromeos) {
20 sources += gypi_values.chromeos_schema_files
21 if (is_chrome_branded) {
22 sources += gypi_values.chromeos_branded_schema_files
23 }
24 }
25 if (enable_webrtc) {
26 sources += gypi_values.webrtc_schema_files
27 }
28 }
29
30 if (!is_android) {
31 uncompiled_sources = gypi_values.main_non_compiled_schema_files
32 }
33
34 # impl_dir = "//chrome/browser/extensions/api"
35 root_namespace = "extensions::api::%(namespace)s"
36
37 deps = [
38 # Different APIs include some headers from chrome/common that in turn
39 # include generated headers from these targets.
40 # TODO(brettw) this should be made unnecessary if possible.
41 "//components/copresence/proto",
42 "//components/metrics/proto",
43 "//content/public/browser",
44 "//skia",
45 "//sync",
46 ]
47 if (is_chromeos) {
48 # deps += [ "<(DEPTH)/chrome/chrome.gyp:drive_proto" ] TODO)GYP)
scottmg 2014/08/25 17:09:01 (GYP)
49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698