From 4e1f904ae5862a4025ca16e8d16a4d384a19da75 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 11 Feb 2014 22:35:09 +0000 Subject: [PATCH] [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 --- .../drivers/wdm/audio/drivers/CMIDriver/CMakeLists.txt | 7 +++++-- reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp | 9 +++++++++ reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h | 9 +++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp create mode 100644 reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h diff --git a/reactos/drivers/wdm/audio/drivers/CMIDriver/CMakeLists.txt b/reactos/drivers/wdm/audio/drivers/CMIDriver/CMakeLists.txt index f7519105e03..c0c67fd4e85 100644 --- a/reactos/drivers/wdm/audio/drivers/CMIDriver/CMakeLists.txt +++ b/reactos/drivers/wdm/audio/drivers/CMIDriver/CMakeLists.txt @@ -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) diff --git a/reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp b/reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp new file mode 100644 index 00000000000..4a4ff74d798 --- /dev/null +++ b/reactos/drivers/wdm/audio/drivers/CMIDriver/guid.cpp @@ -0,0 +1,9 @@ +/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */ + +#include +#include +#include +#include +#include "interfaces.hpp" + +/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */ diff --git a/reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h b/reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h new file mode 100644 index 00000000000..57b4be66e24 --- /dev/null +++ b/reactos/drivers/wdm/audio/drivers/CMIDriver/precomp.h @@ -0,0 +1,9 @@ +#ifndef _CMIDRIVER_PCH_ +#define _CMIDRIVER_PCH_ + +#include +#include + +#include "debug.hpp" + +#endif /* _CMIDRIVER_PCH_ */