2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS
|
|
|
|
Analytics.cpp
|
|
|
|
CDUtils.cpp
|
|
|
|
ColorUtil.cpp
|
2017-04-14 13:07:37 -06:00
|
|
|
CommonFuncs.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
Config/Config.cpp
|
|
|
|
Config/Layer.cpp
|
|
|
|
Config/Section.cpp
|
2017-08-07 00:25:14 -06:00
|
|
|
Crypto/AES.cpp
|
|
|
|
Crypto/bn.cpp
|
|
|
|
Crypto/ec.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
ENetUtil.cpp
|
2017-01-15 13:46:32 -07:00
|
|
|
File.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
FileSearch.cpp
|
|
|
|
FileUtil.cpp
|
|
|
|
GekkoDisassembler.cpp
|
|
|
|
Hash.cpp
|
2017-06-12 09:17:05 -06:00
|
|
|
HttpRequest.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
IniFile.cpp
|
|
|
|
JitRegister.cpp
|
2017-08-07 00:25:14 -06:00
|
|
|
Logging/LogManager.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
MathUtil.cpp
|
2017-08-07 00:25:14 -06:00
|
|
|
MD5.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
MemArena.cpp
|
|
|
|
MemoryUtil.cpp
|
|
|
|
MsgHandler.cpp
|
|
|
|
NandPaths.cpp
|
|
|
|
Network.cpp
|
|
|
|
PcapFile.cpp
|
|
|
|
PerformanceCounter.cpp
|
|
|
|
Profiler.cpp
|
|
|
|
SettingsHandler.cpp
|
|
|
|
SDCardUtil.cpp
|
|
|
|
StringUtil.cpp
|
|
|
|
SymbolDB.cpp
|
|
|
|
SysConf.cpp
|
|
|
|
Thread.cpp
|
|
|
|
Timer.cpp
|
|
|
|
TraversalClient.cpp
|
2017-08-07 00:26:01 -06:00
|
|
|
UPnP.cpp
|
2017-03-01 05:43:43 -07:00
|
|
|
Version.cpp
|
|
|
|
x64ABI.cpp
|
|
|
|
x64Emitter.cpp
|
|
|
|
)
|
2014-06-05 17:29:54 -06:00
|
|
|
|
2017-03-25 13:11:33 -06:00
|
|
|
set(LIBS ${LIBS} ${MBEDTLS_LIBRARIES})
|
|
|
|
|
2015-10-03 07:10:43 -06:00
|
|
|
if(ANDROID)
|
2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerDroid.cpp)
|
2017-01-20 16:28:32 -07:00
|
|
|
elseif(WIN32)
|
2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerWin.cpp)
|
2015-10-03 07:10:43 -06:00
|
|
|
else()
|
2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Logging/ConsoleListenerNix.cpp)
|
2015-10-03 07:10:43 -06:00
|
|
|
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)
|
2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Arm64Emitter.cpp
|
|
|
|
ArmCPUDetect.cpp
|
|
|
|
GenericFPURoundMode.cpp
|
|
|
|
)
|
2014-06-05 19:33:35 -06:00
|
|
|
else()
|
2017-03-01 05:43:43 -07:00
|
|
|
if(_M_X86) #X86
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
x64FPURoundMode.cpp
|
|
|
|
x64CPUDetect.cpp
|
|
|
|
)
|
|
|
|
else() # Generic
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
GenericFPURoundMode.cpp
|
|
|
|
GenericCPUDetect.cpp
|
|
|
|
)
|
|
|
|
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}
|
2017-03-01 05:43:43 -07:00
|
|
|
GL/GLUtil.cpp
|
|
|
|
GL/GLExtensions/GLExtensions.cpp
|
|
|
|
GL/GLInterface/GLInterface.cpp
|
|
|
|
)
|
2015-09-18 10:40:00 -06:00
|
|
|
|
|
|
|
if(USE_EGL)
|
2017-03-01 05:43:43 -07:00
|
|
|
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)
|
2015-09-18 10:40:00 -06:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|
2017-06-15 22:26:40 -06:00
|
|
|
set(SRCS ${SRCS} GL/GLInterface/WGL.cpp CompatPatches.cpp)
|
2015-09-18 10:40:00 -06:00
|
|
|
elseif(APPLE)
|
2017-03-01 05:43:43 -07:00
|
|
|
set(SRCS ${SRCS} GL/GLInterface/AGL.mm)
|
2017-02-22 10:21:10 -07:00
|
|
|
elseif(HAIKU)
|
|
|
|
set(SRCS ${SRCS} GL/GLInterface/BGL.cpp)
|
|
|
|
set(LIBS ${LIBS} be GL)
|
2015-09-18 10:40:00 -06:00
|
|
|
elseif(USE_X11)
|
2017-03-01 05:43:43 -07:00
|
|
|
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})
|
2015-09-18 10:40:00 -06:00
|
|
|
endif()
|
|
|
|
|
2016-07-17 03:54:31 -06:00
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
2017-03-01 05:43:43 -07:00
|
|
|
set(LIBS ${LIBS} dl)
|
2015-09-18 10:40:00 -06:00
|
|
|
endif()
|
|
|
|
|
2014-08-02 00:23:52 -06:00
|
|
|
add_dolphin_library(common "${SRCS}" "${LIBS}")
|
2017-01-20 15:03:59 -07:00
|
|
|
|
2017-08-14 15:09:32 -06:00
|
|
|
if(OPROFILE_FOUND)
|
|
|
|
target_link_libraries(common PRIVATE ${OPROFILE_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2017-01-20 15:03:59 -07:00
|
|
|
if(UNIX)
|
2017-03-01 05:43:43 -07:00
|
|
|
# Posix networking code needs to be fixed for Windows
|
|
|
|
add_executable(traversal_server TraversalServer.cpp)
|
2017-02-22 10:21:10 -07:00
|
|
|
if(HAIKU)
|
|
|
|
target_link_libraries(traversal_server network)
|
|
|
|
endif()
|
2017-06-15 22:26:40 -06:00
|
|
|
elseif(WIN32)
|
|
|
|
target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches")
|
2017-01-20 15:03:59 -07:00
|
|
|
endif()
|