Skip to content

Commit 9c3026f

Browse files
committed
[Spark] package src changed to original instead fork
1 parent 91f0b79 commit 9c3026f

File tree

8 files changed

+63
-21
lines changed

8 files changed

+63
-21
lines changed

package/pxcore-libnode/pxcore-libnode.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
################################################################################
66

7-
PXCORE_LIBNODE_VERSION = f8a3e47e4e8e9bb0fcef5ae89e465a15235d8bec
7+
PXCORE_LIBNODE_VERSION = 4580fa4cb35a1f5aa72fdf9d2e09207b2f11d122
88
PXCORE_LIBNODE_SITE_METHOD = git
99
PXCORE_LIBNODE_SITE = git://github.com/pxscene/pxCore
1010
PXCORE_LIBNODE_DEPENDENCIES = host-python openssl

package/rtcore/rtcore.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# rtcore
44
#
55
################################################################################
6-
RTCORE_VERSION = 65b261180bd189248bd3c69933fb369109080dcf
6+
RTCORE_VERSION = 4580fa4cb35a1f5aa72fdf9d2e09207b2f11d122
77
RTCORE_SITE_METHOD = git
88
RTCORE_SITE = git://github.com/pxscene/pxCore
99
RTCORE_INSTALL_STAGING = YES
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/examples/pxScene2d/src/pxContextGL.cpp b/examples/pxScene2d/src/pxContextGL.cpp
2+
index aef118b..d24b083 100644
3+
--- a/examples/pxScene2d/src/pxContextGL.cpp
4+
+++ b/examples/pxScene2d/src/pxContextGL.cpp
5+
@@ -504,7 +504,7 @@ public:
6+
#if (defined(PX_PLATFORM_WAYLAND_EGL) || defined(PX_PLATFORM_GENERIC_EGL)) && !defined(PXSCENE_DISABLE_PXCONTEXT_EXT)
7+
if (mAntiAliasing)
8+
{
9+
- glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextureId, 0, 2);
10+
+ //glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextureId, 0, 2);
11+
}
12+
#endif
13+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/examples/pxScene2d/src/pxScene2d.cpp b/examples/pxScene2d/src/pxScene2d.cpp
2+
index e19a7d4..b9f6f42 100644
3+
--- a/examples/pxScene2d/src/pxScene2d.cpp
4+
+++ b/examples/pxScene2d/src/pxScene2d.cpp
5+
@@ -2980,7 +2980,9 @@ void pxScriptView::runScript()
6+
mReady = new rtPromise();
7+
#endif
8+
9+
- mCtx->runFile("init.js");
10+
+ string s = getenv("PXSCENE_PATH");
11+
+ s.append("init.js");
12+
+ mCtx->runFile(s.c_str());
13+
14+
char buffer[MAX_URL_SIZE + 50];
15+
memset(buffer, 0, sizeof(buffer));
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/examples/pxScene2d/src/pxScene2d.h b/examples/pxScene2d/src/pxScene2d.h
2+
index 91abfd9..089e0af 100644
3+
--- a/examples/pxScene2d/src/pxScene2d.h
4+
+++ b/examples/pxScene2d/src/pxScene2d.h
5+
@@ -652,12 +652,13 @@ public:
6+
rtError suspend(const rtValue& v, bool& b);
7+
rtError resume(const rtValue& v, bool& b);
8+
rtError textureMemoryUsage(rtValue& v);
9+
+
10+
+ static rtError getScene(int /*numArgs*/, const rtValue* /*args*/, rtValue* result, void* ctx);
11+
12+
protected:
13+
14+
static rtError printFunc(int /*numArgs*/, const rtValue* /*args*/, rtValue* result, void* ctx);
15+
16+
- static rtError getScene(int /*numArgs*/, const rtValue* /*args*/, rtValue* result, void* ctx);
17+
static rtError makeReady(int /*numArgs*/, const rtValue* /*args*/, rtValue* result, void* ctx);
18+
19+
static rtError getContextID(int /*numArgs*/, const rtValue* /*args*/, rtValue* result, void* /*ctx*/);

package/spark/Spark.pc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Name: Spark
77
Description: Spark
88
Requires:
99
Version: 1.0
10-
Libs: -L${libdir} -lpxCore -lSpark
10+
Libs: -L${libdir} -lrtCore -lSpark
1111
Cflags: -I${includedir}

package/spark/spark.mk

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
# spark
44
#
55
################################################################################
6-
SPARK_VERSION = c41e786db26ceddc472dd6eb1ab27359de74092d
6+
SPARK_VERSION = 4580fa4cb35a1f5aa72fdf9d2e09207b2f11d122
77
SPARK_SITE_METHOD = git
8-
SPARK_SITE = git://github.com/HaseenaSainul/pxCore
8+
SPARK_SITE = git://github.com/pxscene/pxCore
99
SPARK_INSTALL_STAGING = YES
1010

1111
SPARK_DEPENDENCIES = openssl freetype westeros util-linux libpng libcurl pxcore-libnode
1212

13-
export HOSTNAME = "raspberrypi"
14-
1513
SPARK_CONF_OPTS += \
14+
-DBUILD_SHARED_LIBS=OFF \
1615
-DBUILD_WITH_WAYLAND=ON \
1716
-DBUILD_WITH_WESTEROS=ON \
1817
-DBUILD_WITH_TEXTURE_USAGE_MONITORING=ON \
@@ -24,14 +23,11 @@ SPARK_CONF_OPTS += \
2423
-DPXCORE_MATRIX_HELPERS=OFF \
2524
-DBUILD_PXWAYLAND_SHARED_LIB=OFF \
2625
-DBUILD_PXWAYLAND_STATIC_LIB=OFF \
27-
-DPXCORE_ESSOS=ON \
28-
-DBUILD_PXSCENE_ESSOS=ON \
2926
-DPREFER_SYSTEM_LIBRARIES=ON \
3027
-DDISABLE_TURBO_JPEG=ON \
3128
-DDISABLE_DEBUG_MODE=ON \
3229
-DSPARK_BACKGROUND_TEXTURE_CREATION=ON \
3330
-DSPARK_ENABLE_LRU_TEXTURE_EJECTION=OFF \
34-
-DHOSTNAME=raspberrypi \
3531
-DSUPPORT_DUKTAPE=OFF \
3632
-DBUILD_DUKTAPE=ON
3733

@@ -57,13 +53,13 @@ else
5753
SPARK_CONF_OPTS += \
5854
-DBUILD_RTCORE_LIBS=ON \
5955
-DBUILD_RTCORE_STATIC_LIB=OFF
60-
endif
6156

62-
define SPARK_INSTALL_LIBS
63-
$(INSTALL) -m 755 $(@D)/build/egl/libpxCore.so $(1)/usr/lib/
57+
define RTCORE_INSTALL_LIBS
6458
$(INSTALL) -m 755 $(@D)/build/egl/librtCore.so $(1)/usr/lib/
6559
endef
6660

61+
endif
62+
6763
SPARK_INSTALL_PATH = usr/share/WPEFramework/Spark
6864
define SPARK_INSTALL_DEPS
6965
mkdir -p $(TARGET_DIR)/$(SPARK_INSTALL_PATH)
@@ -82,16 +78,15 @@ define SPARK_INSTALL_DEPS
8278
endef
8379

8480
ifeq ($(BR2_PACKAGE_SPARK_LIB), y)
85-
86-
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
81+
ifeq ($(BR2_PACKAGE_WESTEROS), y)
8782
define SPARK_INSTALL_PX_NATIVE_WINDOW
88-
mkdir -p $(STAGING_DIR)/usr/include/spark/gles
89-
cp -ar $(@D)/src/gles/*.h $(STAGING_DIR)/usr/include/spark/gles/
83+
mkdir -p $(STAGING_DIR)/usr/include/spark/wayland_egl
84+
cp -ar $(@D)/src/wayland_egl/*.h $(STAGING_DIR)/usr/include/spark/wayland_egl/
9085
endef
9186
endif
9287

9388
define SPARK_INSTALL_STAGING_CMDS
94-
$(call SPARK_INSTALL_LIBS, $(STAGING_DIR))
89+
$(call RTCORE_INSTALL_LIBS, $(STAGING_DIR))
9590
cp -ar $(@D)/src/*.h $(STAGING_DIR)/usr/include/
9691
mkdir -p $(STAGING_DIR)/usr/include/spark
9792
cp -ar $(@D)/examples/pxScene2d/src/*.h $(STAGING_DIR)/usr/include/spark/
@@ -113,7 +108,7 @@ endef
113108

114109
define SPARK_INSTALL_TARGET_CMDS
115110
$(SPARK_INSTALL_DEPS)
116-
$(call SPARK_INSTALL_LIBS, $(TARGET_DIR))
111+
$(call RTCORE_INSTALL_LIBS, $(TARGET_DIR))
117112
$(INSTALL) -m 755 $(@D)/examples/pxScene2d/src/Spark $(TARGET_DIR)/usr/bin
118113
endef
119114
endif

package/wpe/wpeframework-plugins/wpeframework-plugins.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ else
335335
WPEFRAMEWORK_PLUGINS_CONF_OPTS += -DPLUGIN_SPARK_AUTOSTART=false
336336
endif
337337

338-
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
339338
WPEFRAMEWORK_PLUGINS_CONF_OPTS += -DPLATFORM_LINUX=ON
340-
WPEFRAMEWORK_PLUGINS_CONF_OPTS += -DPLATFORM_GENERIC_EGL=ON
339+
ifeq ($(BR2_PACKAGE_WESTEROS),y)
340+
WPEFRAMEWORK_PLUGINS_CONF_OPTS += -DPLATFORM_WAYLAND_EGL=ON
341341
endif
342342
endif
343343

0 commit comments

Comments
 (0)