summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-10-17 00:06:34 -0400
committercomex <comexk@gmail.com>2013-10-17 00:07:35 -0400
commitde1773affb7552d1b62b7adcd3a2a04d718feafe (patch)
treec5039730175ca9a32c64e590782878fe70adeebc /Source/Core
parentcffe6ba3fdb040808654604a1b07c2edaa0d853d (diff)
Basic precompiled header support for Linux/OS X. Shaves 20-30% off full rebuild time on my system.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/AudioCommon/CMakeLists.txt3
-rw-r--r--Source/Core/Common/CMakeLists.txt3
-rw-r--r--Source/Core/Core/CMakeLists.txt3
-rw-r--r--Source/Core/DiscIO/CMakeLists.txt3
-rw-r--r--Source/Core/InputCommon/CMakeLists.txt2
-rw-r--r--Source/Core/VideoBackends/OGL/CMakeLists.txt3
-rw-r--r--Source/Core/VideoBackends/Software/CMakeLists.txt3
-rw-r--r--Source/Core/VideoCommon/CMakeLists.txt3
8 files changed, 8 insertions, 15 deletions
diff --git a/Source/Core/AudioCommon/CMakeLists.txt b/Source/Core/AudioCommon/CMakeLists.txt
index 939956460d..314be71322 100644
--- a/Source/Core/AudioCommon/CMakeLists.txt
+++ b/Source/Core/AudioCommon/CMakeLists.txt
@@ -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}")
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt
index 0302ee78c8..ce76f003da 100644
--- a/Source/Core/Common/CMakeLists.txt
+++ b/Source/Core/Common/CMakeLists.txt
@@ -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}")
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index 49cd34b372..07a6fc2aca 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -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}")
diff --git a/Source/Core/DiscIO/CMakeLists.txt b/Source/Core/DiscIO/CMakeLists.txt
index 01e15a374f..f64f263e11 100644
--- a/Source/Core/DiscIO/CMakeLists.txt
+++ b/Source/Core/DiscIO/CMakeLists.txt
@@ -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}" "")
diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt
index 76871e5b3b..f99351ffe2 100644
--- a/Source/Core/InputCommon/CMakeLists.txt
+++ b/Source/Core/InputCommon/CMakeLists.txt
@@ -32,4 +32,4 @@ elseif(ANDROID)
Src/ControllerInterface/Android/Android.cpp)
endif()
-add_library(inputcommon ${SRCS})
+add_dolphin_library(inputcommon "${SRCS}" "")
diff --git a/Source/Core/VideoBackends/OGL/CMakeLists.txt b/Source/Core/VideoBackends/OGL/CMakeLists.txt
index 3e1d2aaa60..f8ccb85052 100644
--- a/Source/Core/VideoBackends/OGL/CMakeLists.txt
+++ b/Source/Core/VideoBackends/OGL/CMakeLists.txt
@@ -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}")
diff --git a/Source/Core/VideoBackends/Software/CMakeLists.txt b/Source/Core/VideoBackends/Software/CMakeLists.txt
index fd13be7f2e..2ba8e6c0c7 100644
--- a/Source/Core/VideoBackends/Software/CMakeLists.txt
+++ b/Source/Core/VideoBackends/Software/CMakeLists.txt
@@ -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}")
diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt
index 8503377779..594624592c 100644
--- a/Source/Core/VideoCommon/CMakeLists.txt
+++ b/Source/Core/VideoCommon/CMakeLists.txt
@@ -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)