Author: akhaldi
Date: Sun Aug 14 16:59:43 2011
New Revision: 53233
URL:
http://svn.reactos.org/svn/reactos?rev=53233&view=rev
Log:
[SAMLIB]
* Include NDK headers on-demand.
* Introduce a PCH.
Added:
trunk/reactos/dll/win32/samlib/precomp.h (with props)
Modified:
trunk/reactos/dll/win32/samlib/CMakeLists.txt
trunk/reactos/dll/win32/samlib/dllmain.c
trunk/reactos/dll/win32/samlib/samlib.c
trunk/reactos/dll/win32/samlib/samlib.rbuild
Modified: trunk/reactos/dll/win32/samlib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/CMakeList…
==============================================================================
--- trunk/reactos/dll/win32/samlib/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/CMakeLists.txt [iso-8859-1] Sun Aug 14 16:59:43 2011
@@ -13,10 +13,8 @@
${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
add_library(samlib SHARED ${SOURCE})
-
set_module_type(samlib win32dll)
-
add_importlibs(samlib advapi32 msvcrt kernel32 ntdll)
-
+add_pch(samlib precomp.h)
add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)
add_importlib_target(samlib.spec)
Modified: trunk/reactos/dll/win32/samlib/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/dllmain.c…
==============================================================================
--- trunk/reactos/dll/win32/samlib/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/dllmain.c [iso-8859-1] Sun Aug 14 16:59:43 2011
@@ -27,13 +27,7 @@
/* INCLUDES *****************************************************************/
-#include <stdio.h>
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-
-#include "debug.h"
+#include "precomp.h"
//#define LOG_DEBUG_MESSAGES
Added: trunk/reactos/dll/win32/samlib/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/precomp.h…
==============================================================================
--- trunk/reactos/dll/win32/samlib/precomp.h (added)
+++ trunk/reactos/dll/win32/samlib/precomp.h [iso-8859-1] Sun Aug 14 16:59:43 2011
@@ -1,0 +1,10 @@
+#include <stdio.h>
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#include <windows.h>
+#include <winerror.h>
+#define NTOS_MODE_USER
+#include <ndk/rtlfuncs.h>
+
+#include "debug.h"
Propchange: trunk/reactos/dll/win32/samlib/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/samlib/samlib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/samlib.c?…
==============================================================================
--- trunk/reactos/dll/win32/samlib/samlib.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/samlib.c [iso-8859-1] Sun Aug 14 16:59:43 2011
@@ -26,14 +26,9 @@
*/
/* INCLUDES *****************************************************************/
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <winerror.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
#define NDEBUG
-#include "debug.h"
+#include "precomp.h"
/* GLOBALS *******************************************************************/
Modified: trunk/reactos/dll/win32/samlib/samlib.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samlib/samlib.rb…
==============================================================================
--- trunk/reactos/dll/win32/samlib/samlib.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samlib/samlib.rbuild [iso-8859-1] Sun Aug 14 16:59:43 2011
@@ -6,4 +6,5 @@
<file>dllmain.c</file>
<file>samlib.c</file>
<file>samlib.rc</file>
+ <pch>precomp.h</pch>
</module>