building.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Edit
  2. "C:\Esenthel\ThirdPartyLibs\mbedTLS\lib\include\mbedtls\config.h"
  3. //#define MBEDTLS_PLATFORM_PRINTF_MACRO -> #define MBEDTLS_PLATFORM_PRINTF_MACRO // ESENTHEL, this will completely disable 'printf' usage and avoid linker errors
  4. #define MBEDTLS_DEBUG_C -> //#define MBEDTLS_DEBUG_C
  5. #define MBEDTLS_SELF_TEST -> //#define MBEDTLS_SELF_TEST
  6. #define MBEDTLS_ARC4_C -> //#define MBEDTLS_ARC4_C
  7. #define MBEDTLS_CAMELLIA_C -> //#define MBEDTLS_CAMELLIA_C
  8. #define MBEDTLS_DES_C -> //#define MBEDTLS_DES_C
  9. #define MBEDTLS_BLOWFISH_C -> //#define MBEDTLS_BLOWFISH_C
  10. #define MBEDTLS_FS_IO -> //#define MBEDTLS_FS_IO
  11. #define MBEDTLS_SSL_PROTO_DTLS -> //#define MBEDTLS_SSL_PROTO_DTLS this is UDP/MBEDTLS_SSL_TRANSPORT_DATAGRAM
  12. #define MBEDTLS_SSL_DTLS_ANTI_REPLAY -> //#define MBEDTLS_SSL_DTLS_ANTI_REPLAY
  13. #define MBEDTLS_SSL_DTLS_HELLO_VERIFY -> //#define MBEDTLS_SSL_DTLS_HELLO_VERIFY
  14. #define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE -> //#define MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
  15. #define MBEDTLS_SSL_DTLS_BADMAC_LIMIT -> //#define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
  16. #define MBEDTLS_ERROR_C -> //#define MBEDTLS_ERROR_C
  17. #define MBEDTLS_NET_C -> //#define MBEDTLS_NET_C
  18. #define MBEDTLS_PEM_WRITE_C -> //#define MBEDTLS_PEM_WRITE_C
  19. #define MBEDTLS_XTEA_C -> //#define MBEDTLS_XTEA_C
  20. library/x509_crt.c
  21. lstrlenW -> wcslen // to avoid linker errors on UWP
  22. library/net_sockets.c
  23. #define _WIN32_WINNT 0x0501 -> //#define _WIN32_WINNT 0x0501
  24. to fix UWP Arm compilation errors
  25. library/entropy_poll.c
  26. comment out entire "mbedtls_platform_entropy_poll" function because it's manually defined in the Engine
  27. Windows
  28. use "lib\visualc\VS2010\mbedTLS.sln"
  29. on first open, retarget to latest version of VS
  30. open properties of "mbedTLS" project, change settings for:
  31. Release All Platforms:
  32. Platform toolset - Visual Studio 2017 - Windows XP (v141_xp)
  33. Whole Program Optimization - No Whole Program Optimization
  34. Debug Information Format - None
  35. Code Generation - Multi-threaded (/MT)
  36. Create ARM
  37. Platform toolset - Visual Studio 2017 (v141)
  38. Target Platform min version - 10.0...
  39. Windows Store App support - Yes
  40. Code Generation - Multi-threaded DLL (/MD)
  41. Consume Windows Runtime Extensions - No
  42. Have to manually edit - mbedTLS.vcxproj
  43. and Replace
  44. <WindowsAppContainer>true</WindowsAppContainer>
  45. with
  46. <WindowsAppContainer>true</WindowsAppContainer> <AppContainerApplication>true</AppContainerApplication>