mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 01:18:56 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
21 lines
566 B
CMake
21 lines
566 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600
|
|
-D__NTDLL__
|
|
-D_NTOSKRNL_
|
|
-D_NTSYSTEM_)
|
|
|
|
spec2def(ntdll_vista.dll ntdll_vista.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
DllMain.c
|
|
condvar.c
|
|
srw.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_vista.def)
|
|
|
|
add_library(ntdll_vista MODULE ${SOURCE})
|
|
set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12)
|
|
add_importlibs(ntdll_vista ntdll)
|
|
add_dependencies(ntdll_vista psdk)
|
|
add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all)
|