Browse Source

lua-jsonc: add host build support

pull/245/head
Matthias Schiffer 3 months ago
parent
commit
64148a9baf
No known key found for this signature in database GPG Key ID: 16EF3F64CB201D9C
  1. 13
      libs/lua-jsonc/Makefile

13
libs/lua-jsonc/Makefile

@ -4,7 +4,11 @@ PKG_NAME:=lua-jsonc
PKG_VERSION:=1
CMAKE_INSTALL:=1
HOST_BUILD_DEPENDS:=lua/host libjson-c/host
HOST_UNPACK:=true
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/lua-jsonc
@ -19,4 +23,13 @@ define Package/lua-jsonc/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
endef
# For libjson-c
HOST_LDFLAGS += -Wl,-rpath,$(STAGING_DIR_HOST)/lib
define Host/Install
$(INSTALL_DIR) $(1)/usr/lib/lua/5.1
$(INSTALL_BIN) $(HOST_BUILD_DIR)/liblua-jsonc.so $(1)/lib/lua/5.1/jsonc.so
endef
$(eval $(call BuildPackage,lua-jsonc))
$(eval $(call HostBuild))
Loading…
Cancel
Save