Fix premake script copying compile commands on windows (#24)

* Test new premake config for compile_commands on windows

* Update premake config to call into cmd
This commit is contained in:
F1ssi0N 2018-03-21 21:43:58 +00:00 committed by GitHub
parent 39f3880c14
commit fd9f56c58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,5 +72,10 @@ workspace "doghook"
"{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
"{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json"
}
filter {}
filter "system:windows"
postbuildcommands {
"cmd.exe /c \"" .. "{MKDIR} %{wks.location}/compile_commands/",
"cmd.exe /c \"" .. "{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json",
"cmd.exe /c \"" .. "{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json*"
}