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
81 add_library(mbedtls SHARED
84 ${CMAKE_CURRENT_BINARY_DIR}/mbedtls.def)
86 set_module_type(mbedtls win32dll)
87 add_importlibs(mbedtls advapi32 msvcrt kernel32 ntdll)
89 # to use `_vsnprintf_s` looks like we have to define MINGW_HAS_SECURE_API
90 # and explicitly export it from msvcrt for it to work... what on earth?!
91 add_definitions(-DMINGW_HAS_SECURE_API -DCRTDLL)
93 add_cd_file(TARGET mbedtls DESTINATION reactos/system32 FOR all)
96 add_target_compile_flags(mbedtls "-Wno-pointer-sign -Wno-unused-function")
98 add_target_compile_flags(mbedtls "-Wno-tautological-constant-compare")