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

Unified Diff: build/config/android/internal_rules.gni

Issue 1345733002: move zip template to a non-android-specific .gni file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move zip.gni up one directory Created 5 years, 3 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 | « no previous file | build/config/zip.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index 1103cf315413c0c97535b1acd27f2b37c08d3b09..8e2cb0f825f3348fd80295e04123cd16675b0b37 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/android/config.gni")
+import("//build/config/zip.gni")
import("//third_party/ijar/ijar.gni")
assert(is_android)
@@ -212,46 +213,6 @@ template("dex") {
}
}
-# Creates a zip archive of the inputs.
-# If base_dir is provided, the archive paths will be relative to it.
-template("zip") {
- set_sources_assignment_filter([])
- assert(defined(invoker.inputs))
- assert(defined(invoker.output))
-
- rebase_inputs = rebase_path(invoker.inputs, root_build_dir)
- rebase_output = rebase_path(invoker.output, root_build_dir)
- action(target_name) {
- forward_variables_from(invoker,
- [
- "data_deps",
- "deps",
- "public_deps",
- "inputs",
- "testonly",
- "visibility",
- ])
- script = "//build/android/gn/zip.py"
- depfile = "$target_gen_dir/$target_name.d"
- outputs = [
- depfile,
- invoker.output,
- ]
- args = [
- "--depfile",
- rebase_path(depfile, root_build_dir),
- "--inputs=$rebase_inputs",
- "--output=$rebase_output",
- ]
- if (defined(invoker.base_dir)) {
- args += [
- "--base-dir",
- rebase_path(invoker.base_dir, root_build_dir),
- ]
- }
- }
-}
-
# Write the target's .build_config file. This is a json file that contains a
# dictionary of information about how to build this target (things that
# require knowledge about this target's dependencies and cannot be calculated
« no previous file with comments | « no previous file | build/config/zip.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698