Reestablish *BSD build using CMake.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6516 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-12-04 15:19:04 +00:00
parent e70e623624
commit 7901e74f00
8 changed files with 55 additions and 31 deletions

View File

@ -1,17 +1,18 @@
add_definitions(-DSDL_VIDEO_DISABLED=1)
add_definitions(-DSDL_EVENTS_DISABLED=1)
set(SRCS src/SDL.c
src/SDL_error.c
src/SDL_fatal.c
src/joystick/SDL_joystick.c)
# TODO: for BSD: add usbhid to libs, add joystick/bsd/SDL_sysjoystick.c, stdlib/SDL_malloc.c and stdlib/SDL_string.c to sources
set(SRCS src/SDL.c src/SDL_error.c src/SDL_fatal.c src/joystick/SDL_joystick.c)
if(APPLE)
set(SRCS ${SRCS} src/joystick/darwin/SDL_sysjoystick.c)
elseif(UNIX)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(SRCS ${SRCS} src/joystick/linux/SDL_sysjoystick.c)
set(SRCS ${SRCS} src/stdlib/SDL_string.c)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
set(SRCS ${SRCS} src/joystick/bsd/SDL_sysjoystick.c)
set(SRCS ${SRCS} src/stdlib/SDL_malloc.c)
set(SRCS ${SRCS} src/stdlib/SDL_string.c)
elseif(WIN32)
set(SRCS ${SRCS} src/joystick/win32/SDL_mmjoystick.c)
else()