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