2014-10-17 23:29:24 +00:00
|
|
|
|
|
|
|
include_directories(include)
|
2011-06-09 15:14:02 +00:00
|
|
|
|
2011-06-10 05:34:00 +00:00
|
|
|
#
|
|
|
|
# subdirectories containing special-purpose drivers
|
|
|
|
#
|
2011-07-08 06:38:01 +00:00
|
|
|
add_subdirectory(example)
|
2017-06-13 05:48:28 +00:00
|
|
|
add_subdirectory(hidparse)
|
2013-04-21 19:00:10 +00:00
|
|
|
add_subdirectory(kernel32)
|
2016-05-28 19:59:10 +00:00
|
|
|
add_subdirectory(ntos_cc)
|
2011-08-03 12:48:22 +00:00
|
|
|
add_subdirectory(ntos_io)
|
2016-11-10 21:02:48 +00:00
|
|
|
add_subdirectory(ntos_mm)
|
2015-10-11 17:06:14 +00:00
|
|
|
add_subdirectory(ntos_po)
|
2014-12-02 18:06:48 +00:00
|
|
|
add_subdirectory(tcpip)
|
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
|
2013-11-14 09:19:16 +00:00
|
|
|
rtl/RtlIntSafe.c
|
2011-09-03 19:42:02 +00:00
|
|
|
rtl/RtlMemory.c
|
2013-07-20 19:33:13 +00:00
|
|
|
rtl/RtlRegistry.c
|
2011-10-12 11:25:34 +00:00
|
|
|
rtl/RtlSplayTree.c
|
2017-05-06 15:29:56 +00:00
|
|
|
rtl/RtlStack.c
|
2011-10-12 11:25:34 +00:00
|
|
|
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
|
2014-03-23 17:24:10 +00:00
|
|
|
kmtest_drv/guid.c
|
2011-06-10 05:34:00 +00:00
|
|
|
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
|
2014-04-09 18:00:33 +00:00
|
|
|
npfs/NpfsConnect.c
|
|
|
|
npfs/NpfsCreate.c
|
2014-04-13 16:16:30 +00:00
|
|
|
npfs/NpfsFileInfo.c
|
2014-04-09 18:00:33 +00:00
|
|
|
npfs/NpfsHelpers.c
|
|
|
|
npfs/NpfsReadWrite.c
|
2014-04-12 12:06:47 +00:00
|
|
|
npfs/NpfsVolumeInfo.c
|
2016-03-25 18:53:43 +00:00
|
|
|
novp_fsrtl/FsRtlRemoveDotsFromPath.c
|
2015-09-18 11:06:11 +00:00
|
|
|
ntos_cm/CmSecurity.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
|
2015-12-01 14:22:17 +00:00
|
|
|
ntos_fsrtl/FsRtlDissect.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_fsrtl/FsRtlExpression.c
|
2015-12-01 14:22:17 +00:00
|
|
|
ntos_fsrtl/FsRtlLegal.c
|
2013-04-23 21:34:59 +00:00
|
|
|
ntos_fsrtl/FsRtlMcb.c
|
2013-06-05 22:50:57 +00:00
|
|
|
ntos_fsrtl/FsRtlTunnel.c
|
2014-04-23 19:44:03 +00:00
|
|
|
ntos_io/IoCreateFile.c
|
2011-06-27 08:49:23 +00:00
|
|
|
ntos_io/IoDeviceInterface.c
|
2012-09-21 22:12:47 +00:00
|
|
|
ntos_io/IoEvent.c
|
2015-11-12 12:55:26 +00:00
|
|
|
ntos_io/IoFilesystem.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
|
2013-06-08 10:19:26 +00:00
|
|
|
ntos_ke/KeDevQueue.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
|
2015-06-26 07:31:01 +00:00
|
|
|
ntos_mm/MmMdl.c
|
2015-09-10 09:58:02 +00:00
|
|
|
ntos_mm/MmReservedMapping.c
|
2011-09-11 11:22:00 +00:00
|
|
|
ntos_mm/MmSection.c
|
2013-04-27 18:33:50 +00:00
|
|
|
ntos_mm/ZwAllocateVirtualMemory.c
|
|
|
|
ntos_mm/ZwCreateSection.c
|
|
|
|
ntos_mm/ZwMapViewOfSection.c
|
2015-10-17 15:50:25 +00:00
|
|
|
ntos_ob/ObHandle.c
|
2011-09-03 19:42:02 +00:00
|
|
|
ntos_ob/ObReference.c
|
2016-10-17 09:28:15 +00:00
|
|
|
ntos_ob/ObSecurity.c
|
2016-07-03 08:31:28 +00:00
|
|
|
ntos_ob/ObSymbolicLink.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
|
2015-09-28 12:25:38 +00:00
|
|
|
ntos_ob/ObWait.c
|
2012-06-14 18:43:32 +00:00
|
|
|
ntos_ps/PsNotify.c
|
2014-11-04 22:42:15 +00:00
|
|
|
ntos_se/SeHelpers.c
|
|
|
|
ntos_se/SeInheritance.c
|
2013-06-05 23:16:14 +00:00
|
|
|
ntos_se/SeQueryInfoToken.c
|
2016-09-04 22:15:53 +00:00
|
|
|
rtl/RtlIsValidOemCharacter.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)
|
2016-03-25 18:53:43 +00:00
|
|
|
target_link_libraries(kmtest_drv kmtest_printf chkstk memcmp ntoskrnl_vista ${PSEH_LIB})
|
2011-06-10 05:34:00 +00:00
|
|
|
add_importlibs(kmtest_drv ntoskrnl hal)
|
2015-09-07 10:05:42 +00:00
|
|
|
add_dependencies(kmtest_drv bugcodes xdk)
|
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)
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET kmtest_drv)
|
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
|
2016-04-20 12:39:37 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/crt/string/strnlen.c
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/crt/string/wcsnlen.c
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/crt/printf/streamout.c)
|
2011-09-03 19:42:02 +00:00
|
|
|
add_target_compile_definitions(kmtest_printf _LIBCNT_ _USER32_WSPRINTF wctomb=KmtWcToMb)
|
2016-04-20 12:39:37 +00:00
|
|
|
add_target_include_directories(kmtest_printf ${REACTOS_SOURCE_DIR}/sdk/lib/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
|
2017-06-13 05:48:28 +00:00
|
|
|
hidparse/HidP_user.c
|
2017-06-29 16:16:20 +00:00
|
|
|
kernel32/FileAttributes_user.c
|
2013-04-21 19:00:10 +00:00
|
|
|
kernel32/FindFile_user.c
|
2016-05-28 19:59:10 +00:00
|
|
|
ntos_cc/CcCopyRead_user.c
|
2015-09-22 22:31:08 +00:00
|
|
|
ntos_io/IoCreateFile_user.c
|
2011-08-17 12:04:15 +00:00
|
|
|
ntos_io/IoDeviceObject_user.c
|
2015-05-01 11:03:21 +00:00
|
|
|
ntos_io/IoReadWrite_user.c
|
2017-06-02 19:19:32 +00:00
|
|
|
ntos_mm/MmMapLockedPagesSpecifyCache_user.c
|
2016-11-10 21:02:48 +00:00
|
|
|
ntos_mm/NtCreateSection_user.c
|
2015-10-11 17:06:14 +00:00
|
|
|
ntos_po/PoIrp_user.c
|
2014-12-02 18:06:48 +00:00
|
|
|
tcpip/TcpIp_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})
|
2015-02-06 10:49:04 +00:00
|
|
|
add_importlibs(kmtest advapi32 ws2_32 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-09-10 11:19:50 +00:00
|
|
|
set_target_properties(kmtest PROPERTIES OUTPUT_NAME "kmtest_")
|
2017-01-13 11:20:52 +00:00
|
|
|
#add_rostests_file(TARGET 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
|
2017-06-13 05:48:28 +00:00
|
|
|
hidp_drv
|
2015-09-22 22:31:08 +00:00
|
|
|
iocreatefile_drv
|
2011-08-17 12:04:15 +00:00
|
|
|
iodeviceobject_drv
|
2014-12-02 18:06:48 +00:00
|
|
|
iohelper_drv
|
2015-05-01 11:03:21 +00:00
|
|
|
ioreadwrite_drv
|
2017-06-29 15:30:23 +00:00
|
|
|
kernel32_drv
|
2017-06-02 19:19:32 +00:00
|
|
|
mmmaplockedpagesspecifycache_drv
|
2016-11-10 21:02:48 +00:00
|
|
|
ntcreatesection_drv
|
2015-10-11 17:06:14 +00:00
|
|
|
poirp_drv
|
2016-07-27 16:40:30 +00:00
|
|
|
tcpip_drv
|
|
|
|
cccopyread_drv)
|
2011-08-03 11:21:35 +00:00
|
|
|
|
|
|
|
add_custom_target(kmtest_all)
|
|
|
|
add_dependencies(kmtest_all kmtest_drivers kmtest)
|