reactos/dll/win32/usp10/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
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.
2019-04-06 17:43:38 +02:00

29 lines
698 B
CMake

include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(usp10.dll usp10.spec ADD_IMPORTLIB)
list(APPEND SOURCE
bidi.c
bracket.c
breaking.c
indic.c
indicsyllable.c
linebreak.c
mirror.c
opentype.c
shape.c
shaping.c
usp10.c
precomp.h
${CMAKE_CURRENT_BINARY_DIR}/usp10_stubs.c)
add_library(usp10 MODULE
${SOURCE}
${CMAKE_CURRENT_BINARY_DIR}/usp10.def)
set_module_type(usp10 win32dll)
target_link_libraries(usp10 wine)
add_importlibs(usp10 advapi32 user32 gdi32 msvcrt kernel32 ntdll)
add_pch(usp10 precomp.h SOURCE)
add_cd_file(TARGET usp10 DESTINATION reactos/system32 FOR all)