Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
54b35c39
Commit
54b35c39
authored
8 years ago
by
Monster Iestyn
Browse files
Options
Downloads
Patches
Plain Diff
Fix GME library path, consider 64-bit systems for png/zlib/SDL2 paths/libraries
parent
27acd8c3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!488
Merge in next and don't billboard papersprites in GL
,
!325
CMake: Use internal libs.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CMakeLists.txt
+11
-3
11 additions, 3 deletions
src/CMakeLists.txt
src/sdl/CMakeLists.txt
+21
-6
21 additions, 6 deletions
src/sdl/CMakeLists.txt
with
32 additions
and
9 deletions
src/CMakeLists.txt
+
11
−
3
View file @
54b35c39
...
...
@@ -321,7 +321,7 @@ if(${SRB2_CONFIG_HAVE_GME})
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
GME_FOUND ON
)
set
(
GME_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/gme/include
)
set
(
GME_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/gme/ -lgme"
)
set
(
GME_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/gme/
win32
-lgme"
)
else
()
find_package
(
GME
)
endif
()
...
...
@@ -337,7 +337,11 @@ if(${SRB2_CONFIG_HAVE_ZLIB})
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
ZLIB_FOUND ON
)
set
(
ZLIB_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/zlib
)
set
(
ZLIB_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/zlib/win32 -lz32"
)
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 64
)
set
(
ZLIB_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/zlib/win32 -lz64"
)
else
()
# 32-bit
set
(
ZLIB_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/zlib/win32 -lz32"
)
endif
()
else
()
find_package
(
ZLIB
)
endif
()
...
...
@@ -353,7 +357,11 @@ if(${SRB2_CONFIG_HAVE_PNG} AND ${SRB2_CONFIG_HAVE_ZLIB})
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
PNG_FOUND ON
)
set
(
PNG_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/libpng-src
)
set
(
PNG_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/libpng-src/projects -lpng32"
)
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 64
)
set
(
PNG_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/libpng-src/projects -lpng64"
)
else
()
# 32-bit
set
(
PNG_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/libpng-src/projects -lpng32"
)
endif
()
else
()
find_package
(
PNG
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
src/sdl/CMakeLists.txt
+
21
−
6
View file @
54b35c39
...
...
@@ -5,8 +5,13 @@ set(SRB2_CONFIG_SDL2_USEMIXER ON CACHE BOOL "Use SDL2_mixer or regular sdl sound
if
(
${
SRB2_CONFIG_SDL2_USEMIXER
}
)
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
SDL2_MIXER_FOUND ON
)
set
(
SDL2_MIXER_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_MIXER_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/i686-w64-mingw32/lib -lSDL2_mixer"
)
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 64
)
set
(
SDL2_MIXER_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/x86_64-w64-mingw32/include/SDL2
)
set
(
SDL2_MIXER_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/x86_64-w64-mingw32/lib -lSDL2_mixer"
)
else
()
# 32-bit
set
(
SDL2_MIXER_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_MIXER_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2_mixer/i686-w64-mingw32/lib -lSDL2_mixer"
)
endif
()
else
()
find_package
(
SDL2_mixer
)
endif
()
...
...
@@ -50,8 +55,13 @@ source_group("Interface Code" FILES ${SRB2_SDL2_SOURCES} ${SRB2_SDL2_HEADERS})
# Dependency
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
SDL2_FOUND ON
)
set
(
SDL2_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/lib -lSDL2"
)
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 64
)
set
(
SDL2_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/x86_64-w64-mingw32/include/SDL2
)
set
(
SDL2_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/x86_64-w64-mingw32/lib -lSDL2"
)
else
()
# 32-bit
set
(
SDL2_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/lib -lSDL2"
)
endif
()
else
()
find_package
(
SDL2
)
endif
()
...
...
@@ -199,8 +209,13 @@ if(${SDL2_FOUND})
if
(
MSVC
)
if
(
${
SRB2_CONFIG_USE_INTERNAL_LIBRARIES
}
)
set
(
SDL2_MAIN_FOUND ON
)
set
(
SDL2_MAIN_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_MAIN_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/lib -lSDL2main"
)
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 64
)
set
(
SDL2_MAIN_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/x86_64-w64-mingw32/include/SDL2
)
set
(
SDL2_MAIN_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/x86_64-w64-mingw32/lib -lSDL2main"
)
else
()
# 32-bit
set
(
SDL2_MAIN_INCLUDE_DIRS
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/include/SDL2
)
set
(
SDL2_MAIN_LIBRARIES
"-L
${
CMAKE_SOURCE_DIR
}
/libs/SDL2/i686-w64-mingw32/lib -lSDL2main"
)
endif
()
else
()
find_package
(
SDL2_MAIN REQUIRED
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment