spdlog: switch to static libraries
Upstream recommends static libraries for smaller size. There is also one package that uses spdlog. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
e1f607af94
commit
0f829d0246
1 changed files with 3 additions and 7 deletions
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=spdlog
|
PKG_NAME:=spdlog
|
||||||
PKG_VERSION:=1.5.0
|
PKG_VERSION:=1.5.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/gabime/spdlog/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/gabime/spdlog/tar.gz/v$(PKG_VERSION)?
|
||||||
|
@ -29,6 +29,7 @@ define Package/spdlog
|
||||||
TITLE:=spdlog
|
TITLE:=spdlog
|
||||||
URL:=https://github.com/gabime/spdlog
|
URL:=https://github.com/gabime/spdlog
|
||||||
DEPENDS:=+libfmt
|
DEPENDS:=+libfmt
|
||||||
|
BUILDONLY:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/spdlog/description
|
define Package/spdlog/description
|
||||||
|
@ -36,7 +37,7 @@ define Package/spdlog/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DSPDLOG_BUILD_SHARED=ON \
|
-DSPDLOG_BUILD_SHARED=OFF \
|
||||||
-DSPDLOG_BUILD_EXAMPLE=OFF \
|
-DSPDLOG_BUILD_EXAMPLE=OFF \
|
||||||
-DSPDLOG_BUILD_EXAMPLE_HO=OFF \
|
-DSPDLOG_BUILD_EXAMPLE_HO=OFF \
|
||||||
-DSPDLOG_BUILD_TESTS=OFF \
|
-DSPDLOG_BUILD_TESTS=OFF \
|
||||||
|
@ -50,9 +51,4 @@ CMAKE_OPTIONS += \
|
||||||
|
|
||||||
TARGET_CXXFLAGS += -flto
|
TARGET_CXXFLAGS += -flto
|
||||||
|
|
||||||
define Package/spdlog/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspdlog.so* $(1)/usr/lib/
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,spdlog))
|
$(eval $(call BuildPackage,spdlog))
|
||||||
|
|
Loading…
Reference in a new issue