mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Some more work on CMake on Windows:
- add support for precompiled headers with MSVC - compile with _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE only for our sources, some dependencies seem to have problems with it enabled... - disable -Wall for MSVC too prevent warning flood - rename aes_cbc.c and aes_core.c to cpp files since it makes stuff a lot easier and there's really no reason not to do it since they had been compiled as C++ before anyway git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6797 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -30,17 +30,19 @@ set(SRCS Src/ABI.cpp
|
||||
Src/Version.cpp
|
||||
Src/x64Analyzer.cpp
|
||||
Src/x64Emitter.cpp
|
||||
Src/Crypto/aes_cbc.c
|
||||
Src/Crypto/aes_core.c
|
||||
Src/Crypto/aes_cbc.cpp
|
||||
Src/Crypto/aes_core.cpp
|
||||
Src/Crypto/bn.cpp
|
||||
Src/Crypto/ec.cpp
|
||||
Src/Crypto/md5.cpp
|
||||
Src/Crypto/sha1.cpp)
|
||||
|
||||
if(WIN32)
|
||||
set(SRCS ${SRCS} Src/ExtendedTrace.cpp Src/stdafx.cpp)
|
||||
set(SRCS ${SRCS} Src/ExtendedTrace.cpp)
|
||||
endif(WIN32)
|
||||
|
||||
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
|
||||
|
||||
add_library(common STATIC ${SRCS})
|
||||
target_link_libraries(common ${CMAKE_DL_LIBS})
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
Reference in New Issue
Block a user