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

Unified Diff: Source/modules/modules.gni

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/BUILD.gn ('k') | Source/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/modules.gni
diff --git a/Source/modules/modules.gni b/Source/modules/modules.gni
new file mode 100644
index 0000000000000000000000000000000000000000..87f14719d1097a24e5579e0945933d194c7a9747
--- /dev/null
+++ b/Source/modules/modules.gni
@@ -0,0 +1,47 @@
+# 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 is gn GN version of modules.gypi. Note that all file lists are
+# relative to the source root.
+_gypi = exec_script(
+ "//build/gypi_to_gn.py",
+ [ rebase_path("modules.gypi"),
+ "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir"],
+ "scope",
+ [ "modules.gypi" ])
+
+_tmp_modules_idl_files = _gypi.modules_idl_files
+# modules_idl_files has a magic variable in it that is an embedder hook,
+# remove that since it's not a file (need to do this before rebasing).
+_tmp_modules_idl_files -= [
+ "<@(extra_blink_module_idl_files)",
+]
+modules_idl_files = rebase_path(_tmp_modules_idl_files, "//")
+
+# 'partial interface' or target (right side of) 'implements'
+modules_dependency_idl_files =
+ rebase_path(_gypi.modules_dependency_idl_files, "//")
+
+# Relative to the modules directory.
+modules_event_idl_files = _gypi.modules_event_idl_files
+
+# interfaces that inherit from Event
+generated_modules_files = rebase_path(_gypi.generated_modules_files, "//")
+
+# Remove GYP variables from the list (need to do this before rebasing).
+_tmp_modules_files = _gypi.modules_files
+_tmp_modules_files -= [
+ "<@(extra_blink_module_files)",
+ "<@(generated_modules_files)",
+]
+modules_files = rebase_path(_tmp_modules_files, "//")
+modules_files += generated_modules_files # Account for GYP var expansion.
+
+# 'partial interface' or target (right side of) 'implements'
+modules_testing_dependency_idl_files =
+ rebase_path(_gypi.modules_testing_dependency_idl_files, "//")
+
+# Relative to the modules dir.
+modules_testing_files = _gypi.modules_testing_files
+modules_unittest_files = _gypi.modules_unittest_files
« no previous file with comments | « Source/modules/BUILD.gn ('k') | Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698