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

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

Issue 680213003: Cleanup: Remove most enable_extensions logic in chrome/ extensions code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « chrome/common/extensions/api/BUILD.gn ('k') | chrome/common/extensions/api/schemas.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/features.gni") 5 import("//build/config/features.gni")
6 6
7 assert(enable_extensions)
8
7 gypi_values = exec_script( 9 gypi_values = exec_script(
8 "//build/gypi_to_gn.py", 10 "//build/gypi_to_gn.py",
9 [ rebase_path("schemas.gypi") ], 11 [ rebase_path("schemas.gypi") ],
10 "scope", 12 "scope",
11 [ "schemas.gypi" ]) 13 [ "schemas.gypi" ])
12 14
13 # Common sources that are both bundled and compiled. 15 # Common sources that are both bundled and compiled.
14 sources = gypi_values.main_schema_files 16 sources = gypi_values.main_schema_files
15 if (is_chromeos) { 17 if (is_chromeos) {
16 sources += gypi_values.chromeos_schema_files 18 sources += gypi_values.chromeos_schema_files
17 } 19 }
18 if (enable_webrtc) { 20 if (enable_webrtc) {
19 sources += gypi_values.webrtc_schema_files 21 sources += gypi_values.webrtc_schema_files
20 } 22 }
21 23
22 24
23 uncompiled_sources = gypi_values.main_non_compiled_schema_files 25 uncompiled_sources = gypi_values.main_non_compiled_schema_files
24 26
25 root_namespace = "extensions::api::%(namespace)s" 27 root_namespace = "extensions::api::%(namespace)s"
26 schema_include_rules = 28 schema_include_rules =
27 "extensions/common/api:extensions::core_api::%(namespace)s" 29 "extensions/common/api:extensions::core_api::%(namespace)s"
28 schema_dependencies = [ "//extensions/common/api" ] 30 schema_dependencies = [ "//extensions/common/api" ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/BUILD.gn ('k') | chrome/common/extensions/api/schemas.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698