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

Unified Diff: tools-webrtc/ios/build_ios_libs.py

Issue 2735173002: Update licence generation script after GYP->GN migration. (Closed)
Patch Set: actually exit on error Created 3 years, 9 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 | tools-webrtc/ios/generate_licenses.py » ('j') | tools-webrtc/ios/generate_licenses.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools-webrtc/ios/build_ios_libs.py
diff --git a/tools-webrtc/ios/build_ios_libs.py b/tools-webrtc/ios/build_ios_libs.py
index 4e2585cc8a7e05b0ee0075aa794d2194fe61af07..0311b3cf9da292dd9a5d59b4f529290991b297ff 100755
--- a/tools-webrtc/ios/build_ios_libs.py
+++ b/tools-webrtc/ios/build_ios_libs.py
@@ -204,6 +204,16 @@ def main():
cmd = ['lipo'] + lib_dsym_paths + ['-create', '-output', out_dsym_path]
_RunCommand(cmd)
+ # Generate the license file.
+ license_script_path = os.path.join(
+ os.path.dirname(os.path.realpath(__file__)),
kjellander_webrtc 2017/03/08 14:00:39 join with SCRIPT_DIR instead.
kthelgason 2017/03/09 14:45:54 Done.
+ 'generate_licenses.py')
+ ninja_dir = os.path.join(args.output_dir, args.arch[0] + '_libs')
+ gn_target_full_name = '//webrtc/sdk:rtc_sdk_framework_objc'
+ cmd = ['python', license_script_path, gn_target_full_name, ninja_dir,
kjellander_webrtc 2017/03/08 14:00:39 use sys.executable instead of 'python'
kthelgason 2017/03/09 14:45:54 Done.
+ os.path.join(args.output_dir, SDK_FRAMEWORK_NAME)]
+ _RunCommand(cmd)
+
# Modify the version number.
# Format should be <Branch cut MXX>.<Hotfix #>.<Rev #>.
# e.g. 55.0.14986 means branch cut 55, no hotfixes, and revision 14986.
« no previous file with comments | « no previous file | tools-webrtc/ios/generate_licenses.py » ('j') | tools-webrtc/ios/generate_licenses.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698