summaryrefslogtreecommitdiffstats
path: root/extensions/extensions.gni
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2015-02-11 15:54:31 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-11 23:55:12 +0000
commit5354cb9d41b2b836e2abd370edf435594e10753a (patch)
tree4d1f52bb02ad082edd623cc77f8ba08cb7ef3672 /extensions/extensions.gni
parent24004fbf5326b4a498c2b6b70a1ee5edbf31f1ef (diff)
downloadchromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.zip
chromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.tar.gz
chromium_src-5354cb9d41b2b836e2abd370edf435594e10753a.tar.bz2
Merge extensions sources lists into shared gypis
This eliminates source list duplication between GYP and GN builds by merging all source lists into unified gypis. BUG=457404 Review URL: https://codereview.chromium.org/908333004 Cr-Commit-Position: refs/heads/master@{#315871}
Diffstat (limited to 'extensions/extensions.gni')
-rw-r--r--extensions/extensions.gni25
1 files changed, 25 insertions, 0 deletions
diff --git a/extensions/extensions.gni b/extensions/extensions.gni
new file mode 100644
index 0000000..05f1108
--- /dev/null
+++ b/extensions/extensions.gni
@@ -0,0 +1,25 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file defines the extension gypi values. This file is read once and
+# cached, which is a performance optimization that allows us to share the
+# results of parsing the .gypi file between all extensions BUILD.gn files.
+# It also saves us from duplicating this exec_script call.
+extensions_gypi_values =
+ exec_script("//build/gypi_to_gn.py",
+ [
+ rebase_path("extensions.gypi"),
+ "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
+ ],
+ "scope",
+ [ "extensions.gypi" ])
+
+extensions_tests_gypi_values =
+ exec_script("//build/gypi_to_gn.py",
+ [
+ rebase_path("extensions_tests.gypi"),
+ "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
+ ],
+ "scope",
+ [ "extensions_tests.gypi" ])