1
2spec2def(vfd.dll vfdlib.spec ADD_IMPORTLIB)
3
4add_message_headers(ANSI vfdmsg_lib.mc)
5
6list(APPEND SOURCE
7    vfdctl.c
8    vfdfat.c
9    vfdguiopen.c
10    vfdguisave.c
11    vfdguitip.c
12    vfdguiut.c
13    vfdlib.c
14    vfdshcfact.cpp
15    vfdshext.cpp
16    vfdshmenu.cpp
17    vfdshprop.cpp
18    vfdshutil.cpp
19    vfdzip.c)
20
21if(DBG)
22    add_definitions(-D_DEBUG)
23endif()
24
25add_library(vfd MODULE
26    ${SOURCE}
27    vfdlib.rc
28    ${CMAKE_CURRENT_BINARY_DIR}/vfd.def)
29
30include_directories(${REACTOS_SOURCE_DIR}/modules/rosapps/include/vfd
31                    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
32set_module_type(vfd win32dll ENTRYPOINT DllMain 12)
33target_link_libraries(vfd zlib_solo uuid cppstl)
34set_target_cpp_properties(vfd WITH_EXCEPTIONS)
35
36# Okay - After a long investigation this modules PDBs are just absolutely fighting github actions
37if(MSVC)
38    target_link_options(vfd PRIVATE "/DEBUG:NONE")
39endif()
40
41add_importlibs(vfd advapi32 user32 gdi32 shell32 comdlg32 comctl32 ole32 version psapi msvcrt kernel32 ntdll)
42add_dependencies(vfd vfdmsg_lib)
43add_cd_file(TARGET vfd DESTINATION reactos/system32 FOR all)
44