Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
From 7ae73da23ad998bd1e63ad213cf7a02e61191951 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sat, 23 May 2020 19:01:19 +0200
|
||||
Subject: [PATCH] gn.pro: don't link statically with libstc++
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
While cross-compiling, qt5webengine is building a host tool but
|
||||
want to link the libstdc++ statically. This requires to install
|
||||
libstdc++-static package on the host (Fedora package name).
|
||||
|
||||
Otherwise the link fail with:
|
||||
|
||||
[185/185] LINK gn
|
||||
FAILED: gn
|
||||
/usr/bin/g++ -O3 -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-strip-all -Wl,--as-needed -static-libstdc++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o base.a gn_lib.a -Wl,--end-group -ldl
|
||||
/usr/bin/ld : unable to find -lstdc++
|
||||
[...]
|
||||
Project ERROR: GN build error!
|
||||
|
||||
Add --no-static-libstdc++ argument to gn.pro to link to
|
||||
libstdc++.so.6 instead of libstdc++.a.
|
||||
|
||||
--no-static-libstdc++ has been added by [1] but it force
|
||||
linking statically by default.
|
||||
|
||||
[1] https://github.com/qt/qtwebengine-chromium/commit/cfab9198a9917f42cf08b1caf84ab9b71aac1911#diff-905c8f054808213577c0a92d1b704615
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
[Giulio: rebased to qt5.15.10]
|
||||
---
|
||||
src/buildtools/gn.pro | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/buildtools/gn.pro b/src/buildtools/gn.pro
|
||||
index f94694da0..19079a5b3 100644
|
||||
--- a/src/buildtools/gn.pro
|
||||
+++ b/src/buildtools/gn.pro
|
||||
@@ -20,7 +20,8 @@ build_pass|!debug_and_release {
|
||||
|
||||
gn_gen_args = --no-last-commit-position --out-path $$out_path \
|
||||
--cc \"$$which($$QMAKE_CC)\" --cxx \"$$which($$QMAKE_CXX)\" \
|
||||
- --ld \"$$which($$QMAKE_LINK)\"
|
||||
+ --ld \"$$which($$QMAKE_LINK)\" \
|
||||
+ --no-static-libstdc++
|
||||
!isEmpty(QMAKE_AR): gn_gen_args += --ar \"$$which($$first(QMAKE_AR))\"
|
||||
|
||||
msvc:!clang_cl: gn_gen_args += --use-lto
|
||||
--
|
||||
2.34.1
|
||||
@@ -0,0 +1,69 @@
|
||||
From b00f7b41ffdee03f9982287d61c2fa21ebee5e6b Mon Sep 17 00:00:00 2001
|
||||
From: Arnout Vandecappelle <arnout@rnout.be>
|
||||
Date: Sat, 17 May 2025 22:09:32 +0200
|
||||
Subject: [PATCH] configure.pri: remove some of the thumb detection logic
|
||||
|
||||
The hasThumbFlag test has a roundabout way of discovering whether thumb
|
||||
is available. It looks at the -mthumb and -marm flag (which does make
|
||||
some sense), but then it tries to look at -march to determine which ARM
|
||||
architecture version is used. That test doesn't work if GCC is
|
||||
configured for a default target architecture and no -march is passed on
|
||||
the command line.
|
||||
|
||||
In Buildroot, we don't pass any -mthumb, -marm or -march in CFLAGS
|
||||
because all of that is included in the toolchain wrapper. Therefore, the
|
||||
logic has nothing to determine the target ARM ISA version and returns
|
||||
false.
|
||||
|
||||
As a result, nothing is passed down to gn, and gn adds -marm to the
|
||||
build. There is in fact a warning about this:
|
||||
|
||||
WARNING: Thumb instruction set is required to build ffmpeg for QtWebEngine.
|
||||
|
||||
but since it's just a warning, it gets ignored.
|
||||
|
||||
Indeed, the build does fail (when ffmpeg is built, i.e. when
|
||||
BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS is enabled) with:
|
||||
|
||||
FAILED: obj/third_party/ffmpeg/ffmpeg_internal/vp8.o
|
||||
[...]
|
||||
{standard input}: Assembler messages:
|
||||
{standard input}:1119: Error: bad instruction `ldrhcs r0,[ip],#2'
|
||||
{standard input}:1156: Error: bad instruction `ldrhcs r9,[ip],#2'
|
||||
|
||||
In practice, the architecture version doesn't really matter, because all
|
||||
the architectures supported by JSCore have thumb.
|
||||
|
||||
Therefore, remove the logic for detecting if the CPU architecture
|
||||
supports thumb. Do keep the -marm and -mthumb logic, even though in
|
||||
Buildroot it doesn't do anything, and the warning gets ignored.
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
|
||||
Upstream: It's not clear if the same logic about JSCore applies in
|
||||
upstream, so not sent.
|
||||
---
|
||||
configure.pri | 8 --------
|
||||
1 file changed, 8 deletions(-)
|
||||
|
||||
diff --git a/configure.pri b/configure.pri
|
||||
index cb53c93b0..73a0e7a2a 100644
|
||||
--- a/configure.pri
|
||||
+++ b/configure.pri
|
||||
@@ -384,14 +384,6 @@ defineTest(qtConfTest_hasThumbFlag) {
|
||||
!isEmpty(FLAG): return(true)
|
||||
FLAG = $$qtwebengine_extractCFlag("-marm")
|
||||
!isEmpty(FLAG): return(false)
|
||||
-
|
||||
- MARCH = $$qtwebengine_extractCFlag("-march=.*")
|
||||
- MARMV = $$replace(MARCH, "armv",)
|
||||
- !isEmpty(MARMV) {
|
||||
- MARMV = $$split(MARMV,)
|
||||
- MARMV = $$member(MARMV, 0)
|
||||
- }
|
||||
- if (isEmpty(MARMV) | lessThan(MARMV, 7)): return(false)
|
||||
# no flag assume mthumb
|
||||
return(true)
|
||||
}
|
||||
--
|
||||
2.49.0
|
||||
|
||||
110
package/qt5/qt5webengine/Config.in
Normal file
110
package/qt5/qt5webengine/Config.in
Normal file
@@ -0,0 +1,110 @@
|
||||
config BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_aarch64 || BR2_arm || \
|
||||
BR2_i386 || BR2_x86_64 || \
|
||||
BR2_mips || BR2_mips64
|
||||
# -m32 flag is used for 32bit builds and host tools have
|
||||
# limited architecture support
|
||||
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
|
||||
depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE # qt5declarative
|
||||
depends on !BR2_BINFMT_FLAT # qt5base-icu
|
||||
depends on BR2_USE_MMU # libglib2, qt5base-dbus
|
||||
|
||||
comment "qt5webengine needs udev /dev management and a glibc toolchain w/ gcc >= 7, threads, wchar, host gcc >= 7"
|
||||
depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC || \
|
||||
!BR2_HOST_GCC_AT_LEAST_7 || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
|
||||
comment "qt5webengine needs an OpenGL and EGL-capable backend"
|
||||
depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
|
||||
depends on !BR2_PACKAGE_QT5_GL_AVAILABLE || !BR2_PACKAGE_HAS_LIBEGL
|
||||
|
||||
config BR2_PACKAGE_QT5WEBENGINE
|
||||
bool "qt5webengine"
|
||||
depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC # execinfo.h, mallinfo
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # qt5base-icu
|
||||
depends on BR2_HOST_GCC_AT_LEAST_7 # qt5base-icu
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libvpx
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_PACKAGE_QT5_GL_AVAILABLE # qt5declarative, qt5base-eglfs
|
||||
depends on BR2_PACKAGE_HAS_LIBEGL # qt5base-eglfs
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
select BR2_PACKAGE_HOST_NODEJS
|
||||
# v8 (a chromium 3rd-party) compiles its internal host-tools with the
|
||||
# same word size as the target. For 32-bits targets, it adds the -m32
|
||||
# flag (for 64-bits, it adds the -m64 flag).
|
||||
# https://github.com/v8/v8/blob/5.6.326.55/gypfiles/toolchain.gypi#L1036-L1037
|
||||
select BR2_HOSTARCH_NEEDS_IA32_COMPILER if !BR2_ARCH_IS_64 # v8/chromium
|
||||
select BR2_PACKAGE_LCMS2
|
||||
select BR2_PACKAGE_LIBEVENT
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBNSS
|
||||
select BR2_PACKAGE_LIBVPX
|
||||
select BR2_PACKAGE_LIBXKBCOMMON
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_LIBXSLT
|
||||
select BR2_PACKAGE_MINIZIP
|
||||
select BR2_PACKAGE_OPUS
|
||||
select BR2_PACKAGE_SNAPPY
|
||||
select BR2_PACKAGE_WEBP
|
||||
select BR2_PACKAGE_WEBP_DEMUX
|
||||
select BR2_PACKAGE_WEBP_MUX
|
||||
select BR2_PACKAGE_QT5BASE_DBUS
|
||||
select BR2_PACKAGE_QT5BASE_EGLFS
|
||||
select BR2_PACKAGE_QT5BASE_FONTCONFIG
|
||||
select BR2_PACKAGE_QT5BASE_HARFBUZZ
|
||||
select BR2_PACKAGE_QT5BASE_JPEG
|
||||
select BR2_PACKAGE_QT5BASE_ICU
|
||||
select BR2_PACKAGE_QT5BASE_GUI
|
||||
select BR2_PACKAGE_QT5BASE_PNG
|
||||
select BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
select BR2_PACKAGE_QT5DECLARATIVE
|
||||
select BR2_PACKAGE_QT5DECLARATIVE_QUICK
|
||||
select BR2_PACKAGE_QT5QUICKCONTROLS
|
||||
select BR2_PACKAGE_QT5QUICKCONTROLS2
|
||||
select BR2_PACKAGE_QT5SVG if BR2_PACKAGE_QT5BASE_EXAMPLES
|
||||
select BR2_PACKAGE_QT5WEBCHANNEL
|
||||
select BR2_PACKAGE_QT5WEBENGINE_CHROMIUM
|
||||
select BR2_PACKAGE_XLIB_LIBXCOMPOSITE if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXCURSOR if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXI if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXKBFILE if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXSCRNSAVER if BR2_PACKAGE_QT5BASE_XCB
|
||||
select BR2_PACKAGE_XLIB_LIBXTST if BR2_PACKAGE_QT5BASE_XCB
|
||||
help
|
||||
The Qt WebEngine module provides a web browser engine that
|
||||
makes it easy to embed content from the World Wide Web into
|
||||
your Qt application.
|
||||
|
||||
Qt WebEngine provides C++ classes and QML types for rendering
|
||||
HTML, XHTML, and SVG documents, styled using Cascading Style
|
||||
Sheets (CSS) and scripted with JavaScript. HTML documents can
|
||||
be made fully editable by the user through the use of the
|
||||
contenteditable attribute on HTML elements.
|
||||
|
||||
https://doc.qt.io/qt-5/qtwebengine-index.html
|
||||
|
||||
if BR2_PACKAGE_QT5WEBENGINE
|
||||
|
||||
config BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS
|
||||
bool "proprietary codecs"
|
||||
help
|
||||
Qt WebEngine supports the MPEG-4 Part 14 (MP4) file format,
|
||||
which includes required proprietary audio and video codecs,
|
||||
such as H.264 and MPEG layer-3 (MP3).
|
||||
|
||||
config BR2_PACKAGE_QT5WEBENGINE_ALSA
|
||||
bool "alsa"
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
select BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
select BR2_PACKAGE_ALSA_LIB_HWDEP
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
help
|
||||
Enable ALSA support.
|
||||
|
||||
endif
|
||||
6
package/qt5/qt5webengine/host-pkg-config.in
Normal file
6
package/qt5/qt5webengine/host-pkg-config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
|
||||
PKG_CONFIG_LIBDIR="@HOST_DIR@/lib/pkgconfig:@HOST_DIR@/share/pkgconfig" \
|
||||
exec @HOST_DIR@/bin/pkgconf "$@"
|
||||
3
package/qt5/qt5webengine/host-python-wrapper.in
Normal file
3
package/qt5/qt5webengine/host-python-wrapper.in
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
LD_LIBRARY_PATH="@HOST_DIR@/lib" \
|
||||
exec @HOST_DIR@/bin/python "$@"
|
||||
10
package/qt5/qt5webengine/qt5webengine.hash
Normal file
10
package/qt5/qt5webengine/qt5webengine.hash
Normal file
@@ -0,0 +1,10 @@
|
||||
# Locally calculated
|
||||
sha256 8fa9d026fe0d04cb436ab7a66cdf249d189a91b61c565a1564a9bf05c7c73f7a qtwebengine-v5.15.18-lts.tar.bz2
|
||||
|
||||
# Locally calculated
|
||||
sha256 f34787ef0342c614b667186a6ec2f5d6b9d650e30142a2788a589a89743e88e9 LICENSE.Chromium
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL2
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE.GPL3
|
||||
sha256 0dbe024961f6ab5c52689cbd036c977975d0d0f6a67ff97762d96cb819dd5652 LICENSE.GPL3-EXCEPT
|
||||
sha256 245248009fd0af1725d183248380e476c1283383909358a13686606352bf2a17 LICENSE.GPLv3
|
||||
sha256 9ae1959e86bd49b9680f78e0b49d4e52ae88a3f234d497e175e42a7e8ed59216 LICENSE.LGPL3
|
||||
175
package/qt5/qt5webengine/qt5webengine.mk
Normal file
175
package/qt5/qt5webengine/qt5webengine.mk
Normal file
@@ -0,0 +1,175 @@
|
||||
################################################################################
|
||||
#
|
||||
# qt5webengine
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QT5WEBENGINE_VERSION = $(QT5_VERSION)
|
||||
QT5WEBENGINE_SITE = $(QT5_SITE)/qtwebengine/-/archive/v$(QT5WEBENGINE_VERSION)-lts
|
||||
QT5WEBENGINE_SOURCE = qtwebengine-v$(QT5WEBENGINE_VERSION)-lts.tar.bz2
|
||||
QT5WEBENGINE_DEPENDENCIES = qt5declarative qt5webchannel
|
||||
QT5WEBENGINE_PATCH_DEPENDENCIES = qt5webengine-chromium
|
||||
QT5WEBENGINE_INSTALL_STAGING = YES
|
||||
QT5WEBENGINE_SYNC_QT_HEADERS = YES
|
||||
|
||||
QT5WEBENGINE_LICENSE = GPL-2.0 or LGPL-3.0 or GPL-3.0 or GPL-3.0 with exception
|
||||
QT5WEBENGINE_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPL3 LICENSE.GPL3-EXCEPT \
|
||||
LICENSE.GPLv3 LICENSE.LGPL3
|
||||
|
||||
# command line argument separator
|
||||
QT5WEBENGINE_CONF_OPTS = --
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
||||
QT5WEBENGINE_DEPENDENCIES += qt5svg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
|
||||
QT5WEBENGINE_DEPENDENCIES += \
|
||||
xlib_libXcomposite \
|
||||
xlib_libXcursor \
|
||||
xlib_libXi \
|
||||
xlib_libxkbfile \
|
||||
xlib_libXrandr \
|
||||
xlib_libXScrnSaver \
|
||||
xlib_libXtst
|
||||
QT5WEBENGINE_CONF_OPTS += \
|
||||
-feature-webengine-ozone \
|
||||
-feature-webengine-system-libdrm \
|
||||
-feature-webengine-system-x11 \
|
||||
-feature-webengine-system-xkbfile \
|
||||
-feature-webengine-system-xcomposite \
|
||||
-feature-webengine-system-xcursor \
|
||||
-feature-webengine-system-xi \
|
||||
-feature-webengine-system-xproto-gl \
|
||||
-feature-webengine-system-xtst
|
||||
else
|
||||
QT5WEBENGINE_CONF_OPTS += \
|
||||
-no-feature-webengine-ozone \
|
||||
-no-feature-webengine-system-libdrm \
|
||||
-no-feature-webengine-system-x11 \
|
||||
-no-feature-webengine-system-xkbfile \
|
||||
-no-feature-webengine-system-xcomposite \
|
||||
-no-feature-webengine-system-xcursor \
|
||||
-no-feature-webengine-system-xi \
|
||||
-no-feature-webengine-system-xproto-gl \
|
||||
-no-feature-webengine-system-xtst
|
||||
endif
|
||||
|
||||
QT5WEBENGINE_DEPENDENCIES += \
|
||||
host-bison \
|
||||
host-flex \
|
||||
host-freetype \
|
||||
host-gperf \
|
||||
host-harfbuzz \
|
||||
host-ninja \
|
||||
host-nodejs \
|
||||
host-pkgconf \
|
||||
host-libjpeg \
|
||||
host-libnss \
|
||||
host-libpng \
|
||||
host-python3 \
|
||||
host-webp \
|
||||
host-zlib \
|
||||
freetype \
|
||||
lcms2 \
|
||||
libevent \
|
||||
libnss \
|
||||
libvpx \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
opus \
|
||||
snappy \
|
||||
webp
|
||||
|
||||
QT5WEBENGINE_CONF_OPTS += \
|
||||
-webengine-embedded-build \
|
||||
-webengine-opus \
|
||||
-webengine-webchannel \
|
||||
-webengine-webp \
|
||||
-feature-build-qtwebengine-core \
|
||||
-feature-webengine-core-support \
|
||||
-feature-webengine-noexecstack \
|
||||
-feature-webengine-system-dbus \
|
||||
-feature-webengine-system-fontconfig \
|
||||
-feature-webengine-system-freetype \
|
||||
-feature-webengine-system-glib \
|
||||
-feature-webengine-system-glibc \
|
||||
-feature-webengine-system-harfbuzz \
|
||||
-feature-webengine-system-khr \
|
||||
-feature-webengine-system-lcms2 \
|
||||
-feature-webengine-system-libevent \
|
||||
-feature-webengine-system-libvpx \
|
||||
-feature-webengine-system-libxml2 \
|
||||
-feature-webengine-system-ninja \
|
||||
-feature-webengine-system-nss \
|
||||
-feature-webengine-system-png \
|
||||
-feature-webengine-system-snappy \
|
||||
-feature-webengine-system-zlib
|
||||
|
||||
QT5WEBENGINE_CONF_OPTS += \
|
||||
-no-webengine-geolocation \
|
||||
-no-webengine-kerberos \
|
||||
-no-webengine-pepper-plugins \
|
||||
-no-webengine-printing-and-pdf \
|
||||
-no-webengine-spellchecker \
|
||||
-no-webengine-webrtc \
|
||||
-no-webengine-webrtc-pipewire \
|
||||
-no-feature-webengine-developer-build \
|
||||
-no-feature-webengine-full-debug-info \
|
||||
-no-feature-webengine-native-spellchecker \
|
||||
-no-feature-webengine-system-jpeg \
|
||||
-no-feature-webengine-system-minizip \
|
||||
-no-feature-webengine-system-gn
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS),y)
|
||||
QT5WEBENGINE_CONF_OPTS += -webengine-proprietary-codecs
|
||||
else
|
||||
QT5WEBENGINE_CONF_OPTS += -no-webengine-proprietary-codecs
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5WEBENGINE_ALSA),y)
|
||||
QT5WEBENGINE_DEPENDENCIES += alsa-lib
|
||||
QT5WEBENGINE_CONF_OPTS += -webengine-alsa
|
||||
else
|
||||
QT5WEBENGINE_CONF_OPTS += -no-webengine-alsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
QT5WEBENGINE_DEPENDENCIES += pulseaudio
|
||||
QT5WEBENGINE_CONF_OPTS += -webengine-pulseaudio
|
||||
else
|
||||
QT5WEBENGINE_CONF_OPTS += -no-webengine-pulseaudio
|
||||
endif
|
||||
|
||||
QT5WEBENGINE_ENV = \
|
||||
PATH=$(@D)/host-bin:$(BR_PATH) \
|
||||
PKG_CONFIG_SYSROOT_DIR="/"
|
||||
define QT5WEBENGINE_CREATE_HOST_PYTHON_WRAPPER
|
||||
mkdir -p $(@D)/host-bin
|
||||
sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-python-wrapper.in > $(@D)/host-bin/python
|
||||
chmod +x $(@D)/host-bin/python
|
||||
endef
|
||||
QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_CREATE_HOST_PYTHON_WRAPPER
|
||||
|
||||
QT5WEBENGINE_ENV += NINJAFLAGS="-j$(PARALLEL_JOBS)"
|
||||
|
||||
define QT5WEBENGINE_COPY_CHROMIUM
|
||||
rm -rf $(@D)/src/3rdparty
|
||||
cp -a $(QT5WEBENGINE_CHROMIUM_DIR) $(@D)/src/3rdparty
|
||||
endef
|
||||
QT5WEBENGINE_POST_PATCH_HOOKS += QT5WEBENGINE_COPY_CHROMIUM
|
||||
|
||||
define QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
|
||||
mkdir -p $(@D)/host-bin
|
||||
sed s%@HOST_DIR@%$(HOST_DIR)%g $(QT5WEBENGINE_PKGDIR)/host-pkg-config.in > $(@D)/host-bin/host-pkg-config
|
||||
chmod +x $(@D)/host-bin/host-pkg-config
|
||||
endef
|
||||
QT5WEBENGINE_PRE_CONFIGURE_HOOKS += QT5WEBENGINE_CREATE_HOST_PKG_CONFIG
|
||||
QT5WEBENGINE_ENV += \
|
||||
GN_PKG_CONFIG_HOST=$(@D)/host-bin/host-pkg-config \
|
||||
GN_HOST_TOOLCHAIN_EXTRA_CPPFLAGS="$(HOST_CPPFLAGS)"
|
||||
|
||||
QT5WEBENGINE_CONF_ENV = $(QT5WEBENGINE_ENV)
|
||||
QT5WEBENGINE_MAKE_ENV = $(QT5WEBENGINE_ENV)
|
||||
|
||||
$(eval $(qmake-package))
|
||||
Reference in New Issue
Block a user