mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Basic precompiled header support for Linux/OS X. Shaves 20-30% off full rebuild time on my system.
This commit is contained in:
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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}" "")
|
||||
|
@ -32,4 +32,4 @@ elseif(ANDROID)
|
||||
Src/ControllerInterface/Android/Android.cpp)
|
||||
endif()
|
||||
|
||||
add_library(inputcommon ${SRCS})
|
||||
add_dolphin_library(inputcommon "${SRCS}" "")
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user