1
2list(APPEND SOURCE
3    LdrEnumResources.c
4    NtAcceptConnectPort.c
5    NtAllocateVirtualMemory.c
6    NtApphelpCacheControl.c
7    NtContinue.c
8    NtCreateFile.c
9    NtCreateKey.c
10    NtCreateThread.c
11    NtDeleteKey.c
12    NtFreeVirtualMemory.c
13    NtLoadUnloadKey.c
14    NtMapViewOfSection.c
15    NtMutant.c
16    NtOpenKey.c
17    NtOpenProcessToken.c
18    NtOpenThreadToken.c
19    NtProtectVirtualMemory.c
20    NtQueryInformationProcess.c
21    NtQueryKey.c
22    NtQuerySystemEnvironmentValue.c
23    NtQueryVolumeInformationFile.c
24    NtReadFile.c
25    NtSaveKey.c
26    NtSetValueKey.c
27    NtWriteFile.c
28    RtlAllocateHeap.c
29    RtlBitmap.c
30    RtlCopyMappedMemory.c
31    RtlDeleteAce.c
32    RtlDetermineDosPathNameType.c
33    RtlDoesFileExists.c
34    RtlDosApplyFileIsolationRedirection_Ustr.c
35    RtlDosPathNameToNtPathName_U.c
36    RtlDosSearchPath_U.c
37    RtlDosSearchPath_Ustr.c
38    RtlFirstFreeAce.c
39    RtlGenerate8dot3Name.c
40    RtlGetFullPathName_U.c
41    RtlGetFullPathName_Ustr.c
42    RtlGetFullPathName_UstrEx.c
43    RtlGetLengthWithoutTrailingPathSeperators.c
44    RtlGetLongestNtPathLength.c
45    RtlHandle.c
46    RtlImageRvaToVa.c
47    RtlInitializeBitMap.c
48    RtlIsNameLegalDOS8Dot3.c
49    RtlMemoryStream.c
50    RtlNtPathNameToDosPathName.c
51    RtlpEnsureBufferSize.c
52    RtlReAllocateHeap.c
53    RtlUnicodeStringToAnsiString.c
54    RtlUpcaseUnicodeStringToCountedOemString.c
55    StackOverflow.c
56    SystemInfo.c
57    Timer.c
58    testlist.c)
59
60if(ARCH STREQUAL "i386")
61    add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
62endif()
63
64add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
65target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
66set_module_type(ntdll_apitest win32cui)
67add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
68
69if(NOT MSVC)
70    set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
71endif()
72
73add_rostests_file(TARGET ntdll_apitest)
74add_rostests_file(TARGET ntdll_apitest SUBDIR testdata)
75# These are empty files
76add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ntdll_apitest.exe.local" SUBDIR testdata)
77add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/shell32.dll" SUBDIR testdata)
78add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/test.dll" SUBDIR testdata)
79