Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e4ec5302
Commit
e4ec5302
authored
Dec 03, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libprojectM 2.0.0 update for Win32
parent
9f432d37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
1 deletion
+95
-1
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+2
-1
extras/contrib/src/Patches/libprojectM-win32.patch
extras/contrib/src/Patches/libprojectM-win32.patch
+93
-0
No files found.
extras/contrib/src/Makefile
View file @
e4ec5302
...
...
@@ -2538,10 +2538,11 @@ libprojectM: libprojectM-$(LIBPROJECTM_VERSION)-Source.tar.gz
rm
-rf
$@
||
true
gunzip
-c
$<
|
tar
xf -
--exclude
=
'[*?:<>\|]'
mv
projectM-
$(LIBPROJECTM_VERSION)
-Source
$@
||
true
patch
-p0
< Patches/libprojectM-win32.patch
cd
$@
;
rm
CMakeCache.txt
.libprojectM
:
libprojectM
(
cd
$<
;
$(HOSTCC)
CPPFLAGS
=
"
$(CPPFLAGS)
"
cmake
.
-D
USE_FBO
:STRING
=
FALSE
-DUSE_FBO
:BOOL
=
OFF
-DINCLUDE-PROJECTM-LIBVISUAL
:BOOL
=
OFF
-DINCLUDE-PROJECTM-PULSEAUDIO
:BOOL
=
OFF
-DINCLUDE-PROJECTM-QT
:BOOL
=
OFF
-DBUILD_PROJECTM_STATIC
:BOOL
=
ON
-DCMAKE_INSTALL_PREFIX
=
$(PREFIX)
&&
make
install
)
(
cd
$<
;
$(HOSTCC)
CPPFLAGS
=
"
$(CPPFLAGS)
"
cmake
.
-D
CMAKE_TOOLCHAIN_FILE
=
../../toolchain.cmake
-DINCLUDE-PROJECTM-LIBVISUAL
:BOOL
=
OFF
-DDISABLE_NATIVE_PRESETS
:BOOL
=
ON
-DUSE_FTGL
:BOOL
=
OFF
-DUSE_NATIVE_GLEW
:BOOL
=
ON
-DINCLUDE-PROJECTM-PULSEAUDIO
:BOOL
=
OFF
-DINCLUDE-PROJECTM-QT
:BOOL
=
OFF
-DBUILD_PROJECTM_STATIC
:BOOL
=
ON
-DCMAKE_INSTALL_PREFIX
=
$(PREFIX)
&&
make
install
)
touch
$@
CLEAN_FILE
+=
.libprojectM
...
...
extras/contrib/src/Patches/libprojectM-win32.patch
0 → 100644
View file @
e4ec5302
diff -ruN libprojectM/Renderer/TextureManager.cpp libprojectM.new/Renderer/TextureManager.cpp
--- libprojectM/Renderer/TextureManager.cpp 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new/Renderer/TextureManager.cpp 2009-12-03 23:28:44.000000000 +0100
@@ -59,7 +59,7 @@
ilLoadL(IL_TYPE_UNKNOWN,(ILvoid*) M_data, M_bytes);
GLuint tex = ilutGLBindTexImage();
#else
- uint tex = SOIL_load_OGL_texture_from_memory(
+ unsigned int tex = SOIL_load_OGL_texture_from_memory(
M_data,
M_bytes,
SOIL_LOAD_AUTO,
@@ -173,7 +173,7 @@
#else
int width, height;
- uint tex = SOIL_load_OGL_texture_size(
+ unsigned int tex = SOIL_load_OGL_texture_size(
imageURL.c_str(),
SOIL_LOAD_AUTO,
SOIL_CREATE_NEW_ID,
diff -ruN libprojectM/win32-dirent.h libprojectM.new/win32-dirent.h
--- libprojectM/win32-dirent.h 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new/win32-dirent.h 2009-12-03 23:29:13.000000000 +0100
@@ -19,7 +19,7 @@
typedef struct DIR DIR;
-static int errno;
+//static int errno;
struct dirent
{
diff -ruN libprojectM/PresetLoader.hpp libprojectM.new2/PresetLoader.hpp
--- libprojectM/PresetLoader.hpp 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new2/PresetLoader.hpp 2009-12-04 00:29:20.000000000 +0100
@@ -6,7 +6,7 @@
#include <sys/types.h>
#ifdef WIN32
-#include "win32-dirent.h"
+#include <dirent.h>
#endif
#ifdef LINUX
diff -ruN libprojectM/projectM.cpp libprojectM.new2/projectM.cpp
--- libprojectM/projectM.cpp 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new2/projectM.cpp 2009-12-04 00:28:29.000000000 +0100
@@ -24,9 +24,6 @@
#include "fatal.h"
#include "Common.hpp"
-#ifdef WIN32
-#include "win32-dirent.h"
-#endif
#include "timer.h"
#include <iostream>
diff -ruN libprojectM/projectM.hpp libprojectM.new2/projectM.hpp
--- libprojectM/projectM.hpp 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new2/projectM.hpp 2009-12-04 00:28:22.000000000 +0100
@@ -29,11 +29,7 @@
#ifndef _PROJECTM_HPP
#define _PROJECTM_HPP
-#ifdef WIN32
-#include "win32-dirent.h"
-#else
#include <dirent.h>
-#endif /** WIN32 */
#include <cmath>
#include <cstdio>
#include <string>
--- libprojectM/CMakeLists.txt 2009-12-01 07:38:42.000000000 +0100
+++ libprojectM.new/CMakeLists.txt 2009-12-04 00:34:12.000000000 +0100
@@ -121,15 +121,13 @@
SET_TARGET_PROPERTIES(projectM PROPERTIES VERSION 2.00 SOVERSION 2)
-ADD_DEFINITIONS(-DUSE_THREADS)
-
if (APPLE)
ADD_DEFINITIONS(-DMACOS -DSTBI_NO_DDS -DUSE_THREADS)
set(RESOURCE_PREFIX "Resources")
else (APPLE)
if (WIN32)
set (RESOURCE_PREFIX "Resources")
-ADD_DEFINITIONS(-DWIN32 -DSTBI_NO_DDS -DUSE_THREADS)
+ADD_DEFINITIONS(-DWIN32 -DSTBI_NO_DDS )
else(WIN32)
set (RESOURCE_PREFIX "share/projectM")
ADD_DEFINITIONS(-DLINUX -DSTBI_NO_DDS -DUSE_THREADS)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment