mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22: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.
35 lines
1,007 B
CMake
35 lines
1,007 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(wshom.ocx wshom.ocx.spec)
|
|
add_idl_headers(wshom_idlheader wshom.idl)
|
|
add_typelib(wshom.idl)
|
|
|
|
list(APPEND SOURCE
|
|
shell.c
|
|
wshom_main.c
|
|
precomp.h)
|
|
|
|
add_library(wshom MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
wshom.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/wshom.def)
|
|
|
|
list(APPEND wshom_rc_deps
|
|
${CMAKE_CURRENT_SOURCE_DIR}/wshom.rgs
|
|
${CMAKE_CURRENT_SOURCE_DIR}/wshom.tlb.rgs
|
|
${CMAKE_CURRENT_BINARY_DIR}/wshom.tlb)
|
|
|
|
set_source_files_properties(wshom.rc PROPERTIES OBJECT_DEPENDS "${wshom_rc_deps}")
|
|
set_module_type(wshom win32ocx)
|
|
target_link_libraries(wshom uuid wine)
|
|
add_importlibs(wshom oleaut32 ole32 shell32 advapi32 advapi32_vista user32 msvcrt kernel32 ntdll)
|
|
add_dependencies(wshom stdole2 wshom_idlheader)
|
|
add_pch(wshom precomp.h SOURCE)
|
|
add_cd_file(TARGET wshom DESTINATION reactos/system32 FOR all)
|