2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs
3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/zlib)
5 spec2def(mbedtls.dll mbedtls.spec ADD_IMPORTLIB)
8 _reactos_strsafe_wrapper.c
42 #memory_buffer_alloc.c
82 add_library(mbedtls MODULE
85 ${CMAKE_CURRENT_BINARY_DIR}/mbedtls.def)
87 set_module_type(mbedtls win32dll)
88 add_importlibs(mbedtls advapi32 msvcrt kernel32 ntdll)
90 # to use `_vsnprintf_s` looks like we have to define MINGW_HAS_SECURE_API
91 # and explicitly export it from msvcrt for it to work... what on earth?!
92 add_definitions(-DMINGW_HAS_SECURE_API -DCRTDLL)
94 add_cd_file(TARGET mbedtls DESTINATION reactos/system32 FOR all)
97 add_target_compile_flags(mbedtls "-Wno-pointer-sign -Wno-unused-function")
99 add_target_compile_flags(mbedtls "-Wno-tautological-constant-compare")