Enable the host tools on protobuf-c (protoc-c specifically)
authorMike Kershaw / Dragorn <dragorn@kismetwireless.net>
Mon, 30 Apr 2018 21:14:47 +0000 (17:14 -0400)
committerMike Kershaw / Dragorn <dragorn@kismetwireless.net>
Mon, 30 Apr 2018 21:14:47 +0000 (17:14 -0400)
Signed-Off-By: Mike Kershaw <dragorn@kismetwireless.net>
libs/protobuf-c/Makefile

index 334d7d969e5cf3562ca419744be582e27cf8b74a..71a0b04967e4ecc3a73a79dc9230c56f1537c4d6 100644 (file)
@@ -18,6 +18,8 @@ PKG_SOURCE_URL:=git://github.com/protobuf-c/protobuf-c.git
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=$(PKG_VERSION)
 
+PKG_BUILD_DEPENDS:=protobuf-c/host
+
 PKG_INSTALL:=1
 PKG_FIXUP:=autoreconf
 
@@ -26,6 +28,7 @@ PKG_LICENSE:=BSD-2c
 PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
 
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
 
 define Package/libprotobuf-c
   TITLE:=Protocol Buffers library
@@ -61,3 +64,5 @@ define Package/libprotobuf-c/install
 endef
 
 $(eval $(call BuildPackage,libprotobuf-c))
+$(eval $(call HostBuild))
+