示例#1
0
        and platform != 'win32' and platform != 'win64'):
    print 'Unsupported target \"' + platform + '\"'
    sys.exit()

# script directory
script_dir = os.path.dirname(__file__)

# CEF root directory
jcef_dir = os.path.abspath(os.path.join(script_dir, os.pardir))

# src directory
src_dir = os.path.abspath(os.path.join(jcef_dir, os.pardir))

# retrieve url and revision information for CEF
if svn.is_checkout(jcef_dir) or svn.is_checkout(src_dir):
    jcef_info = svn.get_svn_info(jcef_dir)
    jcef_url = jcef_info['url']
    jcef_rev = jcef_info['revision']
elif git.is_checkout(jcef_dir) or git.is_checkout(src_dir):
    jcef_url = git.get_url(jcef_dir)
    jcef_rev = git.get_svn_revision(jcef_dir)
else:
    raise Exception('Not a valid checkout: %s' % (cef_dir))

date = get_date()

# Read and parse the version file (key=value pairs, one per line)
args = {}
read_readme_file(
    os.path.join(jcef_dir, 'third_party/cef/' + platform + '/README.txt'),
    args)
if platform == 'windows' and options.x64build and not options.ninjabuild:
    print 'x64 build on Windows requires ninja'
    sys.exit()

# script directory
script_dir = os.path.dirname(__file__)

# CEF root directory
cef_dir = os.path.abspath(os.path.join(script_dir, os.pardir))

# src directory
src_dir = os.path.abspath(os.path.join(cef_dir, os.pardir))

# retrieve url and revision information for CEF
if svn.is_checkout(cef_dir):
    cef_info = svn.get_svn_info(cef_dir)
    cef_url = cef_info['url']
    cef_rev = cef_info['revision']
elif git.is_checkout(cef_dir):
    cef_url = git.get_url(cef_dir)
    cef_rev = git.get_svn_revision(cef_dir)
else:
    raise Exception('Not a valid checkout: %s' % (cef_dir))

# retrieve url and revision information for Chromium
if svn.is_checkout(src_dir):
    chromium_info = svn.get_svn_info(src_dir)
    chromium_url = chromium_info['url']
    chromium_rev = chromium_info['revision']
elif git.is_checkout(src_dir):
    chromium_url = git.get_url(src_dir)
示例#3
0
# CEF root directory
cef_dir = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir,
                                       'cef'))

# src directory
src_dir = os.path.abspath(os.path.join(cef_dir, os.pardir))

# retieve heX's url, revision and date information
if os.path.exists(os.path.join(hex_dir, '.svn')):
    hex_rev = svn.get_revision()
elif os.path.exists(os.path.join(hex_dir, '.git')):
    hex_rev = git.get_svn_revision()
else:
    hex_rev = '"unknown"'

hex_info = svn.get_svn_info(hex_dir)
hex_url = hex_info['url']

# retrieve url, revision and date information
cef_info = svn.get_svn_info(cef_dir)
cef_url = cef_info['url']
cef_rev = cef_info['revision']
chromium_info = svn.get_svn_info(os.path.join(cef_dir, os.pardir))
chromium_url = chromium_info['url']
chromium_rev = chromium_info['revision']
date = get_date()

# Read and parse the version file (key=value pairs, one per line)
args = {}
read_version_file(os.path.join(hex_dir, 'VERSION'), args)
read_version_file(os.path.join(cef_dir, 'VERSION'), args)