From e0f79f32a555a365349eb3ec0257f34e1db94226 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sun, 27 Aug 2017 13:32:13 -0700 Subject: [PATCH] remove version.h in ConfigManager and AutoBuild.h ConfigManager does not use any version info, but is part of libvbamcore, so removing the `#include` makes rebuilds after git changes much much faster. Remove the AutoBuild.h includes from ConfigManager.cpp and SDL.cpp (the SDL port) because the information in that file does not seem to be used and it also includes version.h, forcing those files to rebuild unnecessarily. --- CMakeLists.txt | 1 - src/common/ConfigManager.cpp | 3 --- src/sdl/SDL.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa46e63b..30c64be5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -445,7 +445,6 @@ if(MSVC) endif(MSVC) SET(HDR_MAIN - src/AutoBuild.h src/System.h src/Util.h src/common/array.h diff --git a/src/common/ConfigManager.cpp b/src/common/ConfigManager.cpp index a2ed8126..e2db1c9b 100644 --- a/src/common/ConfigManager.cpp +++ b/src/common/ConfigManager.cpp @@ -16,9 +16,6 @@ extern "C" { #include #include -#include "../AutoBuild.h" -#include "version.h" - #include "../common/Patch.h" #include "../common/ConfigManager.h" #include "../gba/GBA.h" diff --git a/src/sdl/SDL.cpp b/src/sdl/SDL.cpp index 7b530f91..5add3508 100644 --- a/src/sdl/SDL.cpp +++ b/src/sdl/SDL.cpp @@ -41,7 +41,6 @@ #include -#include "../AutoBuild.h" #include "version.h" #include "SDL.h"