mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Added checks for portaudio and opencl to the cmake build system.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6351 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -139,6 +139,12 @@ elseif(UNIX)
|
||||
set(SRCS ${SRCS} Src/HW/BBA-TAP/TAP_Unix.cpp)
|
||||
endif()
|
||||
|
||||
add_library(core STATIC ${SRCS})
|
||||
target_link_libraries(core bdisasm inputcommon lua sfml-network wiiuse)
|
||||
set(LIBS bdisasm inputcommon lua sfml-network wiiuse)
|
||||
|
||||
if(PORTAUDIO_FOUND)
|
||||
set(LIBS ${LIBS} portaudio)
|
||||
endif(PORTAUDIO_FOUND)
|
||||
|
||||
add_library(core STATIC ${SRCS})
|
||||
target_link_libraries(core ${LIBS})
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
bool MicButton = false;
|
||||
bool IsOpen;
|
||||
|
||||
// Unfortunately this must be enabled in Common.h for windows users. Scons should enable it otherwise7
|
||||
// Unfortunately this must be enabled in Common.h for windows users. Scons should enable it otherwise
|
||||
#if !HAVE_PORTAUDIO
|
||||
|
||||
void SetMic(bool Value){}
|
||||
|
@ -33,7 +33,6 @@ set(SRCS Src/BPMemory.cpp
|
||||
Src/XFMemory.cpp
|
||||
Src/XFStructs.cpp)
|
||||
|
||||
# TODO?
|
||||
if(OPENCL_FOUND)
|
||||
set(SRCS ${SRCS} Src/OpenCL/OCLTextureDecoder.cpp)
|
||||
endif(OPENCL_FOUND)
|
||||
|
@ -28,10 +28,10 @@ endif(wxWidgets_FOUND)
|
||||
|
||||
if(APPLE AND NOT wxWidgets_FOUND)
|
||||
set(SRCS ${SRCS} cocoaGL.m)
|
||||
elif(WIN32)
|
||||
elseif(WIN32)
|
||||
set(SRCS ${SRCS} OS/Win32.cpp)
|
||||
#elif(NOT APPLE AND OPENCL_FOUND) # TODO: Add OpenCL support
|
||||
# set(LIBS ${LIBS} OpenCL)
|
||||
elseif(NOT APPLE AND OPENCL_FOUND)
|
||||
set(LIBS ${LIBS} OpenCL)
|
||||
endif()
|
||||
|
||||
add_library(Plugin_VideoOGL SHARED ${SRCS})
|
||||
|
Reference in New Issue
Block a user