Improvements to automate-git.py for local mirror support (issue #1728)

- Add new command-line flags:
  --chromium-url: Allows overriding the synced Chromium URL.
  --no-cef-update: Allows bypassing the step to sync CEF.
  --no-chromium-update: Allows bypassing the step to sync Chromium.
  --no-depot-tools-update: Allows bypassing the step to update depot_tools.
  --distrib-subdir: Allows specifying the subdirectory name of
    chromium/src/cef/binary_distrib.
- Add support in make_distrib.py for the --distrib-subdir flag.
- Change CMake requirement from 2.8.12.2 to 2.8.12.1.
This commit is contained in:
Marshall Greenblatt
2015-11-13 10:48:19 -05:00
parent c6111d5947
commit 07d75e540f
3 changed files with 60 additions and 13 deletions

View File

@ -199,6 +199,9 @@ This utility builds the CEF Binary Distribution.
parser = OptionParser(description=disc)
parser.add_option('--output-dir', dest='outputdir', metavar='DIR',
help='output directory [required]')
parser.add_option('--distrib-subdir', dest='distribsubdir',
help='name of the subdirectory for the distribution',
default='')
parser.add_option('--allow-partial',
action='store_true', dest='allowpartial', default=False,
help='allow creation of partial distributions')
@ -307,7 +310,11 @@ if platform == 'linux':
# output directory
output_dir_base = 'cef_binary_' + cef_ver
output_dir_name = output_dir_base + '_' + platform + platform_arch
if options.distribsubdir == '':
output_dir_name = output_dir_base + '_' + platform + platform_arch
else:
output_dir_name = options.distribsubdir
if options.minimal:
mode = 'minimal'