aboutsummaryrefslogtreecommitdiff
path: root/tools_webrtc
diff options
context:
space:
mode:
authorByoungchan Lee <daniel.l@hpcnt.com>2022-06-23 01:39:14 +0900
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-22 22:10:41 +0000
commit1776f6e019822331c15a7c54381623be42820761 (patch)
tree85fe698c437e9231c33ef948ab2e168b1fb70ed8 /tools_webrtc
parent179f40e81a461a9978701f6d830f8fdad92d5e2e (diff)
downloadwebrtc-1776f6e019822331c15a7c54381623be42820761.tar.gz
Temporary make generate_license.py to work with non-existing paths.
The recent change in chromium, libevent, was moved from base/third_party to third_party. While GN build works by transient GN build targets, building an android archive does not work because it requires libevent's license file in the specific path. To unblock autoroller, temporarily make generate_license.py work with non-existing paths. Bug: chromium:1335194 Change-Id: Icb79a27c4c41f603e5ffc9170f4ecb7440ec9e29 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/266520 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Auto-Submit: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> Cr-Commit-Position: refs/heads/main@{#37307}
Diffstat (limited to 'tools_webrtc')
-rwxr-xr-xtools_webrtc/libs/generate_licenses.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools_webrtc/libs/generate_licenses.py b/tools_webrtc/libs/generate_licenses.py
index d8054770c3..bcc6890465 100755
--- a/tools_webrtc/libs/generate_licenses.py
+++ b/tools_webrtc/libs/generate_licenses.py
@@ -53,7 +53,8 @@ LIB_TO_LICENSES_DICT = {
'libaom': ['third_party/libaom/source/libaom/LICENSE'],
'libc++': ['buildtools/third_party/libc++/trunk/LICENSE.TXT'],
'libc++abi': ['buildtools/third_party/libc++abi/trunk/LICENSE.TXT'],
- 'libevent': ['base/third_party/libevent/LICENSE'],
+ 'libevent':
+ ['base/third_party/libevent/LICENSE', 'third_party/libevent/LICENSE'],
'libjpeg_turbo': ['third_party/libjpeg_turbo/LICENSE.md'],
'libsrtp': ['third_party/libsrtp/LICENSE'],
'libunwind': ['buildtools/third_party/libunwind/trunk/LICENSE.TXT'],
@@ -220,6 +221,9 @@ class LicenseBuilder:
output_license_file.write('```\n')
for path in self.common_licenses_dict[license_lib]:
license_path = os.path.join(WEBRTC_ROOT, path)
+ # TODO(crbug.com/1335194) Workaround for unblocking autoroller.
+ if license_lib == "libevent" and not os.path.exists(license_path):
+ continue
with open(license_path, 'r') as license_file:
license_text = escape(license_file.read(), quote=True)
output_license_file.write(license_text)