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