mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[CMIPCI]
* 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:
@@ -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)
|
||||
|
||||
@@ -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 */
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef _CMIDRIVER_PCH_
|
||||
#define _CMIDRIVER_PCH_
|
||||
|
||||
#include <wdm.h>
|
||||
#include <portcls.h>
|
||||
|
||||
#include "debug.hpp"
|
||||
|
||||
#endif /* _CMIDRIVER_PCH_ */
|
||||
Reference in New Issue
Block a user