2014-01-31 04:18:30 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-06-04 15:24:38 +00:00
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
|
2014-12-18 00:25:25 +00:00
|
|
|
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
2015-01-22 20:59:53 +00:00
|
|
|
LIBCHROMIUMCONTENT_COMMIT = 'c1fc4ea031b82e4d85066b4b5cfc199e817448ee'
|
2014-06-04 15:24:38 +00:00
|
|
|
|
|
|
|
ARCH = {
|
|
|
|
'cygwin': '32bit',
|
|
|
|
'darwin': '64bit',
|
|
|
|
'linux2': platform.architecture()[0],
|
|
|
|
'win32': '32bit',
|
|
|
|
}[sys.platform]
|
|
|
|
DIST_ARCH = {
|
|
|
|
'32bit': 'ia32',
|
|
|
|
'64bit': 'x64',
|
|
|
|
}[ARCH]
|
|
|
|
|
|
|
|
TARGET_PLATFORM = {
|
|
|
|
'cygwin': 'win32',
|
|
|
|
'darwin': 'darwin',
|
|
|
|
'linux2': 'linux',
|
|
|
|
'win32': 'win32',
|
|
|
|
}[sys.platform]
|
2014-12-08 17:00:35 +00:00
|
|
|
|
|
|
|
verbose_mode = False
|
|
|
|
|
|
|
|
def enable_verbose_mode():
|
|
|
|
print 'Running in verbose mode'
|
|
|
|
global verbose_mode
|
|
|
|
verbose_mode = True
|
|
|
|
|
|
|
|
def is_verbose_mode():
|
|
|
|
return verbose_mode
|