2011-06-09 15:14:02 +00:00
|
|
|
include_directories(
|
|
|
|
include)
|
|
|
|
|
2011-06-10 05:34:00 +00:00
|
|
|
#
|
|
|
|
# subdirectories containing special-purpose drivers
|
|
|
|
#
|
2011-07-08 06:38:01 +00:00
|
|
|
add_subdirectory(example)
|
2011-08-03 12:48:22 +00:00
|
|
|
add_subdirectory(ntos_io)
|
2011-06-10 05:34:00 +00:00
|
|
|
|
2011-09-03 19:42:02 +00:00
|
|
|
list(APPEND COMMON_SOURCE
|
2011-09-11 11:22:00 +00:00
|
|
|
example/GuardedMemory.c
|
2011-09-03 19:42:02 +00:00
|
|
|
rtl/RtlAvlTree.c
|
2012-04-27 08:36:58 +00:00
|
|
|
rtl/RtlException.c
|
2011-09-03 19:42:02 +00:00
|
|
|
rtl/RtlMemory.c
|
2011-10-12 11:25:34 +00:00
|
|
|
rtl/RtlSplayTree.c
|
|
|
|
rtl/RtlUnicodeString.c)
|
2011-09-03 19:42:02 +00:00
|
|
|
|
2011-06-10 05:34:00 +00:00
|
|
|
#
|
|
|
|
# kmtest_drv.sys driver
|
|
|
|
#
|
|
|
|
list(APPEND KMTEST_DRV_SOURCE
|
|
|
|
kmtest_drv/kmtest_drv.c
|
|
|
|
kmtest_drv/testlist.c
|
|
|
|
|
2011-06-13 17:29:02 +00:00
|
|
|
example/Example.c
|
2011-07-22 11:51:18 +00:00
|
|
|
example/KernelType.c
|
2012-06-14 18:43:32 +00:00
|
|
|
ntos_ex/ExCallback.c
|
2011-07-25 20:12:44 +00:00
|
|
|
ntos_ex/ExDoubleList.c
|
2011-08-05 21:07:52 +00:00
|
|
|
ntos_ex/ExFastMutex.c
|
2011-07-13 20:08:05 +00:00
|
|
|
ntos_ex/ExHardError.c
|
|
|
|
ntos_ex/ExInterlocked.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_ex/ExPools.c
|
2011-07-09 22:02:54 +00:00
|
|
|
ntos_ex/ExResource.c
|
2011-08-21 16:08:27 +00:00
|
|
|
ntos_ex/ExSequencedList.c
|
2011-07-25 20:12:44 +00:00
|
|
|
ntos_ex/ExSingleList.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_ex/ExTimer.c
|
|
|
|
ntos_fsrtl/FsRtlExpression.c
|
|
|
|
ntos_io/IoDeviceInterface.c
|
2012-09-21 22:12:47 +00:00
|
|
|
ntos_io/IoEvent.c
|
2011-08-24 14:09:53 +00:00
|
|
|
ntos_io/IoInterrupt.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_io/IoIrp.c
|
|
|
|
ntos_io/IoMdl.c
|
2011-07-09 22:02:54 +00:00
|
|
|
ntos_ke/KeApc.c
|
2011-07-08 06:38:01 +00:00
|
|
|
ntos_ke/KeDpc.c
|
2011-08-05 21:07:52 +00:00
|
|
|
ntos_ke/KeEvent.c
|
2011-08-22 10:01:02 +00:00
|
|
|
ntos_ke/KeGuardedMutex.c
|
2011-07-08 06:38:01 +00:00
|
|
|
ntos_ke/KeIrql.c
|
2012-09-28 07:09:08 +00:00
|
|
|
ntos_ke/KeMutex.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_ke/KeProcessor.c
|
2011-07-25 20:08:51 +00:00
|
|
|
ntos_ke/KeSpinLock.c
|
2011-10-07 16:13:03 +00:00
|
|
|
ntos_ke/KeTimer.c
|
2011-09-11 11:22:00 +00:00
|
|
|
ntos_mm/MmSection.c
|
2011-09-03 19:42:02 +00:00
|
|
|
ntos_ob/ObReference.c
|
2011-08-06 17:09:39 +00:00
|
|
|
ntos_ob/ObType.c
|
2012-04-21 09:06:54 +00:00
|
|
|
ntos_ob/ObTypes.c
|
2012-06-14 18:43:32 +00:00
|
|
|
ntos_ps/PsNotify.c
|
2011-09-03 19:42:02 +00:00
|
|
|
${COMMON_SOURCE}
|
2011-06-13 17:29:02 +00:00
|
|
|
|
2011-06-10 05:34:00 +00:00
|
|
|
kmtest_drv/kmtest_drv.rc)
|
|
|
|
|
|
|
|
add_library(kmtest_drv SHARED ${KMTEST_DRV_SOURCE})
|
|
|
|
|
|
|
|
set_module_type(kmtest_drv kernelmodedriver)
|
2012-05-10 13:05:37 +00:00
|
|
|
target_link_libraries(kmtest_drv kmtest_printf chkstk ${PSEH_LIB})
|
2011-06-10 05:34:00 +00:00
|
|
|
add_importlibs(kmtest_drv ntoskrnl hal)
|
2011-09-03 19:42:02 +00:00
|
|
|
add_target_compile_definitions(kmtest_drv KMT_KERNEL_MODE NTDDI_VERSION=NTDDI_WS03SP1)
|
|
|
|
#add_pch(kmtest_drv include/kmt_test.h)
|
2011-06-10 05:34:00 +00:00
|
|
|
|
2011-07-22 11:33:17 +00:00
|
|
|
add_cd_file(TARGET kmtest_drv DESTINATION reactos/bin FOR all)
|
2011-06-10 05:34:00 +00:00
|
|
|
|
2011-06-18 11:03:28 +00:00
|
|
|
add_library(kmtest_printf
|
|
|
|
kmtest_drv/printf_stubs.c
|
2012-07-04 18:51:34 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/lib/sdk/crt/string/strnlen.c
|
|
|
|
${REACTOS_SOURCE_DIR}/lib/sdk/crt/string/wcsnlen.c
|
2011-06-18 11:03:28 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/lib/sdk/crt/printf/streamout.c)
|
2011-09-03 19:42:02 +00:00
|
|
|
add_target_compile_definitions(kmtest_printf _LIBCNT_ _USER32_WSPRINTF wctomb=KmtWcToMb)
|
|
|
|
add_target_include_directories(kmtest_printf ${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
2011-06-18 11:03:28 +00:00
|
|
|
|
2011-06-10 05:34:00 +00:00
|
|
|
#
|
|
|
|
# kmtest.exe loader application
|
|
|
|
#
|
2011-06-09 15:14:02 +00:00
|
|
|
|
|
|
|
list(APPEND KMTEST_SOURCE
|
|
|
|
kmtest/kmtest.c
|
|
|
|
kmtest/service.c
|
2011-07-03 18:53:26 +00:00
|
|
|
kmtest/support.c
|
|
|
|
kmtest/testlist.c
|
2011-07-06 18:55:21 +00:00
|
|
|
|
|
|
|
example/Example_user.c
|
2011-08-17 12:04:15 +00:00
|
|
|
ntos_io/IoDeviceObject_user.c
|
2011-09-03 19:42:02 +00:00
|
|
|
${COMMON_SOURCE}
|
2011-07-06 18:55:21 +00:00
|
|
|
|
2011-06-09 15:14:02 +00:00
|
|
|
kmtest/kmtest.rc)
|
|
|
|
|
|
|
|
add_executable(kmtest ${KMTEST_SOURCE})
|
|
|
|
set_module_type(kmtest win32cui)
|
2011-08-05 09:44:20 +00:00
|
|
|
target_link_libraries(kmtest ${PSEH_LIB})
|
2011-08-03 11:21:35 +00:00
|
|
|
add_importlibs(kmtest advapi32 msvcrt kernel32 ntdll)
|
2011-09-03 19:42:02 +00:00
|
|
|
add_target_compile_definitions(kmtest KMT_USER_MODE)
|
|
|
|
#add_pch(kmtest include/kmt_test.h)
|
2011-06-09 15:14:02 +00:00
|
|
|
|
2011-09-10 11:19:50 +00:00
|
|
|
set_target_properties(kmtest PROPERTIES OUTPUT_NAME "kmtest_")
|
|
|
|
add_cd_file(TARGET kmtest DESTINATION reactos/bin FOR all)
|
2011-08-03 11:21:35 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Group targets
|
|
|
|
#
|
|
|
|
add_custom_target(kmtest_drivers)
|
2011-08-11 11:37:50 +00:00
|
|
|
add_dependencies(kmtest_drivers
|
|
|
|
kmtest_drv
|
|
|
|
example_drv
|
2011-08-17 12:04:15 +00:00
|
|
|
iodeviceobject_drv
|
2011-08-11 11:37:50 +00:00
|
|
|
iohelper_drv)
|
2011-08-03 11:21:35 +00:00
|
|
|
|
|
|
|
add_custom_target(kmtest_all)
|
|
|
|
add_dependencies(kmtest_all kmtest_drivers kmtest)
|