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

Side by Side Diff: components/cronet/tools/package_ios.py

Issue 2807283002: [Cronet] Build static libcronet.a for iOS with complete dependencies. (Closed)
Patch Set: Use libtool to combine i386 Cronet library and its dependencies. 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ 6 """
7 package_ios.py - Build and Package Release and Rebug fat libraries for iOS. 7 package_ios.py - Build and Package Release and Rebug fat libraries for iOS.
8 """ 8 """
9 9
10 import argparse 10 import argparse
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return gn_result 110 return gn_result
111 111
112 print 'Building ' + build_dir 112 print 'Building ' + build_dir
113 build_result = run('ninja -C %s cronet_package' % build_dir, 113 build_result = run('ninja -C %s cronet_package' % build_dir,
114 extra_options) 114 extra_options)
115 if build_result != 0: 115 if build_result != 0:
116 return build_result 116 return build_result
117 117
118 # Copy framework. 118 # Copy framework.
119 shutil.copytree(os.path.join(build_dir, 'Cronet.framework'), 119 shutil.copytree(os.path.join(build_dir, 'Cronet.framework'),
120 os.path.join(out_dir, target_dir, 'Cronet.framework')) 120 os.path.join(out_dir, target_dir, 'Cronet.framework'))
kapishnikov 2017/05/23 21:37:46 Since we added 'Static' subdirectory for the stati
mef 2017/05/24 21:36:59 Done.
121 # Copy symbols. 121 # Copy symbols.
122 shutil.copytree(os.path.join(build_dir, 'Cronet.dSYM'), 122 shutil.copytree(os.path.join(build_dir, 'Cronet.dSYM'),
123 os.path.join(out_dir, target_dir, 'Cronet.framework.dSYM')) 123 os.path.join(out_dir, target_dir, 'Cronet.framework.dSYM'))
124 124
125 # Copy static library.
126 shutil.copy2(os.path.join(build_dir, 'cronet', 'libcronet.a'),
127 os.path.join(out_dir, target_dir))
128 # Copy static framework.
129 shutil.copytree(os.path.join(build_dir, 'CronetStatic.framework'),
130 os.path.join(out_dir, 'Static', target_dir, 'Cronet.framework'))
131
125 # Copy common files from last built package. 132 # Copy common files from last built package.
126 package_dir = os.path.join(build_dir, 'cronet') 133 package_dir = os.path.join(build_dir, 'cronet')
127 shutil.copy2(os.path.join(package_dir, 'AUTHORS'), out_dir) 134 shutil.copy2(os.path.join(package_dir, 'AUTHORS'), out_dir)
128 shutil.copy2(os.path.join(package_dir, 'LICENSE'), out_dir) 135 shutil.copy2(os.path.join(package_dir, 'LICENSE'), out_dir)
129 shutil.copy2(os.path.join(package_dir, 'VERSION'), out_dir) 136 shutil.copy2(os.path.join(package_dir, 'VERSION'), out_dir)
130 # Copy the headers. 137 # Copy the headers.
131 shutil.copytree(os.path.join(build_dir, 138 shutil.copytree(os.path.join(build_dir,
132 'Cronet.framework', 'Headers'), 139 'Cronet.framework', 'Headers'),
133 os.path.join(out_dir, 'Headers')) 140 os.path.join(out_dir, 'Headers'))
134 print 'Cronet dynamic framework is packaged into %s' % out_dir 141 print 'Cronet dynamic framework is packaged into %s' % out_dir
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 197
191 if options.gn: 198 if options.gn:
192 return package_ios_framework_using_gn(out_dir, extra_options_list) 199 return package_ios_framework_using_gn(out_dir, extra_options_list)
193 200
194 return package_ios(out_dir, "out/Release", "opt") or \ 201 return package_ios(out_dir, "out/Release", "opt") or \
195 package_ios(out_dir, "out/Debug", "dbg") 202 package_ios(out_dir, "out/Debug", "dbg")
196 203
197 204
198 if __name__ == '__main__': 205 if __name__ == '__main__':
199 sys.exit(main()) 206 sys.exit(main())
OLDNEW
« components/cronet/tools/hide_symbols.py ('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