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

Unified Diff: build/android/gyp/gcc_preprocess.py

Issue 456493002: Add native libraries to gn apks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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/gyp/create_native_libraries_header.py ('k') | build/android/gyp/pack_arm_relocations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/gcc_preprocess.py
diff --git a/build/android/gyp/gcc_preprocess.py b/build/android/gyp/gcc_preprocess.py
index b0c5da281242ed0b90fd874139fd8ad6182d3f84..03becf918fed98b9077d99d86f44416a07d207a5 100755
--- a/build/android/gyp/gcc_preprocess.py
+++ b/build/android/gyp/gcc_preprocess.py
@@ -29,7 +29,9 @@ def DoGcc(options):
build_utils.CheckOutput(gcc_cmd)
-def main():
+def main(args):
+ args = build_utils.ExpandFileArgs(args)
+
parser = optparse.OptionParser()
build_utils.AddDepfileOption(parser)
@@ -39,7 +41,7 @@ def main():
parser.add_option('--stamp', help='Path to touch on success.')
parser.add_option('--defines', help='Pre-defines macros', action='append')
- options, _ = parser.parse_args()
+ options, _ = parser.parse_args(args)
DoGcc(options)
@@ -53,4 +55,4 @@ def main():
if __name__ == '__main__':
- sys.exit(main())
+ sys.exit(main(sys.argv[1:]))
« no previous file with comments | « build/android/gyp/create_native_libraries_header.py ('k') | build/android/gyp/pack_arm_relocations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698