Fix embed action for Premake 4.x executables

This commit is contained in:
Jason Perkins 2015-02-25 15:50:48 -05:00
parent 355b1b850a
commit 0ef03eb13a

View File

@ -103,3 +103,20 @@
value = "path", value = "path",
description = "Set the output location for the generated files" description = "Set the output location for the generated files"
} }
--
-- This new embed action is slightly hardcoded for the 4.x executable, and is
-- really only intended to get folks bootstrapped on to 5.x
--
newaction {
trigger = "embed",
description = "Embed scripts in scripts.c; required before release builds",
execute = function ()
_MAIN_SCRIPT_DIR = os.getcwd()
_SCRIPT_DIR = path.join(_MAIN_SCRIPT_DIR, "scripts")
dofile("scripts/embed.lua")
end
}