build: improve premake5.lua
This commit is contained in:
parent
4e6a3cd421
commit
4fad0ca54d
20
deps/premake/curl.lua
vendored
20
deps/premake/curl.lua
vendored
@ -51,18 +51,20 @@ function curl.project()
|
|||||||
|
|
||||||
filter "toolset:msc*"
|
filter "toolset:msc*"
|
||||||
|
|
||||||
defines {
|
defines {
|
||||||
"USE_SCHANNEL",
|
"USE_SCHANNEL",
|
||||||
"USE_WINDOWS_SSPI",
|
"USE_WINDOWS_SSPI",
|
||||||
"USE_THREADS_WIN32",
|
"USE_THREADS_WIN32",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filter {}
|
||||||
|
|
||||||
filter "toolset:not msc*"
|
filter "toolset:not msc*"
|
||||||
|
|
||||||
defines {
|
defines {
|
||||||
"USE_GNUTLS",
|
"USE_GNUTLS",
|
||||||
"USE_THREADS_POSIX",
|
"USE_THREADS_POSIX",
|
||||||
}
|
}
|
||||||
|
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@ if os.istarget("linux") then
|
|||||||
linkoptions "--target=arm64-linux-gnu"
|
linkoptions "--target=arm64-linux-gnu"
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
|
-- always try to use lld. LD or Gold will not work
|
||||||
linkoptions "-fuse-ld=lld"
|
linkoptions "-fuse-ld=lld"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -95,7 +96,7 @@ end
|
|||||||
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
|
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
|
||||||
|
|
||||||
filter "configurations:Release"
|
filter "configurations:Release"
|
||||||
optimize "Speed"
|
optimize "Size"
|
||||||
defines "NDEBUG"
|
defines "NDEBUG"
|
||||||
flags "FatalCompileWarnings"
|
flags "FatalCompileWarnings"
|
||||||
filter {}
|
filter {}
|
||||||
@ -120,10 +121,14 @@ filter "system:windows"
|
|||||||
files {
|
files {
|
||||||
"./src/**.rc",
|
"./src/**.rc",
|
||||||
}
|
}
|
||||||
|
filter {}
|
||||||
|
|
||||||
filter { "system:windows", "toolset:not msc*" }
|
filter { "system:windows", "toolset:not msc*" }
|
||||||
resincludedirs {
|
resincludedirs {
|
||||||
"%{_MAIN_SCRIPT_DIR}/src"
|
"%{_MAIN_SCRIPT_DIR}/src"
|
||||||
}
|
}
|
||||||
|
filter {}
|
||||||
|
|
||||||
filter { "system:windows", "toolset:msc*" }
|
filter { "system:windows", "toolset:msc*" }
|
||||||
resincludedirs {
|
resincludedirs {
|
||||||
"$(ProjectDir)src"
|
"$(ProjectDir)src"
|
||||||
|
Loading…
Reference in New Issue
Block a user