Don't build and link mbedtls on Windows/Mac

This commit is contained in:
Jusonex 2017-03-09 20:07:32 +01:00
parent 386a7f0ab2
commit b0a8186b0d
2 changed files with 8 additions and 2 deletions

View File

@ -16,4 +16,5 @@ project "mbedtls-lib"
"library/*.c"
}
filter { "system:windows or macosx" }
flags { "ExcludeFromBuild" }

View File

@ -136,7 +136,7 @@
end
if not _OPTIONS["no-curl"] then
includedirs { "contrib/curl/include" }
links { "curl-lib", "mbedtls-lib" }
links { "curl-lib" }
end
files
@ -169,6 +169,11 @@
filter "system:linux or hurd"
links { "dl", "rt" }
filter { "system:not windows", "system:not macosx" }
if not _OPTIONS["no-curl"] then
links { "mbedtls-lib" }
end
filter "system:macosx"
defines { "LUA_USE_MACOSX" }
links { "CoreServices.framework", "Foundation.framework", "Security.framework" }