You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=spdlog
  7. PKG_VERSION:=1.9.2
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/gabime/spdlog/tar.gz/v$(PKG_VERSION)?
  11. PKG_HASH:=6fff9215f5cb81760be4cc16d033526d1080427d236e86d70bb02994f85e3d38
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/spdlog
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=spdlog
  22. URL:=https://github.com/gabime/spdlog
  23. DEPENDS:=+libfmt
  24. BUILDONLY:=1
  25. endef
  26. define Package/spdlog/description
  27. Very fast, header-only/compiled, C++ logging library.
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DSPDLOG_BUILD_SHARED=OFF \
  31. -DSPDLOG_BUILD_EXAMPLE=OFF \
  32. -DSPDLOG_BUILD_EXAMPLE_HO=OFF \
  33. -DSPDLOG_BUILD_TESTS=OFF \
  34. -DSPDLOG_BUILD_TESTS_HO=OFF \
  35. -DSPDLOG_BUILD_BENCH=OFF \
  36. -DSPDLOG_SANITIZE_ADDRESS=OFF \
  37. -DSPDLOG_INSTALL=ON \
  38. -DSPDLOG_FMT_EXTERNAL=ON \
  39. -DSPDLOG_FMT_EXTERNAL_HO=OFF \
  40. -DSPDLOG_NO_EXCEPTIONS=OFF
  41. TARGET_CXXFLAGS += -flto
  42. $(eval $(call BuildPackage,spdlog))