mirror of https://github.com/PCSX2/pcsx2.git
Fix the cmake build of zlib, and force use of the internal copies of a few of the libraries for the moment. (If the cmake build starts working properly, I'll probably reverse that, but for the moment I want them as similar as possible.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2946 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
af13fec64a
commit
dfb301c1ba
|
@ -23,31 +23,35 @@ endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||||
|
|
||||||
# variable with all sources of this library
|
# variable with all sources of this library
|
||||||
set(zlibSources
|
set(zlibSources
|
||||||
adler32.c
|
compress.c
|
||||||
compress.c
|
deflate.c
|
||||||
crc32.c
|
gzwrite.c
|
||||||
deflate.c
|
trees.c
|
||||||
gzio.c
|
crc32.c
|
||||||
infback.c
|
gzlib.c
|
||||||
inffast.c
|
infback.c
|
||||||
inflate.c
|
inftrees.c
|
||||||
inftrees.c
|
adler32.c
|
||||||
trees.c
|
gzclose.c
|
||||||
uncompr.c
|
gzread.c
|
||||||
zutil.c)
|
inffast.c
|
||||||
|
inflate.c
|
||||||
|
uncompr.c
|
||||||
|
zutil.c)
|
||||||
|
|
||||||
# variable with all headers of this library
|
# variable with all headers of this library
|
||||||
set(zlibHeaders
|
set(zlibHeaders
|
||||||
crc32.h
|
gzguts.h
|
||||||
deflate.h
|
inffast.h
|
||||||
inffast.h
|
inflate.h
|
||||||
inffixed.h
|
zconf.h
|
||||||
inflate.h
|
zlib.h
|
||||||
inftrees.h
|
zutil.h
|
||||||
trees.h
|
deflate.h
|
||||||
zconf.h
|
inffixed.h
|
||||||
zlib.h
|
trees.h
|
||||||
zutil.h)
|
crc32.h
|
||||||
|
inftrees.h )
|
||||||
|
|
||||||
# add library
|
# add library
|
||||||
add_library(${zlibName} STATIC ${zlibSources} ${zlibHeaders})
|
add_library(${zlibName} STATIC ${zlibSources} ${zlibHeaders})
|
||||||
|
|
|
@ -52,13 +52,13 @@ endif(wxWidgets_FOUND)
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
|
|
||||||
# if we found zlib on the system, use it else use project one
|
# if we found zlib on the system, use it else use project one
|
||||||
if(ZLIB_FOUND)
|
#if(ZLIB_FOUND)
|
||||||
# add zlib include directories
|
# # add zlib include directories
|
||||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
# include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
else(ZLIB_FOUND)
|
#else(ZLIB_FOUND)
|
||||||
# use project one
|
# use project one
|
||||||
set(projectZLIB TRUE)
|
set(projectZLIB TRUE)
|
||||||
endif(ZLIB_FOUND)
|
#endif(ZLIB_FOUND)
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -102,13 +102,13 @@ find_package(BZip2)
|
||||||
|
|
||||||
# if we found bzip2 on the system,
|
# if we found bzip2 on the system,
|
||||||
# use it else use project one
|
# use it else use project one
|
||||||
if(BZIP2_FOUND)
|
#if(BZIP2_FOUND)
|
||||||
# add zlib include directories
|
# # add zlib include directories
|
||||||
include_directories(${BZIP2_INCLUDE_DIR})
|
# include_directories(${BZIP2_INCLUDE_DIR})
|
||||||
else(BZIP2_FOUND)
|
#else(BZIP2_FOUND)
|
||||||
# use project one
|
# use project one
|
||||||
set(projectBZip2 TRUE)
|
set(projectBZip2 TRUE)
|
||||||
endif(BZIP2_FOUND)
|
#endif(BZIP2_FOUND)
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -172,16 +172,16 @@ endif(SDL_FOUND)
|
||||||
#include(${PROJECT_SOURCE_DIR}/cmake/FindSoundTouch.cmake)
|
#include(${PROJECT_SOURCE_DIR}/cmake/FindSoundTouch.cmake)
|
||||||
|
|
||||||
# found SoundTouch
|
# found SoundTouch
|
||||||
if(SOUNDTOUCH_FOUND)
|
#if(SOUNDTOUCH_FOUND)
|
||||||
# add SoundTouch include directories
|
# # add SoundTouch include directories
|
||||||
include_directories(${SOUNDTOUCH_INCLUDE_DIR})
|
# include_directories(${SOUNDTOUCH_INCLUDE_DIR})
|
||||||
else(SOUNDTOUCH_FOUND)
|
#else(SOUNDTOUCH_FOUND)
|
||||||
# use project one
|
# use project one
|
||||||
set(projectSoundTouch TRUE)
|
set(projectSoundTouch TRUE)
|
||||||
|
|
||||||
# found
|
# found
|
||||||
set(SOUNDTOUCH_FOUND TRUE)
|
set(SOUNDTOUCH_FOUND TRUE)
|
||||||
endif(SOUNDTOUCH_FOUND)
|
#endif(SOUNDTOUCH_FOUND)
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue