mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 17:37:02 +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.
31 lines
892 B
CMake
31 lines
892 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(fusion.dll fusion.spec)
|
|
|
|
list(APPEND COMMON_SOURCE
|
|
asmcache.c
|
|
asmenum.c
|
|
asmname.c
|
|
assembly.c
|
|
fusion.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/fusion_stubs.c)
|
|
|
|
add_library(fusion_common STATIC ${COMMON_SOURCE})
|
|
add_dependencies(fusion_common psdk)
|
|
|
|
add_library(fusion MODULE
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/fusion.def)
|
|
|
|
set_module_type(fusion win32dll)
|
|
target_link_libraries(fusion fusion_common uuid wine)
|
|
add_importlibs(fusion advapi32 dbghelp shlwapi user32 msvcrt kernel32 ntdll)
|
|
add_pch(fusion_common precomp.h COMMON_SOURCE)
|
|
add_cd_file(TARGET fusion DESTINATION reactos/Microsoft.NET/Framework/v1.0.3705 FOR all)
|
|
add_cd_file(TARGET fusion DESTINATION reactos/system32 FOR all)
|
|
|
|
add_subdirectory(fusion_1_1)
|
|
add_subdirectory(fusion_2_0)
|