qt5base: support static library building
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
62c92adb5c
commit
186ef9f6f4
@ -37,6 +37,14 @@ else
|
|||||||
QT5BASE_CONFIGURE_OPTS += -release
|
QT5BASE_CONFIGURE_OPTS += -release
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
|
QT5BASE_CONFIGURE_OPTS += -static
|
||||||
|
else
|
||||||
|
# We apparently can't build both the shared and static variants of the
|
||||||
|
# library.
|
||||||
|
QT5BASE_CONFIGURE_OPTS += -shared
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_LARGEFILE),y)
|
ifeq ($(BR2_LARGEFILE),y)
|
||||||
QT5BASE_CONFIGURE_OPTS += -largefile
|
QT5BASE_CONFIGURE_OPTS += -largefile
|
||||||
else
|
else
|
||||||
@ -179,10 +187,16 @@ define QT5BASE_INSTALL_TARGET_FONTS
|
|||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
|
define QT5BASE_INSTALL_TARGET_CMDS
|
||||||
|
$(QT5BASE_INSTALL_TARGET_FONTS)
|
||||||
|
endef
|
||||||
|
else
|
||||||
define QT5BASE_INSTALL_TARGET_CMDS
|
define QT5BASE_INSTALL_TARGET_CMDS
|
||||||
$(QT5BASE_INSTALL_TARGET_LIBS)
|
$(QT5BASE_INSTALL_TARGET_LIBS)
|
||||||
$(QT5BASE_INSTALL_TARGET_PLUGINS)
|
$(QT5BASE_INSTALL_TARGET_PLUGINS)
|
||||||
$(QT5BASE_INSTALL_TARGET_FONTS)
|
$(QT5BASE_INSTALL_TARGET_FONTS)
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
Reference in New Issue
Block a user