[NTDLL_VISTA] Fix the build for arm
[reactos.git] / dll / win32 / ntdll_vista / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600
4 -D__NTDLL__
5 -D_NTOSKRNL_
6 -D_NTSYSTEM_)
7
8 spec2def(ntdll_vista.dll ntdll_vista.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 DllMain.c
12 condvar.c
13 srw.c
14 ${CMAKE_CURRENT_BINARY_DIR}/ntdll_vista.def)
15
16 add_library(ntdll_vista MODULE ${SOURCE})
17 set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12)
18 if(ARCH STREQUAL "arm")
19 target_link_libraries(ntdll_vista chkstk)
20 endif()
21 add_importlibs(ntdll_vista ntdll)
22 add_dependencies(ntdll_vista psdk)
23 add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all)