Skip to content

Commit

Permalink
Merge pull request #49 from AlwinEsch/Matrix-change
Browse files Browse the repository at this point in the history
[Matrix] API related update and libprojectm to version 3.7
  • Loading branch information
AlwinEsch authored Aug 24, 2020
2 parents c5557cd + 2a46359 commit ca1b223
Show file tree
Hide file tree
Showing 23 changed files with 61 additions and 840 deletions.
30 changes: 21 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ language: cpp
#
# Define the build matrix
#
# Travis defaults to building on Ubuntu Precise when building on
# Linux. We need Trusty in order to get up to date versions of
# Travis defaults to building on Ubuntu Trusty when building on
# Linux. We need Xenial in order to get up to date versions of
# cmake and g++.
#
env:
Expand All @@ -21,22 +21,34 @@ matrix:
dist: xenial
sudo: required
compiler: clang
- os: linux
dist: bionic
sudo: required
compiler: gcc
env: DEBIAN_BUILD=true
- os: osx
osx_image: xcode10.2

before_install:
- if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libgl1-mesa-dev freeglut3-dev; fi
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi

#
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
# we'll put the Kodi source on the same level
#
before_script:
- cd $TRAVIS_BUILD_DIR/..
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- cd ${app_id} && mkdir build && cd build
- mkdir -p definition/${app_id}
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt
- cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons
- if [[ $DEBIAN_BUILD != true ]]; then cd $TRAVIS_BUILD_DIR/..; fi
- if [[ $DEBIAN_BUILD != true ]]; then git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git; fi
- if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir build && cd build; fi
- if [[ $DEBIAN_BUILD != true ]]; then mkdir -p definition/${app_id}; fi
- if [[ $DEBIAN_BUILD != true ]]; then echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt; fi
- if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons; fi
- if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep $TRAVIS_BUILD_DIR; fi

script: make
script:
- if [[ $DEBIAN_BUILD != true ]]; then make; fi
- if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh $TRAVIS_BUILD_DIR; fi
674 changes: 0 additions & 674 deletions COPYING

This file was deleted.

2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 9.0.0), cmake, kodi-addon-dev, libprojectm-dev,
pkg-config
Standards-Version: 4.1.2
Section: libs
Homepage: http://kodi.tv
Homepage: https://kodi.tv

Package: kodi-visualization-projectm
Section: libs
Expand Down
7 changes: 2 additions & 5 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
#export DH_VERBOSE=1

%:
dh $@
dh $@

override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DUSE_LTO=1

override_dh_strip:
dh_strip --dbg-package=kodi-visualization-projectm-dbg
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DUSE_LTO=1

override_dh_installdocs:
dh_installdocs --link-doc=kodi-visualization-projectm
Expand Down
2 changes: 1 addition & 1 deletion debian/source/format
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0 (quilt)
3.0 (native)
2 changes: 1 addition & 1 deletion depends/common/projectm/projectm.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8709d7bce65c78d56a546820762a6ede6d7c144695fd1d200e972f38740e9db9
30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
2 changes: 1 addition & 1 deletion depends/common/projectm/projectm.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
projectm https://github.com/projectM-visualizer/projectm/releases/download/v3.1.2/projectM-src-3.1.2.tar.gz
projectm https://github.com/projectM-visualizer/projectm/releases/download/v3.1.7/projectM-3.1.7.tar.gz
26 changes: 3 additions & 23 deletions depends/windows/projectm/0001-kodi-cmake-fixes.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
From: Alwin Esch <[email protected]>
Date: Fri, 4 Oct 2019 22:29:37 +0200
Subject: [PATCH] kodi cmake fixes

---
config.h | 105 ++++++++++++++++++++++++++++++++++
src/libprojectM/config.inp.in | 22 +++++++
2 files changed, 127 insertions(+)
create mode 100644 config.h
create mode 100644 src/libprojectM/config.inp.in

diff --git a/config.h b/config.h
new file mode 100644
index 0000000..c54a297
--- /dev/null
+++ b/config.h
@@ -0,0 +1,105 @@
Expand Down Expand Up @@ -91,7 +77,7 @@ index 0000000..c54a297
+#define PACKAGE_NAME "projectM"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "projectM 3.1.1-rc4"
+#define PACKAGE_STRING "projectM 3.1.7"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "projectM"
Expand All @@ -100,7 +86,7 @@ index 0000000..c54a297
+#define PACKAGE_URL "https://github.com/projectM-visualizer/projectm/"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "3.1.1-rc4"
+#define PACKAGE_VERSION "3.1.7"
+
+/* Define to necessary symbol if this constant uses a non-standard name on
+ your system. */
Expand All @@ -116,13 +102,10 @@ index 0000000..c54a297
+#define USE_THREADS 1
+
+/* Version number of package */
+#define VERSION "3.1.1-rc4"
+#define VERSION "3.1.7"
+
+/* Define to 1 if the X Window System is missing or not being used. */
+#define X_DISPLAY_MISSING 1
diff --git a/src/libprojectM/config.inp.in b/src/libprojectM/config.inp.in
new file mode 100644
index 0000000..d87d9a2
--- /dev/null
+++ b/src/libprojectM/config.inp.in
@@ -0,0 +1,22 @@
Expand All @@ -148,6 +131,3 @@ index 0000000..d87d9a2
+Preset Path = @DATADIR@/projectM/presets # preset location
+Title Font = Vera.ttf
+Menu Font = VeraMono.ttf
--
2.20.1

Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
From 8fcba9e6cc58d8fc5fac4fa740ecd2b523777a06 Mon Sep 17 00:00:00 2001
From: Alwin Esch <[email protected]>
Date: Sat, 5 Oct 2019 01:52:11 +0200
Subject: [PATCH] add angle to GL include and become Win working

---
src/libprojectM/Renderer/ShaderEngine.cpp | 2 +-
src/libprojectM/Renderer/TextureManager.cpp | 1 +
src/libprojectM/projectM-opengl.h | 4 ++++
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libprojectM/Renderer/ShaderEngine.cpp b/src/libprojectM/Renderer/ShaderEngine.cpp
index b486d14..6abf572 100755
--- a/src/libprojectM/Renderer/ShaderEngine.cpp
+++ b/src/libprojectM/Renderer/ShaderEngine.cpp
@@ -1224,7 +1224,7 @@ void ShaderEngine::reset()
@@ -1226,7 +1226,7 @@ void ShaderEngine::reset()

GLuint ShaderEngine::CompileShaderProgram(const std::string & VertexShaderCode, const std::string & FragmentShaderCode, const std::string & shaderTypeString){

Expand All @@ -22,25 +9,11 @@ index b486d14..6abf572 100755
GLenum err = glewInit();
#endif /** WIN32 */

diff --git a/src/libprojectM/Renderer/TextureManager.cpp b/src/libprojectM/Renderer/TextureManager.cpp
index 3d3bb17..940edf2 100755
--- a/src/libprojectM/Renderer/TextureManager.cpp
+++ b/src/libprojectM/Renderer/TextureManager.cpp
@@ -8,6 +8,7 @@

#ifdef WIN32
#include "dirent.h"
+#include <minmax.h>
#endif

#ifdef __unix__
diff --git a/src/libprojectM/projectM-opengl.h b/src/libprojectM/projectM-opengl.h
index 3e565f2..9c34192 100755
--- a/src/libprojectM/projectM-opengl.h
+++ b/src/libprojectM/projectM-opengl.h
@@ -30,8 +30,12 @@
#include <EGL/eglext.h>
@@ -32,8 +32,12 @@
#elif defined(_WIN32)
#define GLM_FORCE_CXX03
# include <windows.h>
+#if defined(HAS_ANGLE)
+#include <angle_gl.h>
Expand All @@ -51,6 +24,3 @@ index 3e565f2..9c34192 100755
#else /* linux/unix/other */
# ifdef USE_GLES
# include <GLES3/gl3.h>
--
2.21.0

14 changes: 0 additions & 14 deletions depends/windows/projectm/0003-change-SOIL2-to-use-on-angle.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
From ae10f96e828797b7e30dbead26d4728b37779047 Mon Sep 17 00:00:00 2001
From: Alwin Esch <[email protected]>
Date: Sat, 5 Oct 2019 02:10:46 +0200
Subject: [PATCH] change SOIL2 to use on angle

---
src/libprojectM/Renderer/SOIL2/SOIL2.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/libprojectM/Renderer/SOIL2/SOIL2.c b/src/libprojectM/Renderer/SOIL2/SOIL2.c
index 64dbf27..00382a9 100755
--- a/src/libprojectM/Renderer/SOIL2/SOIL2.c
+++ b/src/libprojectM/Renderer/SOIL2/SOIL2.c
@@ -33,7 +33,7 @@
Expand Down Expand Up @@ -65,6 +54,3 @@ index 64dbf27..00382a9 100755
}
/* let the user know if we can do cubemaps or not */
return has_cubemap_capability;
--
2.21.0

2 changes: 2 additions & 0 deletions depends/windows/projectm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ configure_file(${PROJECT_SOURCE_DIR}/src/libprojectM/config.inp.in ${PROJECT_SOU

set(SOURCES src/libprojectM/ConfigFile.cpp
src/libprojectM/fftsg.cpp
src/libprojectM/FileScanner.cpp
src/libprojectM/KeyHandler.cpp
src/libprojectM/PCM.cpp
src/libprojectM/PipelineMerger.cpp
Expand Down Expand Up @@ -77,6 +78,7 @@ set(HEADERS src/libprojectM/BackgroundWorker.h
src/libprojectM/event.h
src/libprojectM/fatal.h
src/libprojectM/fftsg.h
src/libprojectM/FileScanner.hpp
src/libprojectM/glError.h
src/libprojectM/lvtoprojectM.h
src/libprojectM/projectM-opengl.h
Expand Down
2 changes: 1 addition & 1 deletion depends/windows/projectm/projectm.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8709d7bce65c78d56a546820762a6ede6d7c144695fd1d200e972f38740e9db9
30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
2 changes: 1 addition & 1 deletion depends/windows/projectm/projectm.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
projectm https://github.com/projectM-visualizer/projectm/releases/download/v3.1.2/projectM-src-3.1.2.tar.gz
projectm https://github.com/projectM-visualizer/projectm/releases/download/v3.1.7/projectM-3.1.7.tar.gz
26 changes: 3 additions & 23 deletions depends/windowsstore/projectm/0001-kodi-cmake-fixes.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
From: Alwin Esch <[email protected]>
Date: Fri, 4 Oct 2019 22:29:37 +0200
Subject: [PATCH] kodi cmake fixes

---
config.h | 105 ++++++++++++++++++++++++++++++++++
src/libprojectM/config.inp.in | 22 +++++++
2 files changed, 127 insertions(+)
create mode 100644 config.h
create mode 100644 src/libprojectM/config.inp.in

diff --git a/config.h b/config.h
new file mode 100644
index 0000000..c54a297
--- /dev/null
+++ b/config.h
@@ -0,0 +1,105 @@
Expand Down Expand Up @@ -91,7 +77,7 @@ index 0000000..c54a297
+#define PACKAGE_NAME "projectM"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "projectM 3.1.1-rc4"
+#define PACKAGE_STRING "projectM 3.1.7"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "projectM"
Expand All @@ -100,7 +86,7 @@ index 0000000..c54a297
+#define PACKAGE_URL "https://github.com/projectM-visualizer/projectm/"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "3.1.1-rc4"
+#define PACKAGE_VERSION "3.1.7"
+
+/* Define to necessary symbol if this constant uses a non-standard name on
+ your system. */
Expand All @@ -116,13 +102,10 @@ index 0000000..c54a297
+#define USE_THREADS 1
+
+/* Version number of package */
+#define VERSION "3.1.1-rc4"
+#define VERSION "3.1.7"
+
+/* Define to 1 if the X Window System is missing or not being used. */
+#define X_DISPLAY_MISSING 1
diff --git a/src/libprojectM/config.inp.in b/src/libprojectM/config.inp.in
new file mode 100644
index 0000000..d87d9a2
--- /dev/null
+++ b/src/libprojectM/config.inp.in
@@ -0,0 +1,22 @@
Expand All @@ -148,6 +131,3 @@ index 0000000..d87d9a2
+Preset Path = @DATADIR@/projectM/presets # preset location
+Title Font = Vera.ttf
+Menu Font = VeraMono.ttf
--
2.20.1

Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
From 8fcba9e6cc58d8fc5fac4fa740ecd2b523777a06 Mon Sep 17 00:00:00 2001
From: Alwin Esch <[email protected]>
Date: Sat, 5 Oct 2019 01:52:11 +0200
Subject: [PATCH] add angle to GL include and become Win working

---
src/libprojectM/Renderer/ShaderEngine.cpp | 2 +-
src/libprojectM/Renderer/TextureManager.cpp | 1 +
src/libprojectM/projectM-opengl.h | 4 ++++
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libprojectM/Renderer/ShaderEngine.cpp b/src/libprojectM/Renderer/ShaderEngine.cpp
index b486d14..6abf572 100755
--- a/src/libprojectM/Renderer/ShaderEngine.cpp
+++ b/src/libprojectM/Renderer/ShaderEngine.cpp
@@ -1224,7 +1224,7 @@ void ShaderEngine::reset()
@@ -1226,7 +1226,7 @@ void ShaderEngine::reset()

GLuint ShaderEngine::CompileShaderProgram(const std::string & VertexShaderCode, const std::string & FragmentShaderCode, const std::string & shaderTypeString){

Expand All @@ -22,25 +9,11 @@ index b486d14..6abf572 100755
GLenum err = glewInit();
#endif /** WIN32 */

diff --git a/src/libprojectM/Renderer/TextureManager.cpp b/src/libprojectM/Renderer/TextureManager.cpp
index 3d3bb17..940edf2 100755
--- a/src/libprojectM/Renderer/TextureManager.cpp
+++ b/src/libprojectM/Renderer/TextureManager.cpp
@@ -8,6 +8,7 @@

#ifdef WIN32
#include "dirent.h"
+#include <minmax.h>
#endif

#ifdef __unix__
diff --git a/src/libprojectM/projectM-opengl.h b/src/libprojectM/projectM-opengl.h
index 3e565f2..9c34192 100755
--- a/src/libprojectM/projectM-opengl.h
+++ b/src/libprojectM/projectM-opengl.h
@@ -30,8 +30,12 @@
#include <EGL/eglext.h>
@@ -32,8 +32,12 @@
#elif defined(_WIN32)
#define GLM_FORCE_CXX03
# include <windows.h>
+#if defined(HAS_ANGLE)
+#include <angle_gl.h>
Expand All @@ -51,6 +24,3 @@ index 3e565f2..9c34192 100755
#else /* linux/unix/other */
# ifdef USE_GLES
# include <GLES3/gl3.h>
--
2.21.0

Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
From ae10f96e828797b7e30dbead26d4728b37779047 Mon Sep 17 00:00:00 2001
From: Alwin Esch <[email protected]>
Date: Sat, 5 Oct 2019 02:10:46 +0200
Subject: [PATCH] change SOIL2 to use on angle

---
src/libprojectM/Renderer/SOIL2/SOIL2.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/libprojectM/Renderer/SOIL2/SOIL2.c b/src/libprojectM/Renderer/SOIL2/SOIL2.c
index 64dbf27..00382a9 100755
--- a/src/libprojectM/Renderer/SOIL2/SOIL2.c
+++ b/src/libprojectM/Renderer/SOIL2/SOIL2.c
@@ -33,7 +33,7 @@
Expand Down Expand Up @@ -65,6 +54,3 @@ index 64dbf27..00382a9 100755
}
/* let the user know if we can do cubemaps or not */
return has_cubemap_capability;
--
2.21.0

2 changes: 2 additions & 0 deletions depends/windowsstore/projectm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ configure_file(${PROJECT_SOURCE_DIR}/src/libprojectM/config.inp.in ${PROJECT_SOU

set(SOURCES src/libprojectM/ConfigFile.cpp
src/libprojectM/fftsg.cpp
src/libprojectM/FileScanner.cpp
src/libprojectM/KeyHandler.cpp
src/libprojectM/PCM.cpp
src/libprojectM/PipelineMerger.cpp
Expand Down Expand Up @@ -77,6 +78,7 @@ set(HEADERS src/libprojectM/BackgroundWorker.h
src/libprojectM/event.h
src/libprojectM/fatal.h
src/libprojectM/fftsg.h
src/libprojectM/FileScanner.hpp
src/libprojectM/glError.h
src/libprojectM/lvtoprojectM.h
src/libprojectM/projectM-opengl.h
Expand Down
2 changes: 1 addition & 1 deletion depends/windowsstore/projectm/projectm.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8709d7bce65c78d56a546820762a6ede6d7c144695fd1d200e972f38740e9db9
30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
Loading

0 comments on commit ca1b223

Please sign in to comment.