mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/libsvgtiny: enable shared library build
[Thomas: clarify the comment explaining why we only build/install the shared library when BR2_STATIC_SHARED_LIBS=y.] Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
607f5116f7
commit
c24f7cdd11
@ -11,18 +11,30 @@ LIBSVGTINY_DEPENDENCIES = libxml2 host-gperf host-pkgconf
|
|||||||
LIBSVGTINY_LICENSE = MIT
|
LIBSVGTINY_LICENSE = MIT
|
||||||
LIBSVGTINY_LICENSE_FILES = README
|
LIBSVGTINY_LICENSE_FILES = README
|
||||||
|
|
||||||
|
# The libsvgtiny build system cannot build both the shared and static
|
||||||
|
# libraries. So when the Buildroot configuration requests to build
|
||||||
|
# both the shared and static variants, we build only the shared one.
|
||||||
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
||||||
|
LIBSVGTINY_COMPONENT_TYPE = lib-shared
|
||||||
|
else
|
||||||
|
LIBSVGTINY_COMPONENT_TYPE = lib-static
|
||||||
|
endif
|
||||||
|
|
||||||
define LIBSVGTINY_BUILD_CMDS
|
define LIBSVGTINY_BUILD_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr \
|
||||||
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LIBSVGTINY_INSTALL_STAGING_CMDS
|
define LIBSVGTINY_INSTALL_STAGING_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) install
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) \
|
||||||
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LIBSVGTINY_INSTALL_TARGET_CMDS
|
define LIBSVGTINY_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) install
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) \
|
||||||
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user