cmake: Enable zzogl-pg. (There's still a bug in here somewhere, though...)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2996 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-05-13 11:03:39 +00:00
parent 23e77e4ecc
commit 5b4d508053
2 changed files with 22 additions and 9 deletions

View File

@ -101,14 +101,14 @@ endif(USBnull)
#endif(xpad)
# make zerogs
if(zerogs)
add_subdirectory(zerogs)
endif(zerogs)
#if(zerogs)
# add_subdirectory(zerogs)
#endif(zerogs)
# make zzogl-pg
#if(zzogl)
# add_subdirectory(zzogl-pg)
#endif(zzogl)
if(zzogl)
add_subdirectory(zzogl-pg)
endif(zzogl)
# make zeropad
if(zeropad)

View File

@ -19,22 +19,35 @@ set(CMAKE_SHARED_LIBRARY_C_FLAGS "")
# plugin name
set(zzoglName zzogl)
set(CommonFlags
-pthread
-m32
-Wno-format
-Wno-unused-parameter
-Wno-unused-value
-Wunused-variable
-msse2
-fno-regmove
-DZEROGS_SSE2
)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
add_definitions(-Wall -m32 -g)
add_definitions(${CommonFlags} -g -Wall -D_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
add_definitions(-Wall -m32 -O2)
add_definitions(${CommonFlags} -g -O2 -W -DZEROGS_DEVBUILD)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
add_definitions(-Wall -m32 -O2 -s)
add_definitions(${CommonFlags} -O2 -W -DRELEASE_TO_PUBLIC)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# zzogl sources