commit
1bc5e4bc45
|
@ -319,8 +319,8 @@ if(UNIX)
|
||||||
option(LINUX_LOCAL_DEV "Enable relocatable binary" OFF)
|
option(LINUX_LOCAL_DEV "Enable relocatable binary" OFF)
|
||||||
if(LINUX_LOCAL_DEV)
|
if(LINUX_LOCAL_DEV)
|
||||||
add_definitions(-DLINUX_LOCAL_DEV)
|
add_definitions(-DLINUX_LOCAL_DEV)
|
||||||
endif(LINUX_LOCAL_DEV)
|
endif()
|
||||||
endif(UNIX)
|
endif()
|
||||||
|
|
||||||
# BSDs put packages in /usr/local instead of /usr, so we need to
|
# BSDs put packages in /usr/local instead of /usr, so we need to
|
||||||
# force CMake to look in those directories by default, too.
|
# force CMake to look in those directories by default, too.
|
||||||
|
@ -339,7 +339,7 @@ find_package(Threads)
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
|
||||||
"Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE)
|
"Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE)
|
||||||
endif(NOT CMAKE_BUILD_TYPE)
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
@ -362,7 +362,7 @@ endif()
|
||||||
|
|
||||||
if(GDBSTUB)
|
if(GDBSTUB)
|
||||||
add_definitions(-DUSE_GDBSTUB)
|
add_definitions(-DUSE_GDBSTUB)
|
||||||
endif(GDBSTUB)
|
endif()
|
||||||
|
|
||||||
if(VTUNE)
|
if(VTUNE)
|
||||||
if(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
|
if(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
|
||||||
|
@ -378,7 +378,7 @@ if(VTUNE)
|
||||||
"${VTUNE_DIR}/lib64/libjitprofiling.a"
|
"${VTUNE_DIR}/lib64/libjitprofiling.a"
|
||||||
"${VTUNE_DIR}/lib64/libittnotify.a"
|
"${VTUNE_DIR}/lib64/libittnotify.a"
|
||||||
)
|
)
|
||||||
endif(VTUNE)
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
message(STATUS "Building for Android")
|
message(STATUS "Building for Android")
|
||||||
|
@ -530,7 +530,7 @@ if(UNIX AND NOT APPLE AND NOT ANDROID AND NOT ENABLE_HEADLESS)
|
||||||
SET(X11_FOUND "")
|
SET(X11_FOUND "")
|
||||||
message(STATUS "X11 support disabled")
|
message(STATUS "X11 support disabled")
|
||||||
add_definitions(-DHAVE_X11=0)
|
add_definitions(-DHAVE_X11=0)
|
||||||
endif(TRY_X11 AND X11_FOUND)
|
endif()
|
||||||
|
|
||||||
if (NOT USE_X11)
|
if (NOT USE_X11)
|
||||||
message(FATAL_ERROR "\n"
|
message(FATAL_ERROR "\n"
|
||||||
|
@ -545,7 +545,7 @@ if(USE_X11)
|
||||||
add_definitions(-DHAVE_XRANDR=1)
|
add_definitions(-DHAVE_XRANDR=1)
|
||||||
else()
|
else()
|
||||||
add_definitions(-DHAVE_XRANDR=0)
|
add_definitions(-DHAVE_XRANDR=0)
|
||||||
endif(XRANDR_FOUND)
|
endif()
|
||||||
|
|
||||||
pkg_check_modules(X11_INPUT REQUIRED xi>=1.5.0)
|
pkg_check_modules(X11_INPUT REQUIRED xi>=1.5.0)
|
||||||
endif()
|
endif()
|
||||||
|
@ -683,11 +683,11 @@ find_package(ZLIB)
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
message(STATUS "Using shared zlib")
|
message(STATUS "Using shared zlib")
|
||||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||||
else(ZLIB_FOUND)
|
else()
|
||||||
message(STATUS "Shared zlib not found, falling back to the static library")
|
message(STATUS "Shared zlib not found, falling back to the static library")
|
||||||
add_subdirectory(Externals/zlib)
|
add_subdirectory(Externals/zlib)
|
||||||
include_directories(Externals/zlib)
|
include_directories(Externals/zlib)
|
||||||
endif(ZLIB_FOUND)
|
endif()
|
||||||
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
check_lib(LZO "(no .pc for lzo2)" lzo2 lzo/lzo1x.h QUIET)
|
check_lib(LZO "(no .pc for lzo2)" lzo2 lzo/lzo1x.h QUIET)
|
||||||
|
@ -733,17 +733,17 @@ if(ENABLE_SDL)
|
||||||
message(STATUS "Using shared SDL2")
|
message(STATUS "Using shared SDL2")
|
||||||
add_definitions(-DHAVE_SDL=1)
|
add_definitions(-DHAVE_SDL=1)
|
||||||
include_directories(${SDL2_INCLUDE_DIR})
|
include_directories(${SDL2_INCLUDE_DIR})
|
||||||
else(SDL2_FOUND)
|
else()
|
||||||
# SDL2 not found, try SDL
|
# SDL2 not found, try SDL
|
||||||
find_package(SDL OPTIONAL)
|
find_package(SDL OPTIONAL)
|
||||||
if(SDL_FOUND)
|
if(SDL_FOUND)
|
||||||
message(STATUS "Using shared SDL")
|
message(STATUS "Using shared SDL")
|
||||||
add_definitions(-DHAVE_SDL=1)
|
add_definitions(-DHAVE_SDL=1)
|
||||||
include_directories(${SDL_INCLUDE_DIR})
|
include_directories(${SDL_INCLUDE_DIR})
|
||||||
else(SDL_FOUND)
|
else()
|
||||||
message(STATUS "SDL NOT found, disabling SDL input")
|
message(STATUS "SDL NOT found, disabling SDL input")
|
||||||
endif(SDL_FOUND)
|
endif()
|
||||||
endif(SDL2_FOUND)
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
|
@ -906,7 +906,7 @@ if(NOT DISABLE_WX)
|
||||||
message(STATUS "At least ${wxMIN_VERSION} is required; ignoring found version")
|
message(STATUS "At least ${wxMIN_VERSION} is required; ignoring found version")
|
||||||
unset(wxWidgets_FOUND)
|
unset(wxWidgets_FOUND)
|
||||||
endif()
|
endif()
|
||||||
endif(wxWidgets_FOUND)
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
# There is a bug in the FindGTK module in cmake version 2.8.2 that
|
# There is a bug in the FindGTK module in cmake version 2.8.2 that
|
||||||
|
@ -935,7 +935,7 @@ if(NOT DISABLE_WX)
|
||||||
if(wxWidgets_FOUND)
|
if(wxWidgets_FOUND)
|
||||||
include(${wxWidgets_USE_FILE})
|
include(${wxWidgets_USE_FILE})
|
||||||
message(STATUS "wxWidgets found, enabling GUI build")
|
message(STATUS "wxWidgets found, enabling GUI build")
|
||||||
else(wxWidgets_FOUND)
|
else()
|
||||||
message(STATUS "Using static wxWidgets from Externals")
|
message(STATUS "Using static wxWidgets from Externals")
|
||||||
|
|
||||||
# These definitions and includes are used when building dolphin against wx,
|
# These definitions and includes are used when building dolphin against wx,
|
||||||
|
@ -963,8 +963,8 @@ if(NOT DISABLE_WX)
|
||||||
add_subdirectory(Externals/wxWidgets3)
|
add_subdirectory(Externals/wxWidgets3)
|
||||||
set(wxWidgets_FOUND TRUE)
|
set(wxWidgets_FOUND TRUE)
|
||||||
set(wxWidgets_LIBRARIES "wx")
|
set(wxWidgets_LIBRARIES "wx")
|
||||||
endif(wxWidgets_FOUND)
|
endif()
|
||||||
endif(NOT DISABLE_WX)
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD")
|
||||||
set(LIBS ${LIBS} usbhid)
|
set(LIBS ${LIBS} usbhid)
|
||||||
|
|
|
@ -11,7 +11,7 @@ add_definitions(-D__STDC_CONSTANT_MACROS)
|
||||||
macro(add_dolphin_library lib srcs libs)
|
macro(add_dolphin_library lib srcs libs)
|
||||||
add_library(${lib} STATIC ${srcs})
|
add_library(${lib} STATIC ${srcs})
|
||||||
target_link_libraries(${lib} ${libs})
|
target_link_libraries(${lib} ${libs})
|
||||||
endmacro(add_dolphin_library)
|
endmacro()
|
||||||
|
|
||||||
add_subdirectory(Core)
|
add_subdirectory(Core)
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
|
|
|
@ -9,27 +9,27 @@ set(LIBS "")
|
||||||
if(OPENSLES_FOUND)
|
if(OPENSLES_FOUND)
|
||||||
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
||||||
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
|
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
|
||||||
endif(OPENSLES_FOUND)
|
endif()
|
||||||
|
|
||||||
if(ALSA_FOUND)
|
if(ALSA_FOUND)
|
||||||
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
||||||
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
||||||
endif(ALSA_FOUND)
|
endif()
|
||||||
|
|
||||||
if(AO_FOUND)
|
if(AO_FOUND)
|
||||||
set(SRCS ${SRCS} AOSoundStream.cpp)
|
set(SRCS ${SRCS} AOSoundStream.cpp)
|
||||||
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
||||||
endif(AO_FOUND)
|
endif()
|
||||||
|
|
||||||
if(OPENAL_FOUND)
|
if(OPENAL_FOUND)
|
||||||
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
||||||
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
||||||
endif(OPENAL_FOUND)
|
endif()
|
||||||
|
|
||||||
if(PULSEAUDIO_FOUND)
|
if(PULSEAUDIO_FOUND)
|
||||||
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
||||||
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
||||||
endif(PULSEAUDIO_FOUND)
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
||||||
|
|
|
@ -266,7 +266,7 @@ if(LIBUSB_FOUND)
|
||||||
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
|
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
|
||||||
set(SRCS ${SRCS} IOS/USB/USB_HIDv4.cpp
|
set(SRCS ${SRCS} IOS/USB/USB_HIDv4.cpp
|
||||||
IOS/USB/Bluetooth/BTReal.cpp)
|
IOS/USB/Bluetooth/BTReal.cpp)
|
||||||
endif(LIBUSB_FOUND)
|
endif()
|
||||||
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
set(LIBS ${LIBS} videovulkan)
|
set(LIBS ${LIBS} videovulkan)
|
||||||
|
@ -297,22 +297,22 @@ elseif(UNIX)
|
||||||
endif()
|
endif()
|
||||||
if(HIDAPI_FOUND)
|
if(HIDAPI_FOUND)
|
||||||
set(SRCS ${SRCS} HW/WiimoteReal/IOhidapi.cpp)
|
set(SRCS ${SRCS} HW/WiimoteReal/IOhidapi.cpp)
|
||||||
endif(HIDAPI_FOUND)
|
endif()
|
||||||
|
|
||||||
if(PORTAUDIO_FOUND)
|
if(PORTAUDIO_FOUND)
|
||||||
set(LIBS ${LIBS} ${PORTAUDIO_LIBRARIES})
|
set(LIBS ${LIBS} ${PORTAUDIO_LIBRARIES})
|
||||||
endif(PORTAUDIO_FOUND)
|
endif()
|
||||||
|
|
||||||
if(OPROFILE_FOUND)
|
if(OPROFILE_FOUND)
|
||||||
set(LIBS ${LIBS} ${OPROFILE_LIBRARIES})
|
set(LIBS ${LIBS} ${OPROFILE_LIBRARIES})
|
||||||
endif(OPROFILE_FOUND)
|
endif()
|
||||||
|
|
||||||
if(GDBSTUB)
|
if(GDBSTUB)
|
||||||
set(SRCS ${SRCS} PowerPC/GDBStub.cpp)
|
set(SRCS ${SRCS} PowerPC/GDBStub.cpp)
|
||||||
endif(GDBSTUB)
|
endif()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
set(SRCS ${SRCS} MemoryWatcher.cpp)
|
set(SRCS ${SRCS} MemoryWatcher.cpp)
|
||||||
endif(UNIX)
|
endif()
|
||||||
|
|
||||||
add_dolphin_library(core "${SRCS}" "${LIBS}")
|
add_dolphin_library(core "${SRCS}" "${LIBS}")
|
||||||
|
|
|
@ -189,7 +189,7 @@ if(wxWidgets_FOUND)
|
||||||
${BUNDLE_PATH}/Contents/Resources/\${TRANSLATION_DIR}/\${TRANSLATION_FILE}
|
${BUNDLE_PATH}/Contents/Resources/\${TRANSLATION_DIR}/\${TRANSLATION_FILE}
|
||||||
${BUNDLE_PATH}/Contents/Resources/\${TRANSLATION_DIR}/dolphin-emu.mo
|
${BUNDLE_PATH}/Contents/Resources/\${TRANSLATION_DIR}/dolphin-emu.mo
|
||||||
)
|
)
|
||||||
endforeach(TRANSLATION_FILE)
|
endforeach()
|
||||||
")
|
")
|
||||||
|
|
||||||
file(GLOB PO_FILES RELATIVE ${CMAKE_SOURCE_DIR}/Languages/po
|
file(GLOB PO_FILES RELATIVE ${CMAKE_SOURCE_DIR}/Languages/po
|
||||||
|
|
|
@ -17,7 +17,7 @@ macro(add_dolphin_test target srcs)
|
||||||
target_link_libraries(Test_${target} ${LIBS})
|
target_link_libraries(Test_${target} ${LIBS})
|
||||||
add_dependencies(unittests Test_${target})
|
add_dependencies(unittests Test_${target})
|
||||||
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
||||||
endmacro(add_dolphin_test)
|
endmacro()
|
||||||
|
|
||||||
add_subdirectory(TestUtils)
|
add_subdirectory(TestUtils)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue