mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-15 21:34:19 +00:00
Add Premake to GenerateProject Files
This commit is contained in:
97
premake5.lua
Normal file
97
premake5.lua
Normal file
@ -0,0 +1,97 @@
|
||||
workspace "Library"
|
||||
architecture "x64"
|
||||
|
||||
configurations
|
||||
{
|
||||
"debug",
|
||||
"release"
|
||||
}
|
||||
|
||||
outputDir = "%{cfg.buildcfg}"
|
||||
|
||||
project "Cpp"
|
||||
location "Examples/Cpp"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
targetdir ("Binaries/" .. outputDir)
|
||||
objdir ("Intermediate/")
|
||||
|
||||
files
|
||||
{
|
||||
"Examples/%{prj.name}/**.h",
|
||||
"Examples/%{prj.name}/**.cpp",
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
"Source"
|
||||
}
|
||||
|
||||
libdirs
|
||||
{
|
||||
"Binaries/%{cfg.buildcfg}"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
cppdialect "C++17"
|
||||
staticruntime "On"
|
||||
systemversion "latest"
|
||||
|
||||
links
|
||||
{
|
||||
"Library.dll.lib"
|
||||
}
|
||||
|
||||
filter "configurations:debug"
|
||||
runtime "Debug"
|
||||
buildoptions "/MDd"
|
||||
symbols "on"
|
||||
|
||||
filter "configurations:release"
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
||||
|
||||
project "C"
|
||||
location "Examples/C"
|
||||
kind "ConsoleApp"
|
||||
language "C"
|
||||
|
||||
targetdir ("Binaries/" .. outputDir)
|
||||
objdir ("Intermediate/")
|
||||
|
||||
files
|
||||
{
|
||||
"Examples/%{prj.name}/**.h",
|
||||
"Examples/%{prj.name}/**.c",
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
"Source"
|
||||
}
|
||||
|
||||
libdirs
|
||||
{
|
||||
"Binaries/%{cfg.buildcfg}"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
staticruntime "On"
|
||||
systemversion "latest"
|
||||
|
||||
links
|
||||
{
|
||||
"Library.dll.lib"
|
||||
}
|
||||
|
||||
filter "configurations:debug"
|
||||
runtime "Debug"
|
||||
buildoptions "/MDd"
|
||||
symbols "on"
|
||||
|
||||
filter "configurations:release"
|
||||
runtime "Release"
|
||||
buildoptions "/MD"
|
||||
optimize "on"
|
Reference in New Issue
Block a user