Linux: Add CEF_INSTALL_SYSROOT env variable for calling install-sysroot.py (see issue #1990)

This commit is contained in:
Marshall Greenblatt 2020-01-16 15:07:55 +01:00
parent 679850a267
commit f2f6ae4f29
1 changed files with 11 additions and 0 deletions

View File

@ -39,6 +39,17 @@ print("\nPatching build configuration and source files for CEF...")
cmd = [sys.executable, 'tools/patcher.py'] cmd = [sys.executable, 'tools/patcher.py']
RunAction(cef_dir, cmd) RunAction(cef_dir, cmd)
if platform == 'linux' and 'CEF_INSTALL_SYSROOT' in os.environ:
for arch in os.environ['CEF_INSTALL_SYSROOT'].split(','):
if len(arch) == 0:
continue
print("\nInstalling %s sysroot environment..." % arch)
cmd = [
sys.executable, 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch', arch
]
RunAction(src_dir, cmd)
print("\nGenerating CEF project files...") print("\nGenerating CEF project files...")
gn_args = {} gn_args = {}