mirror of https://github.com/reactos/reactos.git
[CMAKE] Set KDBG define only where required (fastfat, win32k, ntoskrnl)
This commit is contained in:
parent
9e19352492
commit
b6d7571ebb
|
@ -217,10 +217,6 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
|
||||||
add_definitions(-DDBG=0)
|
add_definitions(-DDBG=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(KDBG)
|
|
||||||
add_definitions(-DKDBG)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(ENABLE_CCACHE)
|
if(ENABLE_CCACHE)
|
||||||
message(WARNING "-- Disabling precompiled headers support (ccache).")
|
message(WARNING "-- Disabling precompiled headers support (ccache).")
|
||||||
option(PCH "Whether to use precompiled headers" OFF)
|
option(PCH "Whether to use precompiled headers" OFF)
|
||||||
|
|
|
@ -24,6 +24,9 @@ list(APPEND SOURCE
|
||||||
volume.c
|
volume.c
|
||||||
vfat.h)
|
vfat.h)
|
||||||
|
|
||||||
|
if(KDBG)
|
||||||
|
add_definitions(-DKDBG)
|
||||||
|
endif()
|
||||||
add_library(fastfat MODULE ${SOURCE} vfatfs.rc)
|
add_library(fastfat MODULE ${SOURCE} vfatfs.rc)
|
||||||
set_module_type(fastfat kernelmodedriver)
|
set_module_type(fastfat kernelmodedriver)
|
||||||
target_link_libraries(fastfat ${PSEH_LIB})
|
target_link_libraries(fastfat ${PSEH_LIB})
|
||||||
|
|
|
@ -378,6 +378,10 @@ elseif(ARCH STREQUAL "arm")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT _WINKD_)
|
if(NOT _WINKD_)
|
||||||
|
if(KDBG)
|
||||||
|
add_definitions(-DKDBG)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/i386/kdbg.c)
|
${REACTOS_SOURCE_DIR}/ntoskrnl/kd/i386/kdbg.c)
|
||||||
|
|
|
@ -226,6 +226,7 @@ list(APPEND SOURCE
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(KDBG)
|
if(KDBG)
|
||||||
|
add_definitions(-DKDBG)
|
||||||
list(APPEND SOURCE gdi/ntgdi/gdikdbgext.c)
|
list(APPEND SOURCE gdi/ntgdi/gdikdbgext.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue