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

Unified Diff: components/cronet/tools/extract_from_jars.py

Issue 1488383002: Port cronet_package GYP target to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: components/cronet/tools/extract_from_jars.py
diff --git a/components/cronet/tools/extract_from_jars.py b/components/cronet/tools/extract_from_jars.py
index d72d46c162b1f2bce77cbb7a478e6b3f7e919d34..c148664ad371a114be773e5cccd109845bd19072 100755
--- a/components/cronet/tools/extract_from_jars.py
+++ b/components/cronet/tools/extract_from_jars.py
@@ -31,6 +31,7 @@ def ExtractJars(options):
def main():
parser = optparse.OptionParser()
+ build_utils.AddDepfileOption(parser)
parser.add_option('--classes-dir', help='Directory to extract .class files.')
parser.add_option('--jars', help='Paths to jars to extract.')
parser.add_option('--stamp', help='Path to touch on success.')
@@ -39,6 +40,13 @@ def main():
ExtractJars(options)
+ if options.depfile:
+ input_paths = []
+ for root, _, filenames in os.walk(options.classes_dir):
brettw 2015/12/21 20:25:02 It looks like this is writing the names of the ext
+ input_paths.extend(os.path.join(root, f) for f in filenames)
+ build_utils.WriteDepfile(options.depfile,
+ input_paths + build_utils.GetPythonDependencies())
+
if options.stamp:
build_utils.Touch(options.stamp)

Powered by Google App Engine
This is Rietveld 408576698