[WIN32DLLS]

* PCHify some modules when possible.

svn path=/trunk/; revision=53185
This commit is contained in:
Amine Khaldi 2011-08-11 15:16:48 +00:00
parent 76d63856af
commit 79b21071d2
54 changed files with 61 additions and 132 deletions

View file

@ -13,5 +13,6 @@ add_library(acledit SHARED ${SOURCE})
set_module_type(acledit win32dll)
add_importlibs(acledit msvcrt kernel32 ntdll)
add_pch(acledit acleditint.h)
add_cd_file(TARGET acledit DESTINATION reactos/system32 FOR all)
add_importlib_target(acledit.spec)

View file

@ -28,9 +28,8 @@
* UPDATE HISTORY:
* 07/09/2004 Created
*/
#include <windows.h>
#include "acleditint.h"
#include "resource.h"
HINSTANCE hDllInstance;

View file

@ -10,4 +10,5 @@
<file>acledit.c</file>
<file>stubs.c</file>
<file>acledit.rc</file>
<pch>acleditint.h</pch>
</module>

View file

@ -1,4 +1,5 @@
#pragma once
#include <windows.h>
#include "resource.h"
extern HINSTANCE hDllInstance;

View file

@ -12,7 +12,7 @@
* UPDATE HISTORY:
* 07/09/2004 Created
*/
#include <windows.h>
#include "acleditint.h"
ULONG DbgPrint(PCH Format,...);

View file

@ -16,11 +16,9 @@ list(APPEND SOURCE
add_library(cabinet SHARED ${SOURCE})
set_entrypoint(cabinet 0)
target_link_libraries(cabinet wine)
add_importlibs(cabinet kernel32 ntdll)
add_importlib_target(cabinet.spec)
add_pch(cabinet cabinet.h)
add_dependencies(cabinet psdk)
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)

View file

@ -11,6 +11,7 @@
<file>fdi.c</file>
<file>stubs.c</file>
<file>cabinet.rc</file>
<pch>cabinet.h</pch>
<library>wine</library>
<library>ntdll</library>
</module>

View file

@ -71,5 +71,6 @@ add_importlibs(comctl32
kernel32
ntdll)
add_pch(comctl32 comctl32.h)
add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
add_importlib_target(comctl32.spec)

View file

@ -48,6 +48,7 @@
<file>updown.c</file>
<file>stubs.c</file>
<file>rsrc.rc</file>
<pch>comctl32.h</pch>
<library>uuid</library>
<library>wine</library>
<library>user32</library>

View file

@ -52,7 +52,7 @@ target_link_libraries(dbghelp
${PSEH_LIB}
oldnames)
add_pch(dbghelp dbghelp_private.h)
add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
add_pch(dbghelp dbghelp_private.h)
add_importlib_target(dbghelp.spec)
add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)

View file

@ -15,12 +15,9 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/fmifs.def)
add_library(fmifs SHARED ${SOURCE})
add_pch(fmifs precomp.h)
set_entrypoint(fmifs InitializeFmIfs@12)
add_importlibs(fmifs kernel32 ntdll)
add_pch(fmifs precomp.h)
add_dependencies(fmifs psdk)
add_cd_file(TARGET fmifs DESTINATION reactos/system32 FOR all)
add_importlib_target(fmifs.spec)

View file

@ -27,5 +27,6 @@ add_importlibs(hlink
kernel32
ntdll)
add_pch(hlink hlink_private.h)
add_importlib_target(hlink.spec)
add_cd_file(TARGET hlink DESTINATION reactos/system32 FOR all)

View file

@ -11,6 +11,7 @@
<file>extserv.c</file>
<file>hlink_main.c</file>
<file>link.c</file>
<pch>hlink_private.h</pch>
<library>wine</library>
<library>shell32</library>
<library>ole32</library>

View file

@ -24,8 +24,8 @@ list(APPEND SOURCE
add_library(iphlpapi SHARED ${SOURCE})
set_module_type(iphlpapi win32dll)
target_link_libraries(iphlpapi wine tdilib)
add_importlibs(iphlpapi dhcpcsvc advapi32 ws2_32 msvcrt kernel32 ntdll)
add_pch(iphlpapi iphlpapi_private.h)
add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)
add_importlib_target(iphlpapi.spec)

View file

@ -7,10 +7,6 @@
*/
#include "iphlpapi_private.h"
#include "dhcp.h"
#include "dhcpcsdk.h"
#include "dhcpcapi.h"
#include <assert.h>
DWORD APIENTRY DhcpRosGetAdapterInfo(DWORD AdapterIndex,
PBOOL DhcpEnabled,

View file

@ -37,8 +37,6 @@
* functions into iphlpv6.c (arty)
*/
#include "iphlpapi_private.h"
#include "ifenum.h"
#include <assert.h>
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);

View file

@ -19,4 +19,5 @@
<file>resinfo_reactos.c</file>
<file>route_reactos.c</file>
<file>iphlpapi.rc</file>
<pch>iphlpapi_private.h</pch>
</module>

View file

@ -18,39 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define DEBUG
#include "config.h"
#include "iphlpapi_private.h"
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
# include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
#define DEBUG
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "iphlpapi.h"
#include "dhcp.h"
#include "ifenum.h"
#include "ipstats.h"
#include "resinfo.h"
#include "route.h"
#include "wine/debug.h"
#include "dhcpcsdk.h"
#include "dhcpcapi.h"
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
typedef struct _NAME_SERVER_LIST_CONTEXT {

View file

@ -31,12 +31,22 @@
#include "resinfo.h"
#include "wine/debug.h"
#include "dhcp.h"
#include "dhcpcsdk.h"
#include "dhcpcapi.h"
#include <assert.h>
//#include "ntddndis.h"
#include "tdiinfo.h"
#include "tcpioctl.h"
#include "tdilib.h"
#include "ifenum.h"
#include "ipstats.h"
#include "route.h"
#ifndef ETH_ALEN
#define ETH_ALEN 6
#endif

View file

@ -19,11 +19,7 @@
* tcpip.sys
*/
#include <stdio.h>
#include "iphlpapi_private.h"
#include "ipstats.h"
#include "ifenum.h"
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);

View file

@ -24,29 +24,6 @@
#include "config.h"
#include "iphlpapi_private.h"
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
# include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "resinfo.h"
#include "iphlpapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
typedef struct _NAME_SERVER_LIST_PRIVATE {

View file

@ -24,29 +24,6 @@
#include "config.h"
#include "iphlpapi_private.h"
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
# include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "resinfo.h"
#include "iphlpapi.h"
#include "wine/debug.h"
#define IP_FORWARD_ADD 3
#define IP_FORWARD_DEL 2

View file

@ -18,4 +18,5 @@ set_module_type(lpk win32dll)
add_importlib_target(lpk.spec)
add_importlibs(lpk user32 usp10 msvcrt kernel32 ntdll)
add_pch(lpk ros_lpk.h)
add_cd_file(TARGET lpk DESTINATION reactos/system32 FOR all)

View file

@ -8,6 +8,6 @@
<file>dllmain.c</file>
<file>stub.c</file>
<file>lpk.rc</file>
<pch>ros_lpk.h</pch>
</module>

View file

@ -1,12 +1,12 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${REACTOS_SOURCE_DIR}/include/reactos/idl
${REACTOS_SOURCE_DIR}/include/reactos/subsys/lsass)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/lsa.idl)
set_unicode()
set_rc_compiler()
spec2def(lsasrv.dll lsasrv.spec)
@ -25,12 +25,9 @@ list(APPEND SOURCE
add_library(lsasrv SHARED ${SOURCE})
set_entrypoint(lsasrv 0)
target_link_libraries(lsasrv
wine
${PSEH_LIB})
target_link_libraries(lsasrv wine ${PSEH_LIB})
add_importlibs(lsasrv rpcrt4 msvcrt kernel32 ntdll)
add_pch(lsasrv lsasrv.h)
add_dependencies(lsasrv psdk)
add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)
add_importlib_target(lsasrv.spec)

View file

@ -14,4 +14,5 @@
<file>privileges.c</file>
<file>sids.c</file>
<file>lsasrv.rc</file>
<pch>lsasrv.h</pch>
</module>

View file

@ -13,8 +13,8 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def)
add_library(mciavi32 SHARED ${SOURCE})
set_module_type(mciavi32 win32dll)
target_link_libraries(mciavi32 wine)
add_importlibs(mciavi32 msvfw32 winmm user32 gdi32 msvcrt kernel32 ntdll)
add_pch(mciavi32 private_mciavi.h)
add_cd_file(TARGET mciavi32 DESTINATION reactos/system32 FOR all)

View file

@ -8,6 +8,7 @@
<file>mmoutput.c</file>
<file>wnd.c</file>
<file>mciavi_res.rc</file>
<pch>private_mciavi.h</pch>
<library>wine</library>
<library>msvfw32</library>
<library>winmm</library>

View file

@ -18,8 +18,8 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mscms.def)
add_library(mscms SHARED ${SOURCE})
set_module_type(mscms win32dll)
target_link_libraries(mscms wine)
add_importlibs(mscms msvcrt advapi32 kernel32 ntdll)
add_pch(mscms mscms_priv.h)
add_cd_file(TARGET mscms DESTINATION reactos/system32 FOR all)

View file

@ -10,6 +10,7 @@
<file>stub.c</file>
<file>transform.c</file>
<file>version.rc</file>
<pch>mscms_priv.h</pch>
<library>wine</library>
<library>advapi32</library>
<library>ntdll</library>

View file

@ -17,8 +17,8 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/msgina.def)
add_library(msgina SHARED ${SOURCE})
set_module_type(msgina win32dll)
target_link_libraries(msgina wine)
add_importlibs(msgina advapi32 user32 gdi32 userenv msvcrt kernel32 ntdll)
add_pch(msgina msgina.h)
add_cd_file(TARGET msgina DESTINATION reactos/system32 FOR all)

View file

@ -7,8 +7,6 @@
#include "msgina.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(msgina);
typedef struct _DISPLAYSTATUSMSG

View file

@ -26,8 +26,6 @@
#include "msgina.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(msgina);
HINSTANCE hDllInstance;

View file

@ -1,8 +1,9 @@
#pragma once
#include <windows.h>
#include <userenv.h>
#include <winwlx.h>
#include <wine/debug.h>
#include "resource.h"
/* Values for GINA_CONTEXT.AutoLogonState */

View file

@ -14,4 +14,5 @@
<file>stubs.c</file>
<file>tui.c</file>
<file>msgina.rc</file>
<pch>msgina.h</pch>
</module>

View file

@ -9,10 +9,8 @@
* UPDATE HISTORY:
* 24-11-2003 Created
*/
#include <windows.h>
#include <winwlx.h>
#include <wine/debug.h>
#include "msgina.h"
WINE_DEFAULT_DEBUG_CHANNEL(msgina);

View file

@ -7,8 +7,6 @@
#include "msgina.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(msgina);
static BOOL

View file

@ -68,7 +68,6 @@ if(MSVC)
endif()
add_library(msi SHARED ${SOURCE})
add_pch(msi msipriv.h)
add_idl_Headers(msi_idlheader msiserver.idl)
add_typelib(msi_tlb msiserver.idl)
@ -94,6 +93,7 @@ add_importlibs(msi
kernel32
ntdll)
add_pch(msi msipriv.h)
add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)
endif(NOT MSVC)

View file

@ -27,11 +27,8 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mstask.def)
add_library(mstask SHARED ${SOURCE})
set_module_type(mstask win32dll)
target_link_libraries(mstask uuid wine)
add_importlibs(mstask ole32 msvcrt kernel32 ntdll)
add_pch(mstask mstask_private.h)
add_cd_file(TARGET mstask DESTINATION reactos/system32 FOR all)

View file

@ -15,6 +15,7 @@
<file>task_scheduler.c</file>
<file>task_trigger.c</file>
<file>rsrc.rc</file>
<pch>mstask_private.h</pch>
<library>mstask_local_interface</library>
<library>wine</library>
<library>uuid</library>

View file

@ -12,12 +12,9 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
add_library(newdev SHARED ${SOURCE})
set_module_type(newdev win32dll)
target_link_libraries(newdev wine)
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 msvcrt kernel32 ntdll)
add_pch(newdev newdev_private.h)
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)
add_importlib_target(newdev.spec)

View file

@ -5,6 +5,7 @@
<file>stubs.c</file>
<file>wizard.c</file>
<file>newdev.rc</file>
<pch>newdev_private.h</pch>
<library>wine</library>
<library>gdi32</library>
<library>comctl32</library>

View file

@ -29,4 +29,5 @@ add_importlibs(objsel
kernel32
ntdll)
add_pch(objsel objsel_private.h)
add_cd_file(TARGET objsel DESTINATION reactos/system32 FOR all)

View file

@ -18,5 +18,6 @@
<file>objsel.c</file>
<file>regsvr.c</file>
<file>objsel.rc</file>
<pch>objsel_private.h</pch>
</module>
</group>

View file

@ -28,5 +28,6 @@ add_idl_headers(qmgr_idlheader qmgr_local.idl)
set_module_type(qmgr win32dll)
target_link_libraries(qmgr uuid wine)
add_importlibs(qmgr ole32 wininet urlmon advapi32 msvcrt kernel32 ntdll)
add_pch(qmgr qmgr.h)
add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all)
add_dependencies(qmgr qmgr_idlheader)

View file

@ -24,6 +24,7 @@
<file>qmgr_main.c</file>
<file>service.c</file>
<file>rsrc.rc</file>
<pch>qmgr.h</pch>
</module>
<module name="qmgr_local_header" type="idlheader">
<file>qmgr_local.idl</file>

View file

@ -11,9 +11,7 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/rasadhlp.def)
add_library(rasadhlp SHARED ${SOURCE})
set_module_type(rasadhlp win32dll)
add_importlibs(rasadhlp ws2_32 msvcrt kernel32 ntdll)
add_pch(rasadhlp precomp.h)
add_cd_file(TARGET rasadhlp DESTINATION reactos/system32 FOR all)

View file

@ -9,4 +9,5 @@
<file>autodial.c</file>
<file>init.c</file>
<file>winsock.c</file>
<pch>precomp.h</pch>
</module>

View file

@ -48,5 +48,6 @@ add_importlibs(riched20
kernel32
ntdll)
add_pch(riched20 editor.h)
add_importlib_target(riched20.spec)
add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)

View file

@ -28,6 +28,7 @@
<file>wrap.c</file>
<file>writer.c</file>
<file>version.rc</file>
<pch>editor.h</pch>
<library>wine</library>
<library>uuid</library>
<library>ole32</library>

View file

@ -24,5 +24,6 @@ add_library(rsaenh SHARED ${SOURCE})
set_module_type(rsaenh win32dll)
target_link_libraries(rsaenh wine)
add_importlibs(rsaenh msvcrt crypt32 advapi32 kernel32 ntdll)
add_pch(rsaenh tomcrypt.h)
add_importlib_target(rsaenh.spec)
add_cd_file(TARGET rsaenh DESTINATION reactos/system32 FOR all)

View file

@ -19,6 +19,7 @@
<file>rsaenh.c</file>
<file>sha2.c</file>
<file>version.rc</file>
<pch>tomcrypt.h</pch>
<library>wine</library>
<library>crypt32</library>
<library>advapi32</library>

View file

@ -54,5 +54,6 @@ add_importlibs(shdocvw
ntdll)
add_dependencies(shdocvw shdocvw_v1)
add_pch(shdocvw shdocvw.h)
add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
add_importlib_target(shdocvw.spec)

View file

@ -41,6 +41,7 @@
<file>view.c</file>
<file>webbrowser.c</file>
<file>shdocvw.rc</file>
<pch>shdocvw.h</pch>
</module>
<module name="shdocvw_v1" type="embeddedtypelib" allowwarnings="true">
<dependency>stdole2</dependency>