Selaa lähdekoodia

naiveproxy: install header files for dev purpose

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 3 vuotta sitten
vanhempi
sitoutus
01d6e5656d
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      naiveproxy/Makefile

+ 10 - 0
naiveproxy/Makefile

@@ -134,6 +134,16 @@ define Build/Compile
 		ninja -C "$(PKG_BUILD_DIR)/src/out/Release" cronet)
 endef
 
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/include
+	$(CP) \
+		$(PKG_BUILD_DIR)/src/components/grpc_support/include/bidirectional_stream_c.h \
+		$(PKG_BUILD_DIR)/src/components/cronet/native/generated/cronet.idl_c.h \
+		$(PKG_BUILD_DIR)/src/components/cronet/native/include/cronet_c.h \
+		$(PKG_BUILD_DIR)/src/components/cronet/native/include/cronet_export.h \
+		$(1)/usr/include/
+endef
+
 define Package/naiveproxy/install
 	$(INSTALL_DIR) $(1)/usr/bin
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/out/Release/naive $(1)/usr/bin/naive