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.

54 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.7.0
  8. PKG_RELEASE:=1
  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:=f0114a4d3c88be9e696762f37a7c379619443ce9d668546c61b21d41affe5b62
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. CMAKE_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/spdlog
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=spdlog
  23. URL:=https://github.com/gabime/spdlog
  24. DEPENDS:=+libfmt
  25. BUILDONLY:=1
  26. endef
  27. define Package/spdlog/description
  28. Very fast, header-only/compiled, C++ logging library.
  29. endef
  30. CMAKE_OPTIONS += \
  31. -DSPDLOG_BUILD_SHARED=OFF \
  32. -DSPDLOG_BUILD_EXAMPLE=OFF \
  33. -DSPDLOG_BUILD_EXAMPLE_HO=OFF \
  34. -DSPDLOG_BUILD_TESTS=OFF \
  35. -DSPDLOG_BUILD_TESTS_HO=OFF \
  36. -DSPDLOG_BUILD_BENCH=OFF \
  37. -DSPDLOG_SANITIZE_ADDRESS=OFF \
  38. -DSPDLOG_INSTALL=ON \
  39. -DSPDLOG_FMT_EXTERNAL=ON \
  40. -DSPDLOG_FMT_EXTERNAL_HO=OFF \
  41. -DSPDLOG_NO_EXCEPTIONS=OFF
  42. TARGET_CXXFLAGS += -flto
  43. $(eval $(call BuildPackage,spdlog))