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

Unified Diff: android_webview/build/jarjar_resources.gypi

Issue 255613003: Move ui and content resources into one location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing headers Created 6 years, 6 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 | « android_webview/build/AndroidManifest.xml ('k') | android_webview/build/resources_config.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/build/jarjar_resources.gypi
diff --git a/android_webview/build/jarjar_resources.gypi b/android_webview/build/jarjar_resources.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..17838c6a7674ecd3a8275590e967b56340aa20dc
--- /dev/null
+++ b/android_webview/build/jarjar_resources.gypi
@@ -0,0 +1,50 @@
+# 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 meant to be included into a target to provide a rule
+# to run the equivalent of jarjar on Java resources (layout.xml files).
+#
+# To use this, create a gyp target with the following form:
+# {
+# 'target_name': 'my-package_java',
+# 'type': 'none',
+# 'variables': {
+# 'java_in_dir': 'path/to/package/root',
+# },
+# 'includes': ['path/to/this/gypi/file'],
+# }
+#
+# Required variables:
+# res_dir - The top-level resources folder.
+# rules_file - Path to the file containing jar-jar rules.
+
+{
+ 'variables': {
+ 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
+ 'jarjar_stamp': '<(intermediate_dir)/jarjar_resources.stamp',
+ 'resource_input_paths': ['<!@(find <(res_dir) -type f)'],
+ },
+ 'actions': [{
+ 'action_name': 'jarjar resources',
+ 'message': 'Copying and jar-jaring resources for <(_target_name)',
+ 'variables': {
+ 'out_dir': '<(intermediate_dir)/jarjar_res',
+ },
+ 'inputs': [
+ '<(DEPTH)/build/android/gyp/util/build_utils.py',
+ '<(DEPTH)/build/android/gyp/jarjar_resources.py',
+ '>@(resource_input_paths)',
+ ],
+ 'outputs': [
+ '<(jarjar_stamp)',
+ ],
+ 'action': [
+ 'python', '../build/android/gyp/jarjar_resources.py',
+ '--input-dir', '<(res_dir)',
+ '--output-dir', '<(out_dir)',
+ '--rules-path', '<(rules_file)',
+ '--stamp', '<(jarjar_stamp)',
+ ]
+ }],
+}
« no previous file with comments | « android_webview/build/AndroidManifest.xml ('k') | android_webview/build/resources_config.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698