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

Unified Diff: tools_webrtc/ios/build_ios_libs.py

Issue 3011613002: License generation script for build_aar.py. (Closed)
Patch Set: Specify GN working directory. Created 3 years, 3 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 | « tools_webrtc/android/build_aar.py ('k') | tools_webrtc/ios/generate_licenses.py » ('j') | no next file with comments »
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 98a2407da2d24fd3c83b76c61bffc7ef939760ab..d78384ae76c33bb15899c63b5f78b29117f96737 100755
--- a/tools_webrtc/ios/build_ios_libs.py
+++ b/tools_webrtc/ios/build_ios_libs.py
@@ -34,6 +34,9 @@ DEFAULT_ARCHS = ENABLED_ARCHS = ['arm64', 'arm', 'x64', 'x86']
IOS_DEPLOYMENT_TARGET = '8.0'
LIBVPX_BUILD_VP9 = False
+sys.path.append(os.path.join(SCRIPT_DIR, '..', 'libs'))
+from generate_licenses import LicenseBuilder
+
def _ParseArgs():
parser = argparse.ArgumentParser(description=__doc__)
@@ -224,13 +227,13 @@ def main():
_RunCommand(cmd)
# Generate the license file.
- license_script_path = os.path.join(SCRIPT_DIR, 'generate_licenses.py')
ninja_dirs = [os.path.join(args.output_dir, arch + '_libs')
for arch in architectures]
gn_target_full_name = '//webrtc/sdk:' + gn_target_name
- cmd = [sys.executable, license_script_path, gn_target_full_name,
- os.path.join(args.output_dir, SDK_FRAMEWORK_NAME)] + ninja_dirs
- _RunCommand(cmd)
+ builder = LicenseBuilder(ninja_dirs, [gn_target_full_name])
+ builder.GenerateLicenseText(
+ os.path.join(args.output_dir, SDK_FRAMEWORK_NAME))
+
# Modify the version number.
# Format should be <Branch cut MXX>.<Hotfix #>.<Rev #>.
« no previous file with comments | « tools_webrtc/android/build_aar.py ('k') | tools_webrtc/ios/generate_licenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698