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

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

Issue 2807283002: [Cronet] Build static libcronet.a for iOS with complete dependencies. (Closed)
Patch Set: Disable cronet_consumer_static target for fat builds. Created 3 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
Index: components/cronet/tools/package_ios.py
diff --git a/components/cronet/tools/package_ios.py b/components/cronet/tools/package_ios.py
index 956d545b9c900d3751c12ec5cd7ef59bfadf6614..6fd322061c2b157eb807cb5e1a34bdec5fbd669c 100755
--- a/components/cronet/tools/package_ios.py
+++ b/components/cronet/tools/package_ios.py
@@ -117,10 +117,13 @@ def package_ios_framework_using_gn(out_dir='out/Framework', extra_options=''):
# Copy framework.
shutil.copytree(os.path.join(build_dir, 'Cronet.framework'),
- os.path.join(out_dir, target_dir, 'Cronet.framework'))
+ os.path.join(out_dir, 'Dynamic', target_dir, 'Cronet.framework'))
# Copy symbols.
shutil.copytree(os.path.join(build_dir, 'Cronet.dSYM'),
- os.path.join(out_dir, target_dir, 'Cronet.framework.dSYM'))
+ os.path.join(out_dir, 'Dynamic', target_dir, 'Cronet.framework.dSYM'))
+ # Copy static framework.
+ shutil.copytree(os.path.join(build_dir, 'Static', 'Cronet.framework'),
+ os.path.join(out_dir, 'Static', target_dir, 'Cronet.framework'))
# Copy common files from last built package.
package_dir = os.path.join(build_dir, 'cronet')
@@ -131,7 +134,7 @@ def package_ios_framework_using_gn(out_dir='out/Framework', extra_options=''):
shutil.copytree(os.path.join(build_dir,
'Cronet.framework', 'Headers'),
os.path.join(out_dir, 'Headers'))
- print 'Cronet dynamic framework is packaged into %s' % out_dir
+ print 'Cronet framework is packaged into %s' % out_dir
def main():
« components/cronet/ios/cronet_consumer/BUILD.gn ('K') | « components/cronet/tools/hide_symbols.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698