mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +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:
parent
f17beda433
commit
4e1f904ae5
3 changed files with 23 additions and 2 deletions
|
@ -12,13 +12,15 @@ list(APPEND SOURCE
|
||||||
adapter.cpp
|
adapter.cpp
|
||||||
common.cpp
|
common.cpp
|
||||||
mintopo.cpp
|
mintopo.cpp
|
||||||
minwave.cpp)
|
minwave.cpp
|
||||||
|
precomp.h)
|
||||||
|
|
||||||
add_library(cmipci SHARED
|
add_library(cmipci SHARED
|
||||||
${SOURCE}
|
${SOURCE}
|
||||||
|
guid.cpp
|
||||||
cmipci.rc)
|
cmipci.rc)
|
||||||
|
|
||||||
target_link_libraries(cmipci stdunk libcntpr)
|
target_link_libraries(cmipci stdunk libcntpr uuid)
|
||||||
|
|
||||||
set_module_type(cmipci wdmdriver UNICODE)
|
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")
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-switch -Wno-error")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_pch(cmipci precomp.h SOURCE)
|
||||||
add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all)
|
add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all)
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32.inf" DESTINATION reactos/inf FOR all)
|
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32.inf" DESTINATION reactos/inf FOR all)
|
||||||
|
|
9
reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp
Normal file
9
reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp
Normal 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 */
|
9
reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h
Normal file
9
reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#ifndef _CMIDRIVER_PCH_
|
||||||
|
#define _CMIDRIVER_PCH_
|
||||||
|
|
||||||
|
#include <wdm.h>
|
||||||
|
#include <portcls.h>
|
||||||
|
|
||||||
|
#include "debug.hpp"
|
||||||
|
|
||||||
|
#endif /* _CMIDRIVER_PCH_ */
|
Loading…
Reference in a new issue