mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Add code generation on compiling to premake scripts using custom build commands
This commit is contained in:
@ -5,25 +5,32 @@ function ZoneCodeGenerator:include()
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:link()
|
||||
links {
|
||||
"ZoneCodeGenerator"
|
||||
}
|
||||
links "ZoneCodeGenerator"
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:use()
|
||||
dependson "ZoneCodeGenerator"
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneCodeGenerator"
|
||||
targetdir(TargetDirectoryBin)
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src/%{prj.name}"
|
||||
kind "ConsoleApp"
|
||||
language "C#"
|
||||
namespace "ZoneCodeGenerator"
|
||||
|
||||
files {
|
||||
path.join(folder, "ZoneCodeGenerator/**.cs")
|
||||
path.join(folder, "ZoneCodeGenerator/**.cs"),
|
||||
path.join(folder, "ZoneCodeGenerator/**.stg")
|
||||
}
|
||||
|
||||
filter "files:**.stg"
|
||||
buildaction "Embed"
|
||||
filter {}
|
||||
|
||||
vpaths { ["*"] = "src/ZoneCodeGenerator" }
|
||||
|
||||
nuget {
|
||||
|
Reference in New Issue
Block a user