Lines Matching +full:download +full:- +full:url
2 # reserved. Use of this source code is governed by a BSD-style license that
33 depot_tools_archive_url = 'https://storage.googleapis.com/chrome-infra/depot_tools.zip'
53 sys.stdout.write('--> ' + message + "\n")
63 sys.stdout.write('-------- Running "'+command_line+'" in "'+\
73 with open(output_file, 'w', encoding='utf-8') as fp:
135 sys.stdout.write("-------- Running \"%s\" in \"%s\"...\n" % (cmd, path))
150 return {'out': out.decode('utf-8'), 'err': err.decode('utf-8')}
155 cmd = "%s rev-parse %s" % (git_exe, branch)
164 cmd = "%s show -s --format=%%ct %s" % (git_exe, branch)
168 int(result['out'].strip())).strftime('%Y-%m-%d %H:%M:%S UTC')
173 """ Returns the origin url for the specified path. """
174 cmd = "%s config --get remote.origin.url" % (git_exe)
182 """ Extracts the contents of src, which may be a URL or local file, to the
187 # Attempt to download a URL.
222 with open(path, 'r', encoding='utf-8') as fp:
230 fp.write(data.decode('utf-8'))
239 with open(path, 'w', encoding='utf-8') as fp:
280 run('%s %s --patch-file "%s" --patch-dir "%s"' %
316 If the error is for another reason it re-raises the error.
329 def read_json_url(url): argument
330 """ Read a JSON URL. """
331 msg('Downloading %s' % url)
332 return json.loads(urlopen(url).read())
374 # Using -2 because a "Publish DEPS" commit which does not have a master
376 cmd = "%s log -2 %s" % (git_exe, commit)
387 cmd = '%s log -1 --grep=refs/heads/master@{#%s} --grep=refs/heads/main@{#%s} origin/main' % (
391 match = re.search(r'^commit ([a-f0-9]+)', result['out'])
400 cmd = '%s tag --contains %s' % (git_exe, commit)
524 cmd = '%s diff --relative --no-prefix %s..%s -- %s' % (
543 fp = open(output_file, 'w', encoding='utf-8')
554 cmd = '%s grep -n -f %s' % (git_exe, pattern_file)
602 # Parse command-line options.
604 This utility implements automation for the download, update, build and
612 '--download-dir',
615 help='Download directory with no spaces [required].')
617 '--depot-tools-dir',
620 help='Download directory for depot_tools.',
622 parser.add_option('--depot-tools-archive', dest='depottoolsarchive',
623 help='Zip archive file that contains a single top-level '+\
625 parser.add_option('--branch', dest='branch',
627 'will be used to name the CEF download directory and '+\
628 'to identify the correct URL if --url is not '+\
631 parser.add_option('--url', dest='url',
632 help='CEF download URL. If not specified the default URL '+\
635 parser.add_option('--chromium-url', dest='chromiumurl',
636 help='Chromium download URL. If not specified the default '+\
637 'URL will be used.',
639 parser.add_option('--checkout', dest='checkout',
643 parser.add_option('--chromium-checkout', dest='chromiumcheckout',
648 parser.add_option('--chromium-channel', dest='chromiumchannel',
653 parser.add_option('--chromium-channel-distance', dest='chromiumchanneldistance',
656 'Used in combination with --chromium-channel.',
661 '--force-config',
666 parser.add_option('--force-clean',
670 parser.add_option('--force-clean-deps',
673 ' in combination with --force-clean.')
675 '--dry-run',
680 parser.add_option('--dry-run-platform', dest='dryrunplatform', default=None,
683 ' with the --dry-run flag.')
685 # Update-related options.
686 parser.add_option('--force-update',
690 parser.add_option('--no-update',
692 help='Do not update Chromium or CEF. Pass --force-build or '+\
693 '--force-distrib if you desire a new build or '+\
695 parser.add_option('--no-cef-update',
697 help='Do not update CEF. Pass --force-build or '+\
698 '--force-distrib if you desire a new build or '+\
700 parser.add_option('--force-cef-update',
706 '--no-chromium-update',
712 '--no-depot-tools-update',
717 parser.add_option('--fast-update',
724 '--force-patch-update',
730 '--resave',
736 '--log-chromium-changes',
742 # Build-related options.
743 parser.add_option('--force-build',
746 '[build-target] on all platforms and chrome_sandbox '+\
749 '--no-build',
755 '--build-target',
760 '--build-tests',
764 help='Also build the test target specified via --test-target.')
766 '--no-debug-build',
772 '--no-release-build',
778 '--verbose-build',
784 '--build-failure-limit',
789 parser.add_option('--build-log-file',
792 '"build-[branch]-[debug|release].log" in the download '+\
795 '--x64-build',
799 help='Create a 64-bit build.')
801 '--arm-build',
807 '--arm64-build',
813 # Test-related options.
815 '--run-tests',
821 '--no-debug-tests',
827 '--no-release-tests',
833 '--test-target',
838 '--test-prefix',
841 help='Prefix for running the test executable (e.g. `xvfb-run` on Linux).')
843 '--test-args',
848 # Distribution-related options.
850 '--force-distrib',
856 '--no-distrib',
862 '--minimal-distrib',
868 '--minimal-distrib-only',
874 '--client-distrib',
880 '--client-distrib-only',
886 '--sandbox-distrib',
892 '--sandbox-distrib-only',
898 '--no-distrib-docs',
904 '--no-distrib-archive',
910 '--clean-artifacts',
916 '--distrib-subdir',
921 '--distrib-subdir-suffix',
930 print("The --download-dir option is required.")
934 # Opt into component-specific flags for later use.
967 print("A test target must be specified via --test-target.")
975 print('Invalid dry-run-platform value: %s' % (platform))
992 if options.buildtarget.find(client_app) == -1:
993 print('A client distribution cannot be generated if --build-target ' +
1039 print('32-bit MacOS builds are not supported. ' +
1040 'Add --x64-build or --arm64-build flag to generate a 64-bit build.')
1060 print('--resave cannot be combined with options that modify or discard ' +
1081 # Manage the download directory.
1084 # Create the download directory if necessary.
1087 msg("Download Directory: %s" % (download_dir))
1103 # On Windows download depot_tools as an archive file since we can't assume
1119 # On Windows this will download required python and git binaries.
1133 sys.stdout.write("WARNING: --dry-run assumes that depot_tools" \
1135 " specify a --depot-tools-dir value.\n")
1154 # Determine the CEF download URL to use.
1155 cef_url = options.url.strip()
1159 # Verify that the requested CEF URL matches the existing checkout.
1164 'Requested CEF checkout URL %s does not match existing URL %s' %
1168 msg("CEF URL: %s" % (cef_url))
1209 run_patch_updater("--backup --revert")
1213 (git_exe, '--force ' if discard_local_changes else '', cef_checkout), \
1225 (git_exe, '--force ' if discard_local_changes else '', depot_tools_compat_version), \
1263 "'url': '" + chromium_url + "', "+\
1271 "'commit-queue': None, "+\
1284 with open(gclient_file, 'w', encoding='utf-8') as fp:
1290 run("gclient sync --nohooks --with_branch_heads --jobs 16", \
1300 msg("Chromium URL: %s" % (get_git_url(chromium_src_dir)))
1308 run("%s fetch --tags" % (git_exe), chromium_src_dir, depot_tools_dir)
1337 # Delete the existing src/cef directory. It will be re-copied from the
1338 # download directory later.
1343 run_patch_updater("--backup --revert")
1349 # Move the existing src/out directory to the correct location in the download
1350 # directory. It will be moved back from the download directory later.
1362 # Remove all local changes including third-party git checkouts managed by
1364 run("%s clean -dffx" % (git_exe), chromium_src_dir, depot_tools_dir)
1367 run("gclient revert --nohooks", chromium_dir, depot_tools_dir)
1371 (git_exe, '--force ' if discard_local_changes else '', chromium_checkout), \
1377 # Update third-party dependencies including branch/tag information.
1378 run("gclient sync %s--nohooks --with_branch_heads --jobs 16" % \
1379 ('--reset ' if discard_local_changes else ''), chromium_dir, depot_tools_dir)
1385 run("gclient runhooks --jobs 16", chromium_dir, depot_tools_dir)
1394 run_patch_updater("--reapply --restore")
1416 # Not using the known-compatible Chromium version. Try to update patch files.
1426 run_patch_updater("--resave")
1452 # Print all build-related environment variables including any that were set
1467 command += '-v '
1469 command += '-k %d ' % options.buildfailurelimit
1470 command += '-C '
1484 os.path.join(download_dir, 'build-%s-debug.log' % (cef_branch)) \
1495 os.path.join(download_dir, 'build-%s-debug-sandbox.log' % (cef_branch)) \
1505 os.path.join(download_dir, 'build-%s-release.log' % (cef_branch)) \
1516 os.path.join(download_dir, 'build-%s-release-sandbox.log' % (cef_branch)) \
1593 path = '%s make_distrib.py --output-dir=../binary_distrib/' % python_exe
1596 path += ' --allow-partial'
1597 path = path + ' --ninja-build'
1599 path += ' --x64-build'
1601 path += ' --arm-build'
1603 path += ' --arm64-build'
1606 path += ' --minimal'
1608 path += ' --client'
1610 path += ' --sandbox'
1614 path += ' --no-docs'
1616 path += ' --no-archive'
1620 path += ' --no-symbols --no-docs'
1624 path += ' --distrib-subdir=' + options.distribsubdir
1626 path += ' --distrib-subdir-suffix=' + options.distribsubdirsuffix