Add webengine resources

This commit is contained in:
Kovid Goyal 2019-08-29 10:27:20 +05:30
parent 0f0df3b5e2
commit 7710697ea1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -162,6 +162,10 @@ def copy_python(env, ext_dir):
shutil.copy2(x, j(pdir, os.path.basename(x)))
shutil.copytree(j(env.src_root, 'resources'), j(env.base, 'resources'))
for pak in glob.glob(j(QT_PREFIX, 'resources', '*.pak')):
shutil.copy2(pak, j(env.base, 'resources'))
os.mkdir(j(env.base, 'translations'))
shutil.copytree(j(QT_PREFIX, 'translations', 'qtwebengine_locales'), j(env.base, 'translations', 'qtwebengine_locales'))
sitepy = j(self_dir, 'site.py')
shutil.copy2(sitepy, j(env.py_dir, 'site.py'))
@ -248,6 +252,7 @@ def strip_binaries(env):
x = os.path.realpath(x)
if x not in files and is_elf(x):
files.add(x)
files.add(j(env.lib_dir, '..', 'libexec', 'QtWebEngineProcess'))
print('Stripping %d files...' % len(files))
before = sum(os.path.getsize(x) for x in files)
strip_files(files)