mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
23373acbb9
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.
28 lines
806 B
CMake
28 lines
806 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(inetcpl.cpl inetcpl.spec)
|
|
|
|
list(APPEND SOURCE
|
|
connections.c
|
|
content.c
|
|
general.c
|
|
inetcpl.c
|
|
security.c
|
|
precomp.h)
|
|
|
|
file(GLOB inetcpl_rc_deps resources/*.*)
|
|
add_rc_deps(inetcpl.rc ${inetcpl_rc_deps})
|
|
|
|
add_library(inetcpl MODULE
|
|
${SOURCE}
|
|
inetcpl.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/inetcpl_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/inetcpl.def)
|
|
|
|
set_module_type(inetcpl cpl UNICODE)
|
|
target_link_libraries(inetcpl wine)
|
|
add_delay_importlibs(inetcpl cryptui wininet ole32 urlmon shell32)
|
|
add_importlibs(inetcpl advapi32 comctl32 user32 shlwapi msvcrt kernel32 ntdll)
|
|
add_pch(inetcpl precomp.h SOURCE)
|
|
add_cd_file(TARGET inetcpl DESTINATION reactos/system32 FOR all)
|