mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
fix msvc
This commit is contained in:
parent
402327513d
commit
64b4a04f64
36
premake5.lua
36
premake5.lua
@ -233,6 +233,24 @@ project("NishBox")
|
|||||||
"NDEBUG"
|
"NDEBUG"
|
||||||
})
|
})
|
||||||
optimize("On")
|
optimize("On")
|
||||||
|
for k,rt in ipairs({"Debug", "Release"}) do
|
||||||
|
filter({
|
||||||
|
"options:cc=msc",
|
||||||
|
"options:engine=dynamic",
|
||||||
|
"configurations:" .. rt
|
||||||
|
})
|
||||||
|
linkoptions {"/MANIFEST"}
|
||||||
|
runtime(rt)
|
||||||
|
staticruntime("Off")
|
||||||
|
filter({
|
||||||
|
"options:cc=msc",
|
||||||
|
"options:engine=static",
|
||||||
|
"configurations:" .. rt
|
||||||
|
})
|
||||||
|
linkoptions {"/MANIFEST"}
|
||||||
|
runtime(rt)
|
||||||
|
staticruntime("On")
|
||||||
|
end
|
||||||
|
|
||||||
project("Engine")
|
project("Engine")
|
||||||
language("C")
|
language("C")
|
||||||
@ -267,6 +285,24 @@ project("Engine")
|
|||||||
"dNODEBUG",
|
"dNODEBUG",
|
||||||
})
|
})
|
||||||
optimize("On")
|
optimize("On")
|
||||||
|
for k,rt in ipairs({"Debug", "Release"}) do
|
||||||
|
filter({
|
||||||
|
"options:cc=msc",
|
||||||
|
"options:engine=dynamic",
|
||||||
|
"configurations:" .. rt
|
||||||
|
})
|
||||||
|
linkoptions {"/MANIFEST"}
|
||||||
|
runtime(rt)
|
||||||
|
staticruntime("Off")
|
||||||
|
filter({
|
||||||
|
"options:cc=msc",
|
||||||
|
"options:engine=static",
|
||||||
|
"configurations:" .. rt
|
||||||
|
})
|
||||||
|
linkoptions {"/MANIFEST"}
|
||||||
|
runtime(rt)
|
||||||
|
staticruntime("On")
|
||||||
|
end
|
||||||
filter({})
|
filter({})
|
||||||
targetdir("lib/%{cfg.buildcfg}/%{cfg.platform}")
|
targetdir("lib/%{cfg.buildcfg}/%{cfg.platform}")
|
||||||
targetname("goldfish")
|
targetname("goldfish")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user