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.

42 lines
1.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwangle
  3. PKG_VERSION:=2019.10.07.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:=b030fbff5f346ba4e50e97fc452b321f1f32b215ba7a31e1538c2996b76cf1e9
  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. CMAKE_SOURCE_SUBDIR:=wangle
  14. CMAKE_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/libwangle
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Wangle: C++ networking library
  21. URL:=https://github.com/facebook/wangle
  22. DEPENDS:=+libfizz
  23. endef
  24. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections
  25. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  26. CMAKE_OPTIONS += \
  27. -DBUILD_SHARED_LIBS=ON
  28. define Package/libwangle/install
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwangle.so* $(1)/usr/lib/
  31. endef
  32. $(eval $(call BuildPackage,libwangle))