qt5base: build widgets and examples only when activated
[feed/video.git] / frameworks / qt5base / Makefile
index c0c08d1d488f99f68993e48b57df117d07882a88..e4f03ebfafbf8699146ac6421bdaf323485a42fd 100644 (file)
@@ -65,7 +65,7 @@ endef
 define Package/qt5base-core
   $(call Package/qt5base/Default)
   TITLE+=core
-  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt
+  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt $(ICONV_DEPENDS)
 endef
 
 define Package/qt5base-gui
@@ -259,8 +259,17 @@ define Build/Configure
                        -shared \
                        -largefile \
                        -accessibility \
-                       $(if $(CONFIG_PACKAGE_qt5base-plugin-sqldrivers-sqlite),-system-sqlite,-no-sql-sqlite2) \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-sqldrivers-sqlite),-system-sqlite,-no-sql-sqlite) \
+                       -no-sql-db2 \
+                       -no-sql-ibase \
+                       -no-sql-mysql \
+                       -no-sql-oci \
+                       -no-sql-odbc \
+                       -no-sql-psql \
+                       -no-sql-sqlite2 \
+                       -no-sql-tds \
                        -no-qml-debug \
+                       -no-nis \
                        -no-sse2 \
                        -no-sse3 \
                        -no-ssse3 \
@@ -286,16 +295,16 @@ define Build/Configure
                        -no-xcb-xlib \
                        -no-glib \
                        -no-pulseaudio \
-                       -alsa \
+                       -no-alsa \
                        -no-gtkstyle \
                        -nomake tools \
-                       -make examples \
+                       $(if $(CONFIG_PACKAGE_qt5base-examples),-make examples,-nomake examples) \
                        $(if $(CONFIG_PACKAGE_qt5base-gui),-gui,-no-gui) \
                        $(if $(CONFIG_PACKAGE_qt5base-plugin-imageformats-gif),,-no-gif) \
-                       -widgets \
+                       $(if $(CONFIG_PACKAGE_qt5base-widgets),-widgets,-no-widgets) \
                        -no-optimized-qmake \
                        -no-cups \
-                       -iconv \
+                       $(if $(CONFIG_BUILD_NLS),-iconv,-no-iconv) \
                        -evdev \
                        -no-icu \
                        -fontconfig \