reactos/dll/appcompat/apphelp/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
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.
2019-04-06 17:43:38 +02:00

42 lines
1 KiB
CMake

include_directories(${SHIMLIB_DIR})
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
add_definitions(-D_WIN32_WINNT=0x601 -DWINVER=0x601)
#add_definitions(-DSDBAPI_DEBUG_ALLOC)
spec2def(apphelp.dll apphelp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
apphelp.c
dbgheap.c
hsdb.c
layer.c
sdbapi.c
sdbfileattr.c
sdbread.c
sdbstringtable.c
sdbwrite.c
shimeng.c
apphelp.spec
${CMAKE_CURRENT_BINARY_DIR}/apphelp_stubs.c)
list(APPEND HEADERS
apphelp.h
sdbpapi.h
sdbstringtable.h
${REACTOS_SOURCE_DIR}/sdk/include/reactos/appcompat/sdbtagid.h
${REACTOS_SOURCE_DIR}/sdk/include/reactos/appcompat/sdbtypes.h
sdbwrite.h
shimeng.h)
add_library(apphelp MODULE
${SOURCE}
${HEADERS}
apphelp.rc
${CMAKE_CURRENT_BINARY_DIR}/apphelp.def)
set_module_type(apphelp win32dll UNICODE ENTRYPOINT DllMain 12)
add_delay_importlibs(apphelp version)
add_importlibs(apphelp kernel32 ntdll)
add_cd_file(TARGET apphelp DESTINATION reactos/system32 FOR all)