From 44d51a56ae4e6d7a917ab6fdaf997aaca9378c9a Mon Sep 17 00:00:00 2001 From: HaseenaSainul Date: Tue, 30 Apr 2019 17:32:52 +0530 Subject: [PATCH] [Spark] rtcore header installation support added --- package/spark/spark.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/spark/spark.mk b/package/spark/spark.mk index 246a6076bc65..f592ed44f15c 100644 --- a/package/spark/spark.mk +++ b/package/spark/spark.mk @@ -57,6 +57,10 @@ SPARK_CONF_OPTS += \ define RTCORE_INSTALL_LIBS $(INSTALL) -m 755 $(@D)/build/egl/librtCore.so $(1)/usr/lib/ endef +define RTCORE_INSTALL_INCLUDES + mkdir -p $(STAGING_DIR)/usr/include/unix + cp -Rpf $(@D)/src/unix/*.h $(STAGING_DIR)/usr/include/unix +endef endif @@ -88,6 +92,7 @@ endif define SPARK_INSTALL_STAGING_CMDS $(call RTCORE_INSTALL_LIBS, $(STAGING_DIR)) cp -ar $(@D)/src/*.h $(STAGING_DIR)/usr/include/ + $(RTCORE_INSTALL_INCLUDES) mkdir -p $(STAGING_DIR)/usr/include/spark cp -ar $(@D)/examples/pxScene2d/src/*.h $(STAGING_DIR)/usr/include/spark/ $(SPARK_INSTALL_PX_NATIVE_WINDOW)