2012-11-01 15:19:01 +00:00
|
|
|
set(SRCS
|
|
|
|
ColorUtil.cpp
|
|
|
|
ConsoleListener.cpp
|
|
|
|
ExtendedTrace.cpp
|
|
|
|
#FPURoundModeX86.cpp
|
|
|
|
FileSearch.cpp
|
|
|
|
FileUtil.cpp
|
|
|
|
Hash.cpp
|
|
|
|
IniFile.cpp
|
|
|
|
LogManager.cpp
|
|
|
|
MemArena.cpp
|
|
|
|
MemoryUtil.cpp
|
|
|
|
Misc.cpp
|
|
|
|
MsgHandler.cpp
|
|
|
|
StringUtil.cpp
|
|
|
|
Thread.cpp
|
|
|
|
Timer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
if (ARM)
|
|
|
|
set(SRCS ${SRCS} ArmEmitter.cpp ArmABI.cpp)
|
2012-11-05 13:09:49 +00:00
|
|
|
else()
|
2012-11-19 23:48:13 +00:00
|
|
|
set(SRCS ${SRCS} CPUDetect.cpp MathUtil.cpp Thunk.cpp x64Analyzer.cpp x64Emitter.cpp ABI.cpp)
|
2012-11-01 15:19:01 +00:00
|
|
|
endif (ARM)
|
|
|
|
|
|
|
|
set(SRCS ${SRCS})
|
|
|
|
|
|
|
|
add_library(common STATIC ${SRCS})
|
|
|
|
|
|
|
|
if(UNIX)
|
2012-11-05 13:09:49 +00:00
|
|
|
add_definitions(-fPIC)
|
2012-11-01 15:19:01 +00:00
|
|
|
endif(UNIX)
|
|
|
|
|