1
2add_definitions(-D_DLL -D__USE_CRTIMP)
3include_directories(${REACTOS_SOURCE_DIR}/win32ss/include ../gditools)
4
5list(APPEND SOURCE
6    ntdd/NtGdiDdCreateDirectDrawObject.c
7    ntdd/NtGdiDdDeleteDirectDrawObject.c
8    ntdd/NtGdiDdQueryDirectDrawObject.c
9
10    ntgdi/NtGdiArcInternal.c
11    ntgdi/NtGdiBitBlt.c
12    ntgdi/NtGdiCombineRgn.c
13    ntgdi/NtGdiCreateBitmap.c
14    ntgdi/NtGdiCreateCompatibleBitmap.c
15    ntgdi/NtGdiCreateCompatibleDC.c
16    ntgdi/NtGdiCreateDIBSection.c
17    ntgdi/NtGdiDeleteObjectApp.c
18    ntgdi/NtGdiDoPalette.c
19    ntgdi/NtGdiEngCreatePalette.c
20    ntgdi/NtGdiEnumFontOpen.c
21    ntgdi/NtGdiExtSelectClipRgn.c
22    ntgdi/NtGdiExtTextOutW.c
23    #ntgdi/NtGdiFlushUserBatch.c
24    ntgdi/NtGdiGetBitmapBits.c
25    ntgdi/NtGdiGetDIBits.c
26    ntgdi/NtGdiGetFontResourceInfoInternalW.c
27    ntgdi/NtGdiGetRandomRgn.c
28    ntgdi/NtGdiGetStockObject.c
29    ntgdi/NtGdiPolyPolyDraw.c
30    ntgdi/NtGdiRestoreDC.c
31    ntgdi/NtGdiSaveDC.c
32    ntgdi/NtGdiSelectBitmap.c
33    ntgdi/NtGdiSelectBrush.c
34    ntgdi/NtGdiSelectFont.c
35    ntgdi/NtGdiSelectPen.c
36    ntgdi/NtGdiSetBitmapBits.c
37    ntgdi/NtGdiSetDIBitsToDeviceInternal.c
38    ntgdi/NtGdiTransformPoints.c
39
40#    ntuser/NtUserCallHwnd.c
41#    ntuser/NtUserCallHwndLock.c
42#    ntuser/NtUserCallHwndOpt.c
43#    ntuser/NtUserCallHwndParam.c
44#    ntuser/NtUserCallHwndParamLock.c
45#    ntuser/NtUserCallNoParam.c
46#    ntuser/NtUserCallOneParam.c
47    ntuser/NtUserCountClipboardFormats.c
48    ntuser/NtUserCreateWindowEx.c
49#    ntuser/NtUserEnumDisplayMonitors.c
50    ntuser/NtUserEnumDisplaySettings.c
51    ntuser/NtUserFindExistingCursorIcon.c
52    ntuser/NtUserGetClassInfo.c
53#    ntuser/NtUserGetIconInfo.c
54    ntuser/NtUserGetTitleBarInfo.c
55    ntuser/NtUserProcessConnect.c
56    ntuser/NtUserRedrawWindow.c
57    ntuser/NtUserScrollDC.c
58    ntuser/NtUserSelectPalette.c
59    ntuser/NtUserSetTimer.c
60    ntuser/NtUserSystemParametersInfo.c
61    ntuser/NtUserToUnicodeEx.c
62    ntuser/NtUserUpdatePerUserSystemParameters.c
63
64    #osver.c
65    win32nt.h)
66
67add_library(win32knt_static STATIC ${SOURCE} w32knapi.rc)
68add_dependencies(win32knt_static xdk)
69add_pch(win32knt_static win32nt.h SOURCE)
70
71set(WIN32KNT_IMPORTLIBS gdi32 user32 shell32 advapi32 msvcrt kernel32 ntdll)
72
73if(1)  # ros
74    add_executable(win32knt_apitest testlist.c)
75    target_link_libraries(win32knt_apitest ${PSEH_LIB} win32knt_static gditools)
76    set_module_type(win32knt_apitest win32cui)
77    add_importlibs(win32knt_apitest win32u ${WIN32KNT_IMPORTLIBS})
78
79    add_rostests_file(TARGET win32knt_apitest)
80endif()
81
82if(0)  # Specify 1 if you want 2ksp4 version
83    # See also ../win32u/CMakeLists.txt
84    add_executable(win32knt_2ksp4_apitest testlist.c)
85    target_link_libraries(win32knt_2ksp4_apitest ${PSEH_LIB} win32knt_static gditools)
86    set_module_type(win32knt_2ksp4_apitest win32cui)
87    add_importlibs(win32knt_2ksp4_apitest win32u_2ksp4 ${WIN32KNT_IMPORTLIBS})
88endif()
89
90if(1) # xpsp2
91    add_executable(win32knt_xpsp2_apitest testlist.c)
92    target_link_libraries(win32knt_xpsp2_apitest ${PSEH_LIB} win32knt_static gditools)
93    set_module_type(win32knt_xpsp2_apitest win32cui)
94    add_importlibs(win32knt_xpsp2_apitest win32u_xpsp2 ${WIN32KNT_IMPORTLIBS})
95endif()
96
97if(1) # 2k3sp2
98    add_executable(win32knt_2k3sp2_apitest testlist.c)
99    target_link_libraries(win32knt_2k3sp2_apitest ${PSEH_LIB} win32knt_static gditools)
100    set_module_type(win32knt_2k3sp2_apitest win32cui)
101    add_importlibs(win32knt_2k3sp2_apitest win32u_2k3sp2 ${WIN32KNT_IMPORTLIBS})
102endif()
103
104if(0)  # Specify 1 if you want vista version
105    # See also ../win32u/CMakeLists.txt
106    add_executable(win32knt_vista_apitest testlist.c)
107    target_link_libraries(win32knt_vista_apitest ${PSEH_LIB} win32knt_static gditools)
108    set_module_type(win32knt_vista_apitest win32cui)
109    add_importlibs(win32knt_vista_apitest win32u_vista ${WIN32KNT_IMPORTLIBS})
110endif()
111