[MSV1_0] use precompiled headers (#2475)

This commit is contained in:
Andreas Maier 2020-03-28 17:13:57 +01:00 committed by GitHub
parent 99f9c1666d
commit 2d36be4963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 34 deletions

View file

@ -3,14 +3,15 @@ spec2def(msv1_0.dll msv1_0.spec)
list(APPEND SOURCE
msv1_0.c
msv1_0.rc
precomp.h
${CMAKE_CURRENT_BINARY_DIR}/msv1_0_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/msv1_0.def)
add_library(msv1_0 MODULE ${SOURCE})
add_library(msv1_0 MODULE ${SOURCE} msv1_0.rc)
set_module_type(msv1_0 win32dll UNICODE ENTRYPOINT 0)
target_link_libraries(msv1_0 wine ${PSEH_LIB})
add_delay_importlibs(msv1_0 samsrv lsasrv)
add_importlibs(msv1_0 advapi32 kernel32 ntdll)
add_dependencies(msv1_0 psdk)
add_pch(msv1_0 precomp.h SOURCE)
add_cd_file(TARGET msv1_0 DESTINATION reactos/system32 FOR all)

View file

@ -8,7 +8,7 @@
/* INCLUDES ****************************************************************/
#include "msv1_0.h"
#include "precomp.h"
WINE_DEFAULT_DEBUG_CHANNEL(msv1_0);

View file

@ -6,37 +6,6 @@
* COPYRIGHT: Copyright 2013 Eric Kohl
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#define NTOS_MODE_USER
#include <ndk/cmfuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/lpctypes.h>
#include <ndk/lpcfuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include <ndk/setypes.h>
#include <ndk/sefuncs.h>
#include <sspi.h>
#include <ntsecapi.h>
#include <ntsecpkg.h>
#include <ntsam.h>
#include <ntlsa.h>
#include <samsrv/samsrv.h>
//#include <lsass/lsasrv.h>
#include <wine/debug.h>
#define FIXUP_POINTER(Pointer, Offset) ((Pointer != NULL) ? ((PWSTR)((ULONG_PTR)Pointer + Offset)) : NULL)

View file

@ -0,0 +1,36 @@
#ifndef _MSV1_0_PRECOMP_H_
#define _MSV1_0_PRECOMP_H_
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#define NTOS_MODE_USER
#include <ndk/cmfuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/lpctypes.h>
#include <ndk/lpcfuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include <ndk/setypes.h>
#include <ndk/sefuncs.h>
#include <sspi.h>
#include <ntsecapi.h>
#include <ntsecpkg.h>
#include <ntsam.h>
#include <ntlsa.h>
#include <samsrv/samsrv.h>
//#include <lsass/lsasrv.h>
#include "msv1_0.h"
#include <wine/debug.h>
#endif