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

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

Issue 934873002: Improve CLI interface of C++ enums to Java generator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments & rebased Created 5 years, 10 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 | « build/android/java_cpp_enum.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/rules.gni
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
index 8ca064248e268036fbc7c1bc9231cca055da7fa0..864d41fdfe5e641a1ecc41cd01d7261f05220ada 100644
--- a/build/config/android/rules.gni
+++ b/build/config/android/rules.gni
@@ -335,8 +335,8 @@ template("java_cpp_template") {
#
# outputs: list of outputs, relative to the output_dir. These paths are
# verified at build time by the script. To get the list programatically run:
-# python build/android/gyp/java_cpp_enum.py --output_dir=. \
-# --print_output_only path/to/header/file.h
+# python build/android/gyp/java_cpp_enum.py \
+# --print_output_only . path/to/header/file.h
#
# Example
# java_cpp_enum("foo_generated_enum") {
@@ -366,16 +366,14 @@ template("java_cpp_enum") {
outputs =
get_path_info(rebase_path(invoker.outputs, ".", gen_dir), "abspath")
- args = [
- "--output_dir",
- rebase_path(gen_dir, root_build_dir),
- ]
+ args = []
foreach(output, rebase_path(outputs, root_build_dir)) {
args += [
"--assert_file",
output,
]
}
+ args += [ rebase_path(gen_dir, root_build_dir) ]
args += rebase_path(invoker.sources, root_build_dir)
}
« no previous file with comments | « build/android/java_cpp_enum.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698