mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +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.
25 lines
650 B
CMake
25 lines
650 B
CMake
|
|
set_cpp(WITH_RUNTIME WITH_EXCEPTIONS)
|
|
spec2def(framedyn.dll framedyn.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
main.c
|
|
chstring.cpp
|
|
provider.cpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
|
|
|
|
if(MSVC)
|
|
add_compile_flags("/Zc:wchar_t-")
|
|
endif()
|
|
|
|
add_library(framedyn MODULE ${SOURCE})
|
|
set_module_type(framedyn win32dll UNICODE)
|
|
add_importlibs(framedyn oleaut32 msvcrt kernel32 ntdll)
|
|
add_cd_file(TARGET framedyn DESTINATION reactos/system32/wbem FOR all)
|
|
|
|
if(NOT MSVC)
|
|
add_asm_files(framedynex_asm alias_gcc.s)
|
|
add_library(framedynex ${framedynex_asm})
|
|
set_target_properties(framedynex PROPERTIES LINKER_LANGUAGE ASM)
|
|
endif()
|