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:
NeoBrainX
2011-01-09 16:36:19 +00:00
parent e6c87cbe3d
commit 81638396c0
7 changed files with 52 additions and 125 deletions

View File

@ -1,7 +1,6 @@
# wxAdv28
set(SRCS src/common/accesscmn.cpp
src/common/datavcmn.cpp
src/common/dummy.cpp
src/common/taskbarcmn.cpp
src/generic/aboutdlgg.cpp
src/generic/animateg.cpp
@ -26,6 +25,7 @@ set(SRCS src/common/accesscmn.cpp
src/msw/joystick.cpp
src/msw/sound.cpp
src/msw/taskbar.cpp)
enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
add_library(wxAdv28 STATIC ${SRCS})
@ -35,8 +35,8 @@ set(SRCS src/aui/auibar.cpp
src/aui/dockart.cpp
src/aui/floatpane.cpp
src/aui/framemanager.cpp
src/aui/tabmdi.cpp
src/common/dummy.cpp)
src/aui/tabmdi.cpp)
enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
add_library(wxAui STATIC ${SRCS})
@ -52,7 +52,6 @@ set(SRCS src/common/appbase.cpp
src/common/datetime.cpp
src/common/datstrm.cpp
src/common/dircmn.cpp
src/common/dummy.cpp
src/common/dynarray.cpp
src/common/dynlib.cpp
src/common/dynload.cpp
@ -130,6 +129,7 @@ set(SRCS src/common/appbase.cpp
src/msw/utils.cpp
src/msw/utilsexc.cpp
src/msw/volume.cpp)
enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
add_library(wxBase28 STATIC ${SRCS})
@ -163,7 +163,6 @@ set(SRCS src/common/accesscmn.cpp
src/common/docview.cpp
src/common/dpycmn.cpp
src/common/dseldlg.cpp
src/common/dummy.cpp
src/common/effects.cpp
src/common/event.cpp
src/common/evtloopcmn.cpp
@ -374,8 +373,11 @@ set(SRCS src/common/accesscmn.cpp
src/msw/ole/dropsrc.cpp
src/msw/ole/droptgt.cpp
src/msw/ole/oleutils.cpp
src/msw/ole/uuid.cpp
src/png/png.c
src/msw/ole/uuid.cpp)
enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
# These shouldn't link against the precompiled header
set(SRCS ${SRCS} src/png/png.c
src/png/pngerror.c
src/png/pnggccrd.c
src/png/pngget.c
@ -393,4 +395,6 @@ set(SRCS src/common/accesscmn.cpp
src/png/pngwrite.c
src/png/pngwtran.c
src/png/pngwutil.c)
add_library(wxCore28 STATIC ${SRCS})