2017-05-30 21:35:05 +00:00
|
|
|
|
2020-09-12 13:04:02 +00:00
|
|
|
spec2def(ntdll_vista.dll ntdll_vista.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
add_definitions(
|
2017-05-30 22:01:13 +00:00
|
|
|
-D__NTDLL__
|
|
|
|
-D_NTOSKRNL_
|
2020-09-12 13:04:02 +00:00
|
|
|
-DCRTDLL)
|
2017-05-30 21:35:05 +00:00
|
|
|
|
2020-09-12 13:04:02 +00:00
|
|
|
include_directories(
|
|
|
|
BEFORE include
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
2017-05-30 21:35:05 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
DllMain.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_vista.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(ntdll_vista MODULE ${SOURCE})
|
2017-05-30 21:35:05 +00:00
|
|
|
set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12)
|
2020-09-12 13:04:02 +00:00
|
|
|
target_link_libraries(ntdll_vista rtl_vista)
|
2019-08-18 19:48:07 +00:00
|
|
|
if(ARCH STREQUAL "arm")
|
|
|
|
target_link_libraries(ntdll_vista chkstk)
|
|
|
|
endif()
|
2017-06-05 21:37:13 +00:00
|
|
|
add_importlibs(ntdll_vista ntdll)
|
2017-05-30 21:35:05 +00:00
|
|
|
add_dependencies(ntdll_vista psdk)
|
|
|
|
add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all)
|