-
Notifications
You must be signed in to change notification settings - Fork 30
/
qtwebengine_git.bbappend
37 lines (29 loc) · 1.71 KB
/
qtwebengine_git.bbappend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
DEPENDS += "luna-service2 pmloglib"
# Enable proprietary codecs (for MP3 etc), pepper-plugins (Flash & WideVine), Print to PDF, spellchecke
PACKAGECONFIG += "proprietary-codecs pepper-plugins printing-and-pdf spellchecker webrtc"
# Activate some more detailed debug info
# EXTRA_QMAKEVARS_PRE += " CONFIG+=force_debug_info CONFIG+=webcore_debug "
inherit webos_ports_fork_repo
SRC_URI = " \
${WEBOS_PORTS_GIT_REPO_COMPLETE};name=qtwebengine \
${WEBOS_PORTS_GIT_REPO}/qtwebengine-chromium;name=chromium${WEBOS_GIT_BRANCH};destsuffix=git/src/3rdparty \
file://qtwebengine.conf \
"
WEBOS_GIT_PARAM_BRANCH = "webOS-ports/master"
# webOS-ports/master-20210127
SRCREV_qtwebengine = "62ac7b09a1ce3f991a4042582e9685543cb277c9"
# webOS-ports/master-20210127
SRCREV_chromium = "ac40d97f7a339f95c919c9fc0da0a3bebc9a2db7"
do_install_append() {
# Create the chromium folder already so users can right away push the required plugins there
mkdir -p ${D}${libdir}/chromium
# Install qtwebengine.conf, which contains all the environment variables needed to start qtwebengine
install -d ${D}${sysconfdir}/luna-next
install -m 0644 ${WORKDIR}/qtwebengine.conf ${D}${sysconfdir}/luna-next/
# Store the Chromium version so it can be picked up by LuneOS Components in order to update the UserAgent with the correct Qt and Chromium version automatically
mkdir -p ${D}${datadir}/qtwebengine
grep "^chromium_version" ${S}/tools/scripts/version_resolver.py | awk -F "'" '/1/ {print $2}' > ${D}${datadir}/qtwebengine/chromium-version.txt
echo ${QT_MODULE_BRANCH} > ${D}${datadir}/qtwebengine/qt-version.txt
}
FILES_${PN} += "${libdir}/chromium ${sysconfdir}/luna-next/"