diff options
| author | Kai Koehne <kai.koehne@qt.io> | 2017-06-30 13:10:07 +0200 |
|---|---|---|
| committer | Kai Koehne <kai.koehne@qt.io> | 2017-07-04 08:02:23 +0000 |
| commit | 2d8af0267d5cd1023510d43c8323a39c60dd57e1 (patch) | |
| tree | 30acb12b905eab68368d5cc5b32295cb1f3e1ecf /chromium | |
| parent | 4eac3c9a2bae80ddf63a532fa157a56d2696561d (diff) | |
| download | qtwebengine-chromium-2d8af0267d5cd1023510d43c8323a39c60dd57e1.tar.gz | |
Fix build of documentation
Remove logic to include the scanning in the .gn files.
This depends on Android code currently stripped from qtwebengine.git.
Also, we don't need it, since we scan as part of the documentation
generation.
Task-number: QTBUG-61693
Change-Id: I868fd35ce48169da625f16b903134a4e62be5a31
Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium')
| -rwxr-xr-x | chromium/tools/licenses.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/chromium/tools/licenses.py b/chromium/tools/licenses.py index 51ce8289d29..b49b4fc543e 100755 --- a/chromium/tools/licenses.py +++ b/chromium/tools/licenses.py @@ -21,11 +21,7 @@ import os import subprocess import sys -# TODO(agrieve): Move build_utils.WriteDepFile into a non-android directory. _REPOSITORY_ROOT = os.path.dirname(os.path.dirname(__file__)) -sys.path.append(os.path.join(_REPOSITORY_ROOT, 'build/android/gyp/util')) -import build_utils - # Paths from the root of the tree to directories to skip. PRUNE_PATHS = set([ @@ -576,19 +572,6 @@ def GenerateCredits( else: print template_contents - if depfile: - assert output_file - # Add in build.ninja so that the target will be considered dirty whenever - # gn gen is run. Otherwise, it will fail to notice new files being added. - # This is still no perfect, as it will fail if no build files are changed, - # but a new README.chromium / LICENSE is added. This shouldn't happen in - # practice however. - license_file_list = (entry['license_file'] for entry in entries) - license_file_list = (os.path.relpath(p) for p in license_file_list) - license_file_list = sorted(set(license_file_list)) - build_utils.WriteDepfile(depfile, output_file, - license_file_list + ['build.ninja']) - return True @@ -606,7 +589,6 @@ def main(): help='GN target to scan for dependencies.') parser.add_argument('command', choices=['help', 'scan', 'credits']) parser.add_argument('output_file', nargs='?') - build_utils.AddDepfileOption(parser) args = parser.parse_args() if args.command == 'scan': @@ -615,7 +597,7 @@ def main(): elif args.command == 'credits': if not GenerateCredits(args.file_template, args.entry_template, args.output_file, args.target_os, - args.gn_out_dir, args.gn_target, args.depfile): + args.gn_out_dir, args.gn_target): return 1 else: print __doc__ |
