3 QTQC2_VERSION_MAJOR
:= 5.15
4 QTQC2_VERSION
:= $(QTQC2_VERSION_MAJOR
).1
5 QTQC2_URL
:= http
://download.qt.io
/official_releases
/qt
/$(QTQC2_VERSION_MAJOR
)/$(QTQC2_VERSION
)/submodules
/qtquickcontrols2-everywhere-src-
$(QTQC2_VERSION
).
tar.xz
8 PKGS
+= qtquickcontrols2
11 ifeq ($(call need_pkg
,"Qt5QuickControls2"),)
12 PKGS_FOUND
+= qtquickcontrols2
14 # QtQuickControl(1) doesn't provide a .pc
16 DEPS_qtquickcontrols2
= qtdeclarative
$(DEPS_qtdeclarative
)
18 $(TARBALLS
)/qtquickcontrols2-everywhere-src-
$(QTQC2_VERSION
).
tar.xz
:
19 $(call download_pkg
,$(QTQC2_URL
),qt
)
21 .sum-qtquickcontrols2
: qtquickcontrols2-everywhere-src-
$(QTQC2_VERSION
).
tar.xz
23 qtquickcontrols2
: qtquickcontrols2-everywhere-src-
$(QTQC2_VERSION
).
tar.xz .sum-qtquickcontrols2
27 QUICK_CONTROL_CONFIG
:= \
28 -no-feature-quicktemplates2-multitouch \
29 -no-feature-quickcontrols2-universal \
30 -no-feature-quickcontrols2-material \
31 -no-feature-quickcontrols2-imagine
33 .qtquickcontrols2
: qtquickcontrols2
34 cd
$< && $(PREFIX
)/lib
/qt5
/bin
/qmake
-- $(QUICK_CONTROL_CONFIG
)
35 # Make && Install libraries
36 cd
$< && $(MAKE
) sub-src-qmake_all
37 ifndef HAVE_CROSS_COMPILE
38 cd
$<; for i in QtQuickControls2 QtQuickTemplates2
; do \
39 sed
-i
-e
's,"../../../../../src,"../src,g' include/$$i/$(QTQC2_VERSION
)/$$i/private
/*.h
; done
41 cd
$< && $(MAKE
) install_subtargets
42 $(SRC
)/qt
/AddStaticLink.sh
"$(PREFIX)" Qt5QuickControls2 qml
/QtQuick
/Controls
.2 qtquickcontrols2plugin
43 $(SRC
)/qt
/AddStaticLink.sh
"$(PREFIX)" Qt5QuickControls2 qml
/QtQuick
/Templates
.2 qtquicktemplates2plugin