mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 09:28:36 +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.
29 lines
642 B
CMake
29 lines
642 B
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-DHAVE_ZLIB)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
|
|
|
spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
cabinet_main.c
|
|
fci.c
|
|
fdi.c
|
|
precomp.h)
|
|
|
|
add_library(cabinet MODULE
|
|
${SOURCE}
|
|
stubs.c
|
|
cabinet.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
|
|
|
|
set_module_type(cabinet win32dll)
|
|
target_link_libraries(cabinet wine zlib)
|
|
add_importlibs(cabinet msvcrt kernel32 ntdll)
|
|
add_pch(cabinet precomp.h SOURCE)
|
|
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)
|