* Introduce a PCH suitable for use without altering the 3rd party code.
* Prepare the CMake scripts for PCH.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=62124
This commit is contained in:
Amine Khaldi 2014-02-11 22:35:09 +00:00
parent f17beda433
commit 4e1f904ae5
3 changed files with 23 additions and 2 deletions

View file

@ -12,13 +12,15 @@ list(APPEND SOURCE
adapter.cpp
common.cpp
mintopo.cpp
minwave.cpp)
minwave.cpp
precomp.h)
add_library(cmipci SHARED
${SOURCE}
guid.cpp
cmipci.rc)
target_link_libraries(cmipci stdunk libcntpr)
target_link_libraries(cmipci stdunk libcntpr uuid)
set_module_type(cmipci wdmdriver UNICODE)
@ -31,6 +33,7 @@ if(NOT MSVC)
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-switch -Wno-error")
endif()
add_pch(cmipci precomp.h SOURCE)
add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all)
if(ARCH STREQUAL "i386")
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32.inf" DESTINATION reactos/inf FOR all)

View file

@ -0,0 +1,9 @@
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
#include <wdm.h>
#include <ks.h>
#include <punknown.h>
#include <initguid.h>
#include "interfaces.hpp"
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -0,0 +1,9 @@
#ifndef _CMIDRIVER_PCH_
#define _CMIDRIVER_PCH_
#include <wdm.h>
#include <portcls.h>
#include "debug.hpp"
#endif /* _CMIDRIVER_PCH_ */