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.

37 lines
953 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwangle
  3. PKG_VERSION:=2019.09.09.00
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebook/wangle/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=b790ba6b975b90d7935e4ae12f84c77d6be9f9a94308a3e0b974d83cf0e01d8b
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/wangle-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_BUILD_DEPENDS:=libfizz
  14. CMAKE_SOURCE_SUBDIR:=wangle
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/libwangle
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Wangle: C++ networking library
  22. URL:=https://github.com/facebook/wangle
  23. endef
  24. CMAKE_OPTIONS += \
  25. -DBoost_NO_BOOST_CMAKE=ON
  26. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
  27. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  28. $(eval $(call BuildPackage,libwangle))