Generate license file separately
So,
The license file doesn't need to be generated for each apk.
The file could reused by downstream apk.
BUG=546219
Review URL: https://codereview.chromium.org/1412633004
Cr-Commit-Position: refs/heads/master@{#357185}
diff --git a/android_webview/android_webview.gyp b/android_webview/android_webview.gyp
index 542b0e90..de442b5 100644
--- a/android_webview/android_webview.gyp
+++ b/android_webview/android_webview.gyp
@@ -126,6 +126,24 @@
'<@(_outputs)',
],
},
+ {
+ 'action_name': 'generate_webview_license_notice',
+ 'inputs': [
+ '<!@(python <(DEPTH)/android_webview/tools/webview_licenses.py notice_deps)',
+ '<(DEPTH)/android_webview/tools/licenses_notice.tmpl',
+ '<(DEPTH)/android_webview/tools/webview_licenses.py',
+ ],
+ 'outputs': [
+ '<(webview_licenses_path)',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/android_webview/tools/webview_licenses.py',
+ 'notice',
+ '<(webview_licenses_path)',
+ ],
+ 'message': 'Generating WebView license notice',
+ },
],
},
# GN version: //android_webview/locale_paks