mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-20 07:24:34 +00:00
Add C# Example
This commit is contained in:
47
premake5.lua
47
premake5.lua
@ -95,3 +95,50 @@ project "C"
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
||||
|
||||
project "CSharp"
|
||||
location "Examples/CSharp"
|
||||
kind "ConsoleApp"
|
||||
language "C#"
|
||||
|
||||
targetdir ("Binaries/" .. outputDir)
|
||||
objdir ("Intermediate/")
|
||||
|
||||
files
|
||||
{
|
||||
"Examples/%{prj.name}/**.cs",
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
"Source"
|
||||
}
|
||||
|
||||
libdirs
|
||||
{
|
||||
"Binaries/%{cfg.buildcfg}"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
staticruntime "On"
|
||||
systemversion "latest"
|
||||
|
||||
defines
|
||||
{
|
||||
"WINDOWS_PLATFORM"
|
||||
}
|
||||
|
||||
links
|
||||
{
|
||||
"Library.dll.lib"
|
||||
}
|
||||
|
||||
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