mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-16 05:44:19 +00:00
Update Bindings Generating
This commit is contained in:
44
premake5.lua
44
premake5.lua
@ -34,7 +34,6 @@ project "Cpp"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
cppdialect "C++17"
|
||||
staticruntime "On"
|
||||
systemversion "latest"
|
||||
|
||||
@ -45,14 +44,24 @@ project "Cpp"
|
||||
|
||||
filter { "system:windows", "configurations:debug" }
|
||||
runtime "Debug"
|
||||
buildoptions "/MDd"
|
||||
symbols "on"
|
||||
|
||||
filter { "system:windows", "configurations:release" }
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
||||
|
||||
filter "system:linux"
|
||||
links
|
||||
{
|
||||
"Library"
|
||||
}
|
||||
|
||||
filter "system:darwin"
|
||||
links
|
||||
{
|
||||
"Library"
|
||||
}
|
||||
|
||||
project "C"
|
||||
location "Examples/C"
|
||||
kind "ConsoleApp"
|
||||
@ -88,17 +97,36 @@ project "C"
|
||||
|
||||
filter { "system:windows", "configurations:debug" }
|
||||
runtime "Debug"
|
||||
buildoptions "/MDd"
|
||||
symbols "on"
|
||||
|
||||
filter { "system:windows", "configurations:release" }
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
||||
|
||||
filter "system:linux"
|
||||
links
|
||||
{
|
||||
"Library"
|
||||
}
|
||||
|
||||
filter "system:darwin"
|
||||
links
|
||||
{
|
||||
"Library"
|
||||
}
|
||||
|
||||
project "CSharp"
|
||||
location "Examples/CSharp"
|
||||
kind "ConsoleApp"
|
||||
|
||||
filter { "system:windows" }
|
||||
kind "ConsoleApp"
|
||||
filter { "system:linux" }
|
||||
kind "None"
|
||||
filter { "system:darwin" }
|
||||
kind "None"
|
||||
|
||||
filter {}
|
||||
|
||||
language "C#"
|
||||
|
||||
targetdir ("Binaries/" .. outputDir)
|
||||
@ -125,15 +153,13 @@ project "CSharp"
|
||||
|
||||
defines
|
||||
{
|
||||
"WINDOWS_PLATFORM"
|
||||
"PLATFORM_WINDOWS"
|
||||
}
|
||||
|
||||
filter { "system:windows", "configurations:debug" }
|
||||
runtime "Debug"
|
||||
buildoptions "/MDd"
|
||||
symbols "on"
|
||||
|
||||
filter { "system:windows", "configurations:release" }
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
||||
|
Reference in New Issue
Block a user