Skip to content

Commit 44d51a5

Browse files
committed
[Spark] rtcore header installation support added
1 parent c6dc6dd commit 44d51a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package/spark/spark.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ SPARK_CONF_OPTS += \
5757
define RTCORE_INSTALL_LIBS
5858
$(INSTALL) -m 755 $(@D)/build/egl/librtCore.so $(1)/usr/lib/
5959
endef
60+
define RTCORE_INSTALL_INCLUDES
61+
mkdir -p $(STAGING_DIR)/usr/include/unix
62+
cp -Rpf $(@D)/src/unix/*.h $(STAGING_DIR)/usr/include/unix
63+
endef
6064

6165
endif
6266

@@ -88,6 +92,7 @@ endif
8892
define SPARK_INSTALL_STAGING_CMDS
8993
$(call RTCORE_INSTALL_LIBS, $(STAGING_DIR))
9094
cp -ar $(@D)/src/*.h $(STAGING_DIR)/usr/include/
95+
$(RTCORE_INSTALL_INCLUDES)
9196
mkdir -p $(STAGING_DIR)/usr/include/spark
9297
cp -ar $(@D)/examples/pxScene2d/src/*.h $(STAGING_DIR)/usr/include/spark/
9398
$(SPARK_INSTALL_PX_NATIVE_WINDOW)

0 commit comments

Comments
 (0)