Makefile 678 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libgluonutil
  3. PKG_VERSION:=1
  4. CMAKE_INSTALL:=1
  5. PKG_LICENSE:=BSD-2-Clause
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include ../gluon.mk
  8. include $(INCLUDE_DIR)/cmake.mk
  9. define Package/libgluonutil
  10. SECTION:=libs
  11. CATEGORY:=Libraries
  12. TITLE:=Gluon utility library
  13. DEPENDS:=+libjson-c +libuci
  14. endef
  15. CMAKE_OPTIONS += \
  16. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. $(CP) ./src/* $(PKG_BUILD_DIR)/
  20. endef
  21. define Package/libgluonutil/install
  22. $(INSTALL_DIR) $(1)/usr/lib
  23. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libgluonutil.so $(1)/usr/lib/
  24. endef
  25. $(eval $(call BuildPackage,libgluonutil))