2016-06-17 18:43:59 -06:00
|
|
|
set(SRCS Analytics.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
CDUtils.cpp
|
|
|
|
ColorUtil.cpp
|
2015-03-09 11:37:02 -06:00
|
|
|
ENetUtil.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
FileSearch.cpp
|
|
|
|
FileUtil.cpp
|
2014-07-17 19:33:51 -06:00
|
|
|
GekkoDisassembler.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
Hash.cpp
|
|
|
|
IniFile.cpp
|
2014-10-31 13:12:54 -06:00
|
|
|
JitRegister.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
MathUtil.cpp
|
|
|
|
MemArena.cpp
|
|
|
|
MemoryUtil.cpp
|
|
|
|
Misc.cpp
|
|
|
|
MsgHandler.cpp
|
|
|
|
NandPaths.cpp
|
|
|
|
Network.cpp
|
2016-01-14 15:36:11 -07:00
|
|
|
Config.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
PcapFile.cpp
|
2014-10-17 18:50:02 -06:00
|
|
|
PerformanceCounter.cpp
|
2014-11-19 11:57:12 -07:00
|
|
|
Profiler.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
SettingsHandler.cpp
|
|
|
|
SDCardUtil.cpp
|
|
|
|
StringUtil.cpp
|
|
|
|
SymbolDB.cpp
|
|
|
|
SysConf.cpp
|
|
|
|
Thread.cpp
|
|
|
|
Timer.cpp
|
2015-02-02 03:08:58 -07:00
|
|
|
TraversalClient.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
Version.cpp
|
|
|
|
x64ABI.cpp
|
|
|
|
x64Emitter.cpp
|
2016-07-13 16:45:38 -06:00
|
|
|
MD5.cpp
|
2014-06-05 17:29:54 -06:00
|
|
|
Crypto/bn.cpp
|
|
|
|
Crypto/ec.cpp
|
|
|
|
Logging/LogManager.cpp)
|
|
|
|
|
2017-01-15 12:50:26 -07:00
|
|
|
if(LIBUSB_FOUND)
|
|
|
|
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
|
|
|
|
set(SRCS ${SRCS} LibusbContext.cpp)
|
|
|
|
endif(LIBUSB_FOUND)
|
|
|
|
|
2015-10-03 07:10:43 -06:00
|
|
|
if(ANDROID)
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerDroid.cpp)
|
2017-01-20 16:28:32 -07:00
|
|
|
elseif(WIN32)
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerWin.cpp)
|
2015-10-03 07:10:43 -06:00
|
|
|
else()
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerNix.cpp)
|
|
|
|
endif()
|
|
|
|
|
2016-06-17 18:43:59 -06:00
|
|
|
list(APPEND LIBS enet ${CURL_LIBRARIES})
|
2015-06-07 21:44:13 -06:00
|
|
|
if(_M_ARM_64)
|
2014-06-05 19:33:35 -06:00
|
|
|
set(SRCS ${SRCS}
|
2015-06-07 21:44:13 -06:00
|
|
|
Arm64Emitter.cpp
|
|
|
|
ArmCPUDetect.cpp
|
|
|
|
GenericFPURoundMode.cpp)
|
2014-06-05 19:33:35 -06:00
|
|
|
else()
|
|
|
|
if(_M_X86) #X86
|
|
|
|
set(SRCS ${SRCS}
|
2014-09-22 19:02:21 -06:00
|
|
|
x64FPURoundMode.cpp
|
|
|
|
x64CPUDetect.cpp)
|
2014-09-08 21:24:23 -06:00
|
|
|
else() # Generic
|
|
|
|
set(SRCS ${SRCS}
|
2014-09-22 19:02:21 -06:00
|
|
|
GenericFPURoundMode.cpp
|
|
|
|
GenericCPUDetect.cpp)
|
2014-06-05 19:33:35 -06:00
|
|
|
endif()
|
2013-02-26 12:49:00 -07:00
|
|
|
endif()
|
2010-11-01 09:47:02 -06:00
|
|
|
|
2016-02-05 09:51:56 -07:00
|
|
|
list(APPEND LIBS "${CMAKE_THREAD_LIBS_INIT}" ${VTUNE_LIBRARIES})
|
2014-08-02 00:23:52 -06:00
|
|
|
|
2015-09-18 10:40:00 -06:00
|
|
|
# OpenGL Interface
|
2016-02-05 09:51:56 -07:00
|
|
|
set(SRCS ${SRCS}
|
2015-09-18 10:40:00 -06:00
|
|
|
GL/GLUtil.cpp
|
|
|
|
GL/GLExtensions/GLExtensions.cpp
|
|
|
|
GL/GLInterface/GLInterface.cpp)
|
|
|
|
|
|
|
|
if(USE_EGL)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/EGL.cpp)
|
|
|
|
if(ANDROID)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/EGLAndroid.cpp)
|
|
|
|
elseif(USE_X11)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/EGLX11.cpp)
|
|
|
|
endif()
|
|
|
|
set(LIBS ${LIBS} EGL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/WGL.cpp)
|
|
|
|
elseif(APPLE)
|
2016-09-18 18:22:39 -06:00
|
|
|
set(SRCS ${SRCS} GL/GLInterface/AGL.mm)
|
2015-09-18 10:40:00 -06:00
|
|
|
elseif(USE_X11)
|
|
|
|
if (NOT USE_EGL)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/GLX.cpp)
|
|
|
|
# GLX has a hard dependency on libGL.
|
|
|
|
# Make sure to link to it if using GLX.
|
|
|
|
set(LIBS ${LIBS} ${OPENGL_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/X11_Util.cpp)
|
|
|
|
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2016-07-17 03:54:31 -06:00
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
2015-09-18 10:40:00 -06:00
|
|
|
set(LIBS ${LIBS} dl)
|
|
|
|
endif()
|
|
|
|
|
2014-08-02 00:23:52 -06:00
|
|
|
add_dolphin_library(common "${SRCS}" "${LIBS}")
|
2017-01-20 15:03:59 -07:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
# Posix networking code needs to be fixed for Windows
|
|
|
|
add_executable(traversal_server TraversalServer.cpp)
|
|
|
|
endif()
|