mirror of https://github.com/PCSX2/pcsx2.git
cmake: WIP to build sdl and GSdx
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4373 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
2e04d9c6af
commit
4bd5322dc6
|
@ -15,3 +15,8 @@ endif(projectZLIB)
|
|||
if(projectSoundTouch)
|
||||
add_subdirectory(SoundTouch)
|
||||
endif(projectSoundTouch)
|
||||
|
||||
# build project sdl
|
||||
if(projectSDL)
|
||||
add_subdirectory(SDL-1.3.0-5387)
|
||||
endif(projectSDL)
|
||||
|
|
|
@ -0,0 +1,403 @@
|
|||
# library name
|
||||
set(Output pcsx2_SDL)
|
||||
|
||||
set (SDL_ROOT "${PROJECT_SOURCE_DIR}/3rdparty/SDL-1.3.0-5387")
|
||||
|
||||
# set common flags
|
||||
set(CommonFlags
|
||||
-DHAVE_LINUX_VERSION_H
|
||||
-D_REENTRANT
|
||||
-D__LINUX__
|
||||
-MMD
|
||||
-MT
|
||||
-pthread
|
||||
-mmmx
|
||||
-msse
|
||||
-msse2
|
||||
-fvisibility=hidden
|
||||
-pipe
|
||||
-Wno-format
|
||||
-Wno-unused-parameter
|
||||
-Wno-unused-value
|
||||
-Wunused-variable)
|
||||
|
||||
# set warning flags
|
||||
set(DebugFlags
|
||||
-W
|
||||
-g)
|
||||
|
||||
# set optimization flags
|
||||
set(OptimizationFlags
|
||||
-O3
|
||||
)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
add_definitions(${CommonFlags} ${DebugFlags})
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Devel)
|
||||
add_definitions(${CommonFlags} ${OptimizationFlags})
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
add_definitions(${CommonFlags} ${OptimizationFlags})
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
|
||||
|
||||
#Make on big arrary with all the source and header files
|
||||
set(SDL_sources
|
||||
|
||||
#Headers
|
||||
"${SDL_ROOT}/include/begin_code.h"
|
||||
"${SDL_ROOT}/include/close_code.h"
|
||||
"${SDL_ROOT}/include/SDL_assert.h"
|
||||
"${SDL_ROOT}/include/SDL_atomic.h"
|
||||
"${SDL_ROOT}/include/SDL_audio.h"
|
||||
"${SDL_ROOT}/include/SDL_blendmode.h"
|
||||
"${SDL_ROOT}/include/SDL_clipboard.h"
|
||||
"${SDL_ROOT}/include/SDL_compat.h"
|
||||
"${SDL_ROOT}/include/SDL_config.h"
|
||||
"${SDL_ROOT}/include/SDL_config_macosx.h"
|
||||
"${SDL_ROOT}/include/SDL_config_minimal.h"
|
||||
"${SDL_ROOT}/include/SDL_config_windows.h"
|
||||
"${SDL_ROOT}/include/SDL_config_wiz.h"
|
||||
"${SDL_ROOT}/include/SDL_copying.h"
|
||||
"${SDL_ROOT}/include/SDL_cpuinfo.h"
|
||||
"${SDL_ROOT}/include/SDL_endian.h"
|
||||
"${SDL_ROOT}/include/SDL_error.h"
|
||||
"${SDL_ROOT}/include/SDL_events.h"
|
||||
"${SDL_ROOT}/include/SDL_gesture.h"
|
||||
"${SDL_ROOT}/include/SDL.h"
|
||||
"${SDL_ROOT}/include/SDL_haptic.h"
|
||||
"${SDL_ROOT}/include/SDL_hints.h"
|
||||
"${SDL_ROOT}/include/SDL_input.h"
|
||||
"${SDL_ROOT}/include/SDL_joystick.h"
|
||||
"${SDL_ROOT}/include/SDL_keyboard.h"
|
||||
"${SDL_ROOT}/include/SDL_keycode.h"
|
||||
"${SDL_ROOT}/include/SDL_loadso.h"
|
||||
"${SDL_ROOT}/include/SDL_log.h"
|
||||
"${SDL_ROOT}/include/SDL_main.h"
|
||||
"${SDL_ROOT}/include/SDL_mouse.h"
|
||||
"${SDL_ROOT}/include/SDL_mutex.h"
|
||||
"${SDL_ROOT}/include/SDL_name.h"
|
||||
"${SDL_ROOT}/include/SDL_opengles2.h"
|
||||
"${SDL_ROOT}/include/SDL_opengles.h"
|
||||
"${SDL_ROOT}/include/SDL_opengl.h"
|
||||
"${SDL_ROOT}/include/SDL_pixels.h"
|
||||
"${SDL_ROOT}/include/SDL_platform.h"
|
||||
"${SDL_ROOT}/include/SDL_power.h"
|
||||
"${SDL_ROOT}/include/SDL_quit.h"
|
||||
"${SDL_ROOT}/include/SDL_rect.h"
|
||||
"${SDL_ROOT}/include/SDL_render.h"
|
||||
"${SDL_ROOT}/include/SDL_revision.h"
|
||||
"${SDL_ROOT}/include/SDL_rwops.h"
|
||||
"${SDL_ROOT}/include/SDL_scancode.h"
|
||||
"${SDL_ROOT}/include/SDL_shape.h"
|
||||
"${SDL_ROOT}/include/SDL_stdinc.h"
|
||||
"${SDL_ROOT}/include/SDL_surface.h"
|
||||
"${SDL_ROOT}/include/SDL_syswm.h"
|
||||
"${SDL_ROOT}/include/SDL_thread.h"
|
||||
"${SDL_ROOT}/include/SDL_timer.h"
|
||||
"${SDL_ROOT}/include/SDL_touch.h"
|
||||
"${SDL_ROOT}/include/SDL_types.h"
|
||||
"${SDL_ROOT}/include/SDL_version.h"
|
||||
"${SDL_ROOT}/include/SDL_video.h"
|
||||
|
||||
# Source Files
|
||||
"${SDL_ROOT}/src/SDL_assert.c"
|
||||
"${SDL_ROOT}/src/SDL_assert_c.h"
|
||||
"${SDL_ROOT}/src/SDL.c"
|
||||
"${SDL_ROOT}/src/SDL_compat.c"
|
||||
"${SDL_ROOT}/src/SDL_error.c"
|
||||
"${SDL_ROOT}/src/SDL_error_c.h"
|
||||
"${SDL_ROOT}/src/SDL_fatal.c"
|
||||
"${SDL_ROOT}/src/SDL_fatal.h"
|
||||
"${SDL_ROOT}/src/SDL_hints.c"
|
||||
"${SDL_ROOT}/src/SDL_log.c"
|
||||
|
||||
#c/atomic:
|
||||
"${SDL_ROOT}/src/atomic/SDL_atomic.c"
|
||||
"${SDL_ROOT}/src/atomic/SDL_spinlock.c"
|
||||
|
||||
#c/audio:
|
||||
"${SDL_ROOT}/src/audio/SDL_audio.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_audio_c.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_audiocvt.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_audiodev.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_audiodev_c.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_audiomem.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_audiotypecvt.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_m68k.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_m68k.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_MMX.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_MMX.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_MMX_VC.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_mixer_MMX_VC.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_sysaudio.h"
|
||||
"${SDL_ROOT}/src/audio/SDL_wave.c"
|
||||
"${SDL_ROOT}/src/audio/SDL_wave.h"
|
||||
|
||||
#c/cpuinfo:
|
||||
"${SDL_ROOT}/src/cpuinfo/SDL_cpuinfo.c"
|
||||
|
||||
#c/events:
|
||||
"${SDL_ROOT}/src/events/blank_cursor.h"
|
||||
"${SDL_ROOT}/src/events/default_cursor.h"
|
||||
"${SDL_ROOT}/src/events/scancodes_darwin.h"
|
||||
"${SDL_ROOT}/src/events/scancodes_linux.h"
|
||||
"${SDL_ROOT}/src/events/scancodes_windows.h"
|
||||
"${SDL_ROOT}/src/events/scancodes_xfree86.h"
|
||||
"${SDL_ROOT}/src/events/SDL_clipboardevents.c"
|
||||
"${SDL_ROOT}/src/events/SDL_clipboardevents_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_events.c"
|
||||
"${SDL_ROOT}/src/events/SDL_events_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_gesture.c"
|
||||
"${SDL_ROOT}/src/events/SDL_gesture_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_keyboard.c"
|
||||
"${SDL_ROOT}/src/events/SDL_keyboard_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_mouse.c"
|
||||
"${SDL_ROOT}/src/events/SDL_mouse_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_quit.c"
|
||||
"${SDL_ROOT}/src/events/SDL_sysevents.h"
|
||||
"${SDL_ROOT}/src/events/SDL_touch.c"
|
||||
"${SDL_ROOT}/src/events/SDL_touch_c.h"
|
||||
"${SDL_ROOT}/src/events/SDL_windowevents.c"
|
||||
"${SDL_ROOT}/src/events/SDL_windowevents_c.h"
|
||||
|
||||
#c/file:
|
||||
"${SDL_ROOT}/src/file/SDL_rwops.c"
|
||||
|
||||
#c/haptic:
|
||||
"${SDL_ROOT}/src/haptic/SDL_haptic.c"
|
||||
"${SDL_ROOT}/src/haptic/SDL_haptic_c.h"
|
||||
"${SDL_ROOT}/src/haptic/SDL_syshaptic.h"
|
||||
|
||||
#c/joystick:
|
||||
"${SDL_ROOT}/src/joystick/SDL_joystick.c"
|
||||
"${SDL_ROOT}/src/joystick/SDL_joystick_c.h"
|
||||
"${SDL_ROOT}/src/joystick/SDL_sysjoystick.h"
|
||||
|
||||
#c/libm:
|
||||
"${SDL_ROOT}/src/libm/e_atan2.c"
|
||||
"${SDL_ROOT}/src/libm/e_log.c"
|
||||
"${SDL_ROOT}/src/libm/e_pow.c"
|
||||
"${SDL_ROOT}/src/libm/e_rem_pio2.c"
|
||||
"${SDL_ROOT}/src/libm/e_sqrt.c"
|
||||
"${SDL_ROOT}/src/libm/k_cos.c"
|
||||
"${SDL_ROOT}/src/libm/k_rem_pio2.c"
|
||||
"${SDL_ROOT}/src/libm/k_sin.c"
|
||||
"${SDL_ROOT}/src/libm/math.h"
|
||||
"${SDL_ROOT}/src/libm/math_private.h"
|
||||
"${SDL_ROOT}/src/libm/s_atan.c"
|
||||
"${SDL_ROOT}/src/libm/s_copysign.c"
|
||||
"${SDL_ROOT}/src/libm/s_cos.c"
|
||||
"${SDL_ROOT}/src/libm/s_fabs.c"
|
||||
"${SDL_ROOT}/src/libm/s_floor.c"
|
||||
"${SDL_ROOT}/src/libm/s_scalbn.c"
|
||||
"${SDL_ROOT}/src/libm/s_sin.c"
|
||||
|
||||
#c/power:
|
||||
"${SDL_ROOT}/src/power/SDL_power.c"
|
||||
|
||||
#c/render:
|
||||
"${SDL_ROOT}/src/render/mmx.h"
|
||||
"${SDL_ROOT}/src/render/SDL_render.c"
|
||||
"${SDL_ROOT}/src/render/SDL_sysrender.h"
|
||||
"${SDL_ROOT}/src/render/SDL_yuv_mmx.c"
|
||||
"${SDL_ROOT}/src/render/SDL_yuv_sw.c"
|
||||
"${SDL_ROOT}/src/render/SDL_yuv_sw_c.h"
|
||||
|
||||
#c/stdlib:
|
||||
"${SDL_ROOT}/src/stdlib/SDL_getenv.c"
|
||||
"${SDL_ROOT}/src/stdlib/SDL_iconv.c"
|
||||
"${SDL_ROOT}/src/stdlib/SDL_malloc.c"
|
||||
"${SDL_ROOT}/src/stdlib/SDL_qsort.c"
|
||||
"${SDL_ROOT}/src/stdlib/SDL_stdlib.c"
|
||||
"${SDL_ROOT}/src/stdlib/SDL_string.c"
|
||||
|
||||
#c/thread:
|
||||
"${SDL_ROOT}/src/thread/SDL_systhread.h"
|
||||
"${SDL_ROOT}/src/thread/SDL_thread.c"
|
||||
"${SDL_ROOT}/src/thread/SDL_thread_c.h"
|
||||
|
||||
#c/timer:
|
||||
"${SDL_ROOT}/src/timer/SDL_timer.c"
|
||||
"${SDL_ROOT}/src/timer/SDL_timer_c.h"
|
||||
|
||||
#c/video:
|
||||
"${SDL_ROOT}/src/video/SDL_blit_0.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_1.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_A.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_auto.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_auto.h"
|
||||
"${SDL_ROOT}/src/video/SDL_blit.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_copy.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_copy.h"
|
||||
"${SDL_ROOT}/src/video/SDL_blit.h"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_N.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_slow.c"
|
||||
"${SDL_ROOT}/src/video/SDL_blit_slow.h"
|
||||
"${SDL_ROOT}/src/video/SDL_bmp.c"
|
||||
"${SDL_ROOT}/src/video/SDL_clipboard.c"
|
||||
"${SDL_ROOT}/src/video/SDL_fillrect.c"
|
||||
"${SDL_ROOT}/src/video/SDL_pixels.c"
|
||||
"${SDL_ROOT}/src/video/SDL_pixels_c.h"
|
||||
"${SDL_ROOT}/src/video/SDL_rect.c"
|
||||
"${SDL_ROOT}/src/video/SDL_rect_c.h"
|
||||
"${SDL_ROOT}/src/video/SDL_RLEaccel.c"
|
||||
"${SDL_ROOT}/src/video/SDL_RLEaccel_c.h"
|
||||
"${SDL_ROOT}/src/video/SDL_shape.c"
|
||||
"${SDL_ROOT}/src/video/SDL_shape_internals.h"
|
||||
"${SDL_ROOT}/src/video/SDL_stretch.c"
|
||||
"${SDL_ROOT}/src/video/SDL_surface.c"
|
||||
"${SDL_ROOT}/src/video/SDL_sysvideo.h"
|
||||
"${SDL_ROOT}/src/video/SDL_video.c"
|
||||
|
||||
#re deeply nestedfiles that may need some platform specific logic to determine inclusion
|
||||
"${SDL_ROOT}/src/audio/dummy/SDL_dummyaudio.c"
|
||||
"${SDL_ROOT}/src/audio/dummy/SDL_dummyaudio.h"
|
||||
"${SDL_ROOT}/src/haptic/dummy/SDL_syshaptic.c"
|
||||
"${SDL_ROOT}/src/haptic/linux/SDL_syshaptic.c"
|
||||
"${SDL_ROOT}/src/joystick/dummy/SDL_sysjoystick.c"
|
||||
"${SDL_ROOT}/src/joystick/linux/SDL_sysjoystick.c"
|
||||
"${SDL_ROOT}/src/joystick/linux/SDL_sysjoystick_c.h"
|
||||
"${SDL_ROOT}/src/loadso/dlopen/SDL_sysloadso.c"
|
||||
"${SDL_ROOT}/src/loadso/dummy/SDL_sysloadso.c"
|
||||
"${SDL_ROOT}/src/loadso/macosx/SDL_dlcompat.c"
|
||||
"${SDL_ROOT}/src/main/dummy/SDL_dummy_main.c"
|
||||
"${SDL_ROOT}/src/power/linux/SDL_syspower.c"
|
||||
"${SDL_ROOT}/src/render/direct3d/SDL_render_d3d.c"
|
||||
"${SDL_ROOT}/src/render/opengles2/SDL_render_gles2.c"
|
||||
"${SDL_ROOT}/src/render/opengles2/SDL_shaders_gles2.c"
|
||||
"${SDL_ROOT}/src/render/opengles2/SDL_shaders_gles2.h"
|
||||
"${SDL_ROOT}/src/render/opengles/SDL_render_gles.c"
|
||||
"${SDL_ROOT}/src/render/opengl/SDL_glfuncs.h"
|
||||
"${SDL_ROOT}/src/render/opengl/SDL_render_gl.c"
|
||||
"${SDL_ROOT}/src/render/opengl/SDL_shaders_gl.c"
|
||||
"${SDL_ROOT}/src/render/opengl/SDL_shaders_gl.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendfillrect.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendfillrect.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendline.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendline.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendpoint.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_blendpoint.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_draw.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_drawline.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_drawline.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_drawpoint.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_drawpoint.h"
|
||||
"${SDL_ROOT}/src/render/software/SDL_render_sw.c"
|
||||
"${SDL_ROOT}/src/render/software/SDL_render_sw_c.h"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_syscond.c"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_sysmutex.c"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_sysmutex_c.h"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_syssem.c"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_systhread.c"
|
||||
"${SDL_ROOT}/src/thread/generic/SDL_systhread_c.h"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_syscond.c"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_sysmutex.c"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_sysmutex_c.h"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_syssem.c"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_systhread.c"
|
||||
"${SDL_ROOT}/src/thread/pthread/SDL_systhread_c.h"
|
||||
"${SDL_ROOT}/src/timer/dummy/SDL_systimer.c"
|
||||
"${SDL_ROOT}/src/timer/unix/SDL_systimer.c"
|
||||
"${SDL_ROOT}/src/timer/wince/SDL_systimer.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_dyn.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_dyn.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_events.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_events.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_modes.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_modes.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_mouse.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_mouse.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_opengl.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_opengl.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_render.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_render.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_video.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_video.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_window.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_window.h"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_WM.c"
|
||||
# "${SDL_ROOT}/src/video/directfb/SDL_DirectFB_WM.h"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullevents.c"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullevents_c.h"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullframebuffer.c"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullframebuffer_c.h"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullvideo.c"
|
||||
"${SDL_ROOT}/src/video/dummy/SDL_nullvideo.h"
|
||||
"${SDL_ROOT}/src/video/uikit/jumphack.c"
|
||||
"${SDL_ROOT}/src/video/uikit/jumphack.h"
|
||||
"${SDL_ROOT}/src/video/uikit/keyinfotable.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitappdelegate.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitevents.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitkeyboard.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitopengles.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitopenglview.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitvideo.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitview.h"
|
||||
"${SDL_ROOT}/src/video/uikit/SDL_uikitwindow.h"
|
||||
"${SDL_ROOT}/src/video/x11/imKStoUCS.c"
|
||||
"${SDL_ROOT}/src/video/x11/imKStoUCS.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11clipboard.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11clipboard.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11dyn.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11dyn.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11events.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11events.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11framebuffer.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11framebuffer.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11keyboard.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11keyboard.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11modes.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11modes.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11mouse.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11mouse.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11opengl.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11opengles.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11opengles.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11opengl.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11shape.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11shape.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11sym.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11touch.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11touch.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11video.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11video.h"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11window.c"
|
||||
"${SDL_ROOT}/src/video/x11/SDL_x11window.h"
|
||||
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/extutil.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/panoramiXext.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/panoramiXproto.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/Xext.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86dga1.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86dga1str.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86dga.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86dgastr.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86vmode.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/xf86vmstr.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/Xinerama.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/Xv.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/Xvlib.h"
|
||||
"${SDL_ROOT}/src/video/Xext/extensions/Xvproto.h"
|
||||
"${SDL_ROOT}/src/video/Xext/Xinerama/Xinerama.c"
|
||||
"${SDL_ROOT}/src/video/Xext/XME/xme.c"
|
||||
"${SDL_ROOT}/src/video/Xext/Xv/Xv.c"
|
||||
"${SDL_ROOT}/src/video/Xext/Xv/Xvlibint.h"
|
||||
"${SDL_ROOT}/src/video/Xext/Xxf86vm/XF86VMode.c"
|
||||
)
|
||||
|
||||
#include_directories( ${SDL_ROOT}/include /usr/include/kde/artsc /usr/include/directfb)
|
||||
|
||||
add_library(${Output} STATIC ${SDL_sources} )
|
||||
|
||||
# Link against opengl
|
||||
# target_link_libraries(${Output} ${OPENGL_LIBRARIES})
|
||||
|
||||
# User flags options
|
||||
if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
|
||||
target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
|
||||
endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
|
|
@ -5,6 +5,7 @@
|
|||
# Use all internal lib: -DFORCE_INTERNAL_ALL=TRUE
|
||||
# Use soundtouch internal lib: -DFORCE_INTERNAL_SOUNDTOUCH=TRUE
|
||||
# Use zlib internal lib: -DFORCE_INTERNAL_ZLIB=TRUE
|
||||
# Use sdl1.3 internal lib: -DFORCE_INTERNAL_SDL=TRUE # Not supported yet
|
||||
### Miscellaneous
|
||||
# Select install dir of l10n : -DL10N_PORTABLE=TRUE(bin/Langs)|FALSE(FHS, /usr...)
|
||||
### Add some flags to the build process
|
||||
|
@ -128,6 +129,7 @@ endif(NOT DEFINED PACKAGE_MODE)
|
|||
if(FORCE_INTERNAL_ALL)
|
||||
set(FORCE_INTERNAL_SOUNDTOUCH TRUE)
|
||||
set(FORCE_INTERNAL_ZLIB TRUE)
|
||||
set(FORCE_INTERNAL_SDL TRUE)
|
||||
endif(FORCE_INTERNAL_ALL)
|
||||
|
||||
if(NOT DEFINED FORCE_INTERNAL_SOUNDTOUCH)
|
||||
|
@ -142,6 +144,12 @@ if(NOT DEFINED FORCE_INTERNAL_ZLIB)
|
|||
set(FORCE_INTERNAL_ZLIB FALSE)
|
||||
endif(NOT DEFINED FORCE_INTERNAL_ZLIB)
|
||||
|
||||
# Keep external sdl for the moment
|
||||
set(FORCE_INTERNAL_SDL FALSE)
|
||||
# if(NOT DEFINED FORCE_INTERNAL_SDL)
|
||||
# set(FORCE_INTERNAL_SDL FALSE)
|
||||
# endif(NOT DEFINED FORCE_INTERNAL_SDL)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Select library system vs 3rdparty
|
||||
#-------------------------------------------------------------------------------
|
||||
|
|
|
@ -32,8 +32,10 @@ find_package(Gettext) # translation tool
|
|||
find_package(JPEG)
|
||||
find_package(OpenGL)
|
||||
# Tell cmake that we use SDL as a library and not as an application
|
||||
set(SDL_BUILDING_LIBRARY TRUE)
|
||||
find_package(SDL)
|
||||
if(NOT FORCE_INTERNAL_SDL)
|
||||
set(SDL_BUILDING_LIBRARY TRUE)
|
||||
find_package(SDL)
|
||||
endif(NOT FORCE_INTERNAL_SDL)
|
||||
find_package(Subversion)
|
||||
# The requierement of wxWidgets is checked in SelectPcsx2Plugins module
|
||||
# Does not requier the module (allow to compile non-wx plugins)
|
||||
|
@ -83,6 +85,16 @@ if(NOT SOUNDTOUCH_FOUND OR FORCE_INTERNAL_SOUNDTOUCH)
|
|||
message(STATUS "Use internal pcsx2 SoundTouch library")
|
||||
endif(NOT SOUNDTOUCH_FOUND OR FORCE_INTERNAL_SOUNDTOUCH)
|
||||
|
||||
if(NOT SDL_FOUND OR FORCE_INTERNAL_SDL)
|
||||
# use project one
|
||||
set(projectSDL TRUE)
|
||||
set(SDL_FOUND TRUE)
|
||||
# Set path
|
||||
set(SDL_LIBRARY pcsx2_SDL)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/3rdparty/SDL-1.3.0-5387/include)
|
||||
message(STATUS "Use internal pcsx2 SDL library")
|
||||
endif(NOT SDL_FOUND OR FORCE_INTERNAL_SDL)
|
||||
|
||||
#----------------------------------------
|
||||
# Use system include (if not 3rdparty one)
|
||||
#----------------------------------------
|
||||
|
@ -134,9 +146,9 @@ if(PORTAUDIO_FOUND)
|
|||
endif(PORTAUDIO_FOUND)
|
||||
|
||||
# SDL
|
||||
if(SDL_FOUND)
|
||||
if(SDL_FOUND AND NOT projectSDL)
|
||||
include_directories(${SDL_INCLUDE_DIR})
|
||||
endif(SDL_FOUND)
|
||||
endif(SDL_FOUND AND NOT projectSDL)
|
||||
|
||||
# SoundTouch
|
||||
if(SOUNDTOUCH_FOUND AND NOT projectSoundTouch)
|
||||
|
|
|
@ -5,7 +5,7 @@ set(msg_dep_common_libs "check these libraries -> wxWidgets (>=2.8.10), sparseha
|
|||
set(msg_dep_pcsx2 "check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs")
|
||||
set(msg_dep_cdvdiso "check these libraries -> bzip2 (>=1.0.5)")
|
||||
set(msg_dep_zerogs "check these libraries -> glew (>=1.5), opengl, X11, nvidia-cg-toolkit (>=2.1)")
|
||||
set(msg_dep_gsdx "check these libraries -> opengl, X11")
|
||||
set(msg_dep_gsdx "check these libraries -> opengl, X11, pcsx2 SDL")
|
||||
set(msg_dep_zzogl "check these libraries -> glew (>=1.5), jpeg (>=6.2), opengl, X11, nvidia-cg-toolkit (>=2.1), pcsx2 common libs")
|
||||
set(msg_dep_onepad "check these libraries -> sdl (>=1.2)")
|
||||
set(msg_dep_zeropad "check these libraries -> sdl (>=1.2)")
|
||||
|
@ -110,16 +110,15 @@ set(GSnull TRUE)
|
|||
#---------------------------------------
|
||||
# requires: -OpenGL
|
||||
# -X11
|
||||
# -PCSX2 SDL
|
||||
#---------------------------------------
|
||||
if(OPENGL_FOUND AND X11_FOUND)
|
||||
if(OPENGL_FOUND AND X11_FOUND AND projectSDL)
|
||||
set(GSdx TRUE)
|
||||
else(OPENGL_FOUND AND X11_FOUND)
|
||||
else(OPENGL_FOUND AND X11_FOUND AND projectSDL)
|
||||
set(GSdx FALSE)
|
||||
message(STATUS "Skip build of GSdx: miss some dependencies")
|
||||
message(STATUS "${msg_dep_gsdx}")
|
||||
endif(OPENGL_FOUND AND X11_FOUND)
|
||||
# FIXME: for the moment disable gsdx. I will enable it when sdl is supported on cmake
|
||||
set(GSdx FALSE)
|
||||
endif(OPENGL_FOUND AND X11_FOUND AND projectSDL)
|
||||
#---------------------------------------
|
||||
|
||||
#---------------------------------------
|
||||
|
|
|
@ -62,6 +62,8 @@ set(GSdxSources
|
|||
GSCodeBuffer.cpp
|
||||
GSCrc.cpp
|
||||
GSDevice.cpp
|
||||
GSDeviceSDL.cpp
|
||||
GSDeviceSW.cpp
|
||||
GSDeviceNull.cpp
|
||||
GSDirtyRect.cpp
|
||||
GSDrawScanline.cpp
|
||||
|
@ -83,6 +85,7 @@ set(GSdxSources
|
|||
GSTextureCache.cpp
|
||||
GSTextureCacheSW.cpp
|
||||
GSTextureNull.cpp
|
||||
GSTextureSW.cpp
|
||||
GSThread.cpp
|
||||
GSUtil.cpp
|
||||
GSVector.cpp
|
||||
|
@ -168,6 +171,9 @@ set_target_properties(${Output} PROPERTIES
|
|||
# link target with X11
|
||||
target_link_libraries(${Output} ${X11_LIBRARIES})
|
||||
|
||||
# link target with SDL
|
||||
target_link_libraries(${Output} ${SDL_LIBRARY})
|
||||
|
||||
# User flags options
|
||||
if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
|
||||
target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
|
||||
|
|
Loading…
Reference in New Issue