mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +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.
18 lines
500 B
CMake
18 lines
500 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
|
|
|
spec2def(normaliz.dll normaliz.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
IdnToAscii.c
|
|
IdnToUnicode.c
|
|
nameprep.c
|
|
normalize.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/normaliz.def)
|
|
|
|
add_library(normaliz MODULE ${SOURCE})
|
|
set_module_type(normaliz win32dll ENTRYPOINT 0)
|
|
add_importlibs(normaliz msvcrt kernel32 ntdll)
|
|
add_cd_file(TARGET normaliz DESTINATION reactos/system32 FOR all)
|