Skip to content
Snippets Groups Projects
Commit 5a4f544c authored by Ryan Gonzalez's avatar Ryan Gonzalez
Browse files

Add support for persisting the font cache

parent f5d56164
No related branches found
No related tags found
1 merge request!14Add several features used for the reference runtime
......@@ -35,6 +35,7 @@
{{- $separate_locales := or .separate_locales false -}}
{{- $locales_tarball := or .locales_tarball "" -}}
{{- $custom_overlay := or .custom_overlay false -}}
{{- $persist_font_cache := or .persist_font_cache "" -}}
architecture: {{ $architecture }}
......@@ -227,6 +228,19 @@ actions:
command: "$RECIPEDIR/separate-locales" "$ROOTDIR/usr" "$ROOTDIR/usr/share/runtime/locale"
{{ end }}
{{ if $persist_font_cache }}
- action: run
description: Persist the font cache
label: fc-cache
chroot: true
command: |
set -e
fc-cache -fsv
mkdir -p /usr/cache
mv /var/cache/fontconfig "{{ $persist_font_cache }}"
{{ end }}
{{ if not $sdk }}
- action: run
label: copy manifest for SDK
......
......@@ -250,6 +250,7 @@ class Builder:
self.sdk_variant_id = None
self.debug_symbols = True
self.automatic_dbgsym = True
self.persist_font_cache = None
self.collect_source_code = True
self.strict = False
self.do_platform = False
......@@ -710,6 +711,9 @@ class Builder:
else:
self.automatic_dbgsym = args.automatic_dbgsym
self.persist_font_cache = self.suite_details.get(
'persist_font_cache', '')
if self.do_sdk:
self.collect_source_code = args.collect_source_code
else:
......@@ -1227,6 +1231,8 @@ class Builder:
'-t', 'runtime_branch:{}'.format(self.runtime_branch),
'-t', 'strip_source_version_suffix:{}'.format(
self.strip_source_version_suffix),
'-t', 'persist_font_cache:{}'.format(
self.persist_font_cache),
]
if self.apt_debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment