[DRIVERS]

* Introduce PCH to the remaining drivers when possible, using their main headers.

svn path=/trunk/; revision=52980
This commit is contained in:
Amine Khaldi 2011-07-28 16:13:00 +00:00
parent b3b76f610b
commit 2419e4895b
28 changed files with 23 additions and 39 deletions

View file

@ -18,7 +18,7 @@ add_library(vgaddi SHARED
set_entrypoint(vgaddi DrvEnableDriver@12)
set_subsystem(vgaddi native)
set_image_base(vgaddi 0x00010000)
add_pch(vgaddi vgaddi.h)
add_importlibs(vgaddi win32k)
target_link_libraries(vgaddi libcntpr)
add_dependencies(vgaddi psdk bugcodes)

View file

@ -1,5 +1,3 @@
#pragma once
#define _WINBASE_
#define _WINDOWS_H
#include <stdarg.h>

View file

@ -21,4 +21,5 @@
<file>vgavideo.c</file>
</directory>
<file>vgaddi.rc</file>
<pch>vgaddi.h</pch>
</module>

View file

@ -4,11 +4,10 @@ add_library(bmfd SHARED
font.c
glyph.c)
add_pch(bmfd bmfd.h)
set_entrypoint(bmfd BmfdEnableDriver@12)
set_subsystem(bmfd native)
set_image_base(bmfd 0x00010000)
target_link_libraries(bmfd libcntpr)
add_importlibs(bmfd win32k)
add_dependencies(bmfd psdk bugcodes)

View file

@ -6,4 +6,5 @@
<file>enable.c</file>
<file>font.c</file>
<file>glyph.c</file>
<pch>bmfd.h</pch>
</module>

View file

@ -19,6 +19,7 @@ target_link_libraries(ftfd
freetype
libcntpr)
add_pch(ftfd ftfd.h)
add_importlibs(ftfd win32k)
add_dependencies(ftfd psdk)
add_cd_file(TARGET ftfd DESTINATION reactos/system32 FOR all)

View file

@ -50,7 +50,7 @@ typedef struct
/** Function prototypes *******************************************************/
ULONG
DbgPrint(IN PCHAR Format, IN ...);
DbgPrint(IN PCCH Format, IN ...);
DHPDEV
APIENTRY

View file

@ -10,4 +10,5 @@
<file>glyph.c</file>
<file>rosglue.c</file>
<file>sprintf.c</file>
<pch>ftfd.h</pch>
</module>

View file

@ -8,11 +8,7 @@
* NOTES:
*/
#include <stdarg.h>
#include <stdio.h>
#include <windef.h>
#include <wingdi.h>
#include <winddi.h>
#include "ftfd.h"
#define NDEBUG
#include <debug.h>

View file

@ -17,11 +17,7 @@
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*/
#define WIN32_NO_STATUS
#include <windows.h>
#include <ndk/ntndk.h>
#include <stdlib.h>
#include <stdio.h>
#define ZEROPAD 1 /* pad with zero */
#define SIGN 2 /* unsigned/signed long */

View file

@ -6,7 +6,6 @@ add_library(vbemp SHARED
set_module_type(vbemp kernelmodedriver)
add_importlibs(vbemp videoprt)
add_pch(vbemp vbemp.h)
target_link_libraries(vbemp libcntpr)
add_cd_file(TARGET vbemp DESTINATION reactos/system32/drivers FOR all)

View file

@ -18,8 +18,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
/* INCLUDES *******************************************************************/
#include "ntdef.h"

View file

@ -6,4 +6,5 @@
<file>edid.c</file>
<file>vbemp.c</file>
<file>vbemp.rc</file>
<pch>vbemp.h</pch>
</module>

View file

@ -20,8 +20,6 @@
*/
#include "videoprt.h"
#include <initguid.h>
#include <wdmguid.h>
/* PRIVATE FUNCTIONS **********************************************************/

View file

@ -21,7 +21,6 @@
#include "videoprt.h"
#include <wdmguid.h>
VP_STATUS
NTAPI

View file

@ -21,7 +21,6 @@
#include "videoprt.h"
#include <wdmguid.h>
/* GLOBAL VARIABLES ***********************************************************/

View file

@ -34,6 +34,9 @@
#include <dderror.h>
#include <windef.h>
#include <initguid.h>
#include <wdmguid.h>
#include <debug.h>
#define TAG_VIDEO_PORT 'PDIV'

View file

@ -63,11 +63,10 @@ else()
set_target_properties(portcls PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
endif(MSVC)
add_pch(portcls private.hpp)
set_entrypoint(portcls 0)
set_image_base(portcls 0x00010000)
set_subsystem(portcls native)
set_target_properties(portcls PROPERTIES SUFFIX ".sys")
add_importlibs(portcls ntoskrnl ks drmk hal)
add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all)

View file

@ -62,4 +62,5 @@
<file>unregister.cpp</file>
<file>version.cpp</file>
<file>portcls.rc</file>
<pch>private.hpp</pch>
</module>

View file

@ -12,6 +12,6 @@ target_link_libraries(kmixer
libcntpr
libsamplerate)
add_pch(kmixer kmixer.h)
add_importlibs(kmixer ntoskrnl ks hal)
add_cd_file(TARGET kmixer DESTINATION reactos/system32/drivers FOR all)
add_cd_file(TARGET kmixer DESTINATION reactos/system32/drivers FOR all)

View file

@ -1,5 +1,3 @@
#pragma once
#include <ntddk.h>
#include <portcls.h>
#include <ks.h>

View file

@ -11,4 +11,5 @@
<file>kmixer.c</file>
<file>filter.c</file>
<file>pin.c</file>
<pch>kmixer.h</pch>
</module>

View file

@ -20,7 +20,6 @@ target_link_libraries(wdmaud
libcntpr
${PSEH_LIB})
add_pch(wdmaud wdmaud.h)
add_importlibs(wdmaud ntoskrnl ks hal)
add_cd_file(TARGET wdmaud DESTINATION reactos/system32/drivers FOR all)

View file

@ -1,5 +1,3 @@
#pragma once
#include <pseh/pseh2.h>
#include <ntddk.h>
#include <portcls.h>

View file

@ -17,4 +17,5 @@
<file>mmixer.c</file>
<file>sup.c</file>
<file>wdmaud.rc</file>
<pch>wdmaud.h</pch>
</module>

View file

@ -9,10 +9,8 @@ add_library(sysaudio SHARED
pin.c
sysaudio.rc)
add_pch(sysaudio sysaudio.h)
set_module_type(sysaudio kernelmodedriver)
target_link_libraries(sysaudio libcntpr)
add_importlibs(sysaudio ntoskrnl ks hal)
add_cd_file(TARGET sysaudio DESTINATION reactos/system32/drivers FOR all)
add_cd_file(TARGET sysaudio DESTINATION reactos/system32/drivers FOR all)

View file

@ -1,5 +1,3 @@
#pragma once
#include <ntifs.h>
#include <ntddk.h>
#include <portcls.h>

View file

@ -13,4 +13,5 @@
<file>main.c</file>
<file>pin.c</file>
<file>sysaudio.rc</file>
<pch>sysaudio.h</pch>
</module>