summaryrefslogtreecommitdiffstats
path: root/rules/host-qt5.make
blob: ec865a516926c360fe5bb6eee4cc47647313f596 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# -*-makefile-*-
#
# Copyright (C) 2017 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_QT5) += host-qt5

HOST_QT5_BUILD_OOT	:= YES

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

# to build qmake in parallel
HOST_QT5_CONF_ENV := \
	$(HOST_ENV) \
	MAKEFLAGS="$(PARALLELMFLAGS)"

#
# autoconf
#
HOST_QT5_CONF_TOOL	:= autoconf
HOST_QT5_CONF_OPT	:= \
	$(if $(filter 1,$(PTXDIST_VERBOSE)),-v) \
	$(if $(filter 0,$(PTXDIST_VERBOSE)),-silent) \
	-prefix / \
	-bindir /bin/qt5 \
	-headerdir /include/qt5 \
	-archdatadir /lib/qt5 \
	-datadir /share/qt5 \
	-hostbindir /bin/qt5 \
	-release \
	--disable-optimized-tools \
	-opensource \
	-confirm-license \
	--enable-shared \
	--disable-accessibility \
	--disable-sql-db2 \
	--disable-sql-ibase \
	--disable-sql-mysql \
	--disable-sql-oci \
	--disable-sql-odbc \
	--disable-sql-psql \
	--disable-sql-sqlite2 \
	--disable-sql-tds \
	--disable-sql-sqlite \
	--disable-qml-debug \
	-pkg-config \
	-force-pkg-config \
	\
	-system-zlib \
	--disable-mtdev \
	--disable-journald \
	--disable-syslog \
	-no-gif \
	-no-libpng \
	-no-libjpeg \
	-no-freetype \
	-qt-harfbuzz \
	--disable-openssl \
	--disable-libproxy \
	-qt-pcre \
	-system-xcb \
	-no-xkbcommon-x11 \
	--disable-xkbcommon-evdev \
	--disable-xinput2 \
	--disable-xcb-xlib \
	--disable-glib \
	--disable-pulseaudio \
	--disable-alsa \
	--disable-gtkstyle \
	\
	-make libs \
	-make tools \
	-skip qt3d \
	-skip qtactiveqt \
	-skip qtandroidextras \
	-skip qtcanvas3d \
	-skip qtconnectivity \
	-skip qtdeclarative \
	-skip qtdoc \
	-skip qtenginio \
	-skip qtgraphicaleffects \
	-skip qtimageformats \
	-skip qtlocation \
	-skip qtmacextras \
	-skip qtmultimedia \
	-skip qtquickcontrols \
	-skip qtquickcontrols2 \
	-skip qtscript \
	-skip qtsensors \
	-skip qtserialbus \
	-skip qtserialport \
	-skip qtsvg \
	-skip qttools \
	-skip qttranslations \
	-skip qtwayland \
	-skip qtwebchannel \
	-skip qtwebengine \
	-skip qtwebsockets \
	-skip qtwebview \
	-skip qtwinextras \
	-skip qtx11extras \
	-skip qtxmlpatterns \
	--disable-compile-examples \
	--disable-gui \
	--disable-widgets \
	--disable-rpath \
	--disable-cups \
	--disable-iconv \
	--disable-evdev \
	--disable-tslib \
	--disable-icu \
	--disable-fontconfig \
	--disable-strip \
	--disable-pch \
	--disable-ltcg \
	--disable-dbus \
	--disable-separate-debug-info \
	--disable-xcb \
	--disable-eglfs \
	--disable-kms \
	--disable-gbm \
	--disable-directfb \
	--disable-linuxfb \
	--disable-mirclient \
	--opengl=no \
	--opengles3=no \
	--disable-libinput \
	-no-gstreamer \
	--disable-system-proxies

# Note: these options are not listed in '--help' but they exist
HOST_QT5_CONF_OPT += \
	--disable-sm \
	--disable-openvg \
	--disable-libudev \
	--disable-egl \
	--disable-xkb \
	--disable-xrender \
	--disable-xvideo

HOST_QT5_QT_CONF := $(PTXDIST_SYSROOT_HOST)/bin/qt5/qt.conf

$(STATEDIR)/host-qt5.install.post:
	@$(call targetinfo)
	@$(call world/install.post, HOST_QT5)
	@echo "[Paths]"						>  $(HOST_QT5_QT_CONF)
	@echo "HostPrefix=$(PTXDIST_SYSROOT_HOST)"		>> $(HOST_QT5_QT_CONF)
	@echo "HostData=$(PTXDIST_SYSROOT_HOST)/lib/qt5"	>> $(HOST_QT5_QT_CONF)
	@echo "HostBinaries=$(PTXDIST_SYSROOT_HOST)/bin/qt5"	>> $(HOST_QT5_QT_CONF)
	@echo "Prefix=$(PTXDIST_SYSROOT_HOST)"			>> $(HOST_QT5_QT_CONF)
	@echo "Headers=$(PTXDIST_SYSROOT_HOST)/include/qt5"	>> $(HOST_QT5_QT_CONF)
	@echo "Data=$(PTXDIST_SYSROOT_HOST)/share/qt5"		>> $(HOST_QT5_QT_CONF)
	@echo "Binaries=$(PTXDIST_SYSROOT_HOST)/bin/qt5"	>> $(HOST_QT5_QT_CONF)
	@echo ""						>> $(HOST_QT5_QT_CONF)
	@$(call touch)

# vim: syntax=make