From fa0f9a6367c64d0331bdd5c24a2c27fc29dd903b Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 25 Jul 2011 23:50:18 +0000 Subject: [PATCH] [SPIDER] * Designate spider.h as a precompiled header and use it as one. svn path=/trunk/; revision=52884 --- reactos/base/applications/games/spider/CMakeLists.txt | 4 +--- reactos/base/applications/games/spider/spider.cpp | 7 ------- reactos/base/applications/games/spider/spider.h | 10 +++++++++- reactos/base/applications/games/spider/spider.rbuild | 1 + reactos/base/applications/games/spider/spigame.cpp | 7 ------- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/reactos/base/applications/games/spider/CMakeLists.txt b/reactos/base/applications/games/spider/CMakeLists.txt index cf44a846995..9e2f84c5c47 100644 --- a/reactos/base/applications/games/spider/CMakeLists.txt +++ b/reactos/base/applications/games/spider/CMakeLists.txt @@ -12,9 +12,7 @@ add_executable(spider rsrc.rc) target_link_libraries(spider cardlib) - +add_pch(spider spider.h) set_module_type(spider win32gui) - add_importlibs(spider advapi32 comctl32 user32 gdi32 msvcrt kernel32) - add_cd_file(TARGET spider DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/games/spider/spider.cpp b/reactos/base/applications/games/spider/spider.cpp index 49676433234..0df7f9982b0 100644 --- a/reactos/base/applications/games/spider/spider.cpp +++ b/reactos/base/applications/games/spider/spider.cpp @@ -6,13 +6,6 @@ * PROGRAMMER: Gregor Schneider */ -#include -#include -#include -#include - -#include "resource.h" -#include "cardlib.h" #include "spider.h" TCHAR szHelpPath[MAX_PATH]; diff --git a/reactos/base/applications/games/spider/spider.h b/reactos/base/applications/games/spider/spider.h index 17b919b91aa..f71d6e384dc 100644 --- a/reactos/base/applications/games/spider/spider.h +++ b/reactos/base/applications/games/spider/spider.h @@ -1,4 +1,12 @@ -#pragma once + +#include +#include +#include +#include +#include +#include "resource.h" +#include "cardlib.h" + #define DIFFICULTY_ONE_COLOR 1 #define DIFFICULTY_TWO_COLORS 2 diff --git a/reactos/base/applications/games/spider/spider.rbuild b/reactos/base/applications/games/spider/spider.rbuild index f675836fc37..52b86c72e34 100644 --- a/reactos/base/applications/games/spider/spider.rbuild +++ b/reactos/base/applications/games/spider/spider.rbuild @@ -7,4 +7,5 @@ spigame.cpp spider.cpp rsrc.rc + spider.h diff --git a/reactos/base/applications/games/spider/spigame.cpp b/reactos/base/applications/games/spider/spigame.cpp index 7521bdd5bdb..5e75ebb9a1f 100644 --- a/reactos/base/applications/games/spider/spigame.cpp +++ b/reactos/base/applications/games/spider/spigame.cpp @@ -6,13 +6,6 @@ * PROGRAMMER: Gregor Schneider */ -#include -#include -#include -#include - -#include "resource.h" -#include "cardlib.h" #include "spider.h" #define NUM_DECK_CARDS 5