Basic precompiled header support for Linux/OS X. Shaves 20-30% off full rebuild time on my system.

This commit is contained in:
comex
2013-10-17 00:06:34 -04:00
parent cffe6ba3fd
commit de1773affb
11 changed files with 112 additions and 15 deletions

View File

@ -40,5 +40,4 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(SRCS ${SRCS} Src/CoreAudioSoundStream.cpp)
endif()
add_library(audiocommon STATIC ${SRCS})
target_link_libraries(audiocommon ${LIBS})
add_dolphin_library(audiocommon "${SRCS}" "${LIBS}")

View File

@ -51,5 +51,4 @@ endif(WIN32)
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
add_library(common STATIC ${SRCS})
target_link_libraries(common ${CMAKE_THREAD_LIBS_INIT})
add_dolphin_library(common "${SRCS}" "${CMAKE_THREAD_LIBS_INIT}")

View File

@ -269,5 +269,4 @@ if(GDBSTUB)
set(SRCS ${SRCS} Src/PowerPC/GDBStub.cpp)
endif(GDBSTUB)
add_library(core STATIC ${SRCS})
target_link_libraries(core ${LIBS})
add_dolphin_library(core "${SRCS}" "${LIBS}")

View File

@ -21,5 +21,4 @@ set(SRCS Src/BannerLoader.cpp
Src/VolumeWiiCrypted.cpp
Src/WiiWad.cpp)
add_library(discio STATIC ${SRCS})
target_link_libraries(discio common)
add_dolphin_library(discio "${SRCS}" "")

View File

@ -32,4 +32,4 @@ elseif(ANDROID)
Src/ControllerInterface/Android/Android.cpp)
endif()
add_library(inputcommon ${SRCS})
add_dolphin_library(inputcommon "${SRCS}" "")

View File

@ -45,5 +45,4 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
set(LIBS ${LIBS} usbhid)
endif()
add_library(videoogl STATIC ${SRCS})
target_link_libraries(videoogl ${LIBS})
add_dolphin_library(videoogl "${SRCS}" "${LIBS}")

View File

@ -49,5 +49,4 @@ if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
set(LIBS ${LIBS} clrun)
endif()
add_library(videosoftware STATIC ${SRCS})
target_link_libraries(videosoftware ${LIBS})
add_dolphin_library(videosoftware "${SRCS}" "${LIBS}")

View File

@ -61,8 +61,7 @@ if(LIBAV_FOUND OR WIN32)
set(SRCS ${SRCS} Src/AVIDump.cpp)
endif()
add_library(videocommon STATIC ${SRCS})
target_link_libraries(videocommon ${LIBS})
add_dolphin_library(videocommon "${SRCS}" "${LIBS}")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(LIBAV_FOUND)