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

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

Issue 2001093007: [Cronet] Add version and headers to CronetFramework package (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy headers from Framework dir instead of source Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/tools/package_ios.py
diff --git a/components/cronet/tools/package_ios.py b/components/cronet/tools/package_ios.py
index 83cdff8ae5553c95fd8d3e2bf95b79dd7b8e45ba..ec704143d3c7ed8942fa50f1ccdf33b66f80af0c 100755
--- a/components/cronet/tools/package_ios.py
+++ b/components/cronet/tools/package_ios.py
@@ -43,7 +43,7 @@ def package_ios(out_dir, build_dir, build_config):
build_dir_sim = build_dir
build_dir_dev = build_dir +'-iphoneos'
build_target = 'cronet_package'
- target_dir = out_dir + "/Cronet"
+ target_dir = out_dir
return build(build_dir_sim, build_target) or \
build(build_dir_dev, build_target) or \
copy_build_dir(target_dir, build_dir_dev + "/cronet") or \
@@ -75,6 +75,12 @@ def package_ios_framework(out_dir='out/Framework', extra_options=''):
if 'Release' in build_dir:
shutil.copytree(os.path.join('out', build_dir, 'Cronet.framework.dSYM'),
os.path.join(out_dir, build_dir, 'Cronet.framework.dSYM'))
+ # Copy the version file
+ shutil.copy2('chrome/VERSION', out_dir)
+ # Copy the headers
+ shutil.copytree(os.path.join(out_dir, build_dirs[0],
+ 'Cronet.framework', 'Headers'),
+ os.path.join(out_dir, 'Headers'))
def main():
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698