From e6b972d4069fe63d66e59a94a789df1924e9215f Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 19 May 2016 22:30:41 +0000 Subject: Adjustments to premake.c to allow the debug version to run by default without --script, if the scripts are inside the src/ subfolder Adjustments to both premake.c and premake4.rc in order to allow overriding the version number Fix to path_translate which could end up modifying the keys of the table it iterated --HG-- branch : WDS-build --- premake4.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'premake4.lua') diff --git a/premake4.lua b/premake4.lua index f4887e7..1beadd0 100644 --- a/premake4.lua +++ b/premake4.lua @@ -41,7 +41,7 @@ do -- Name the project files after their VS version local orig_getbasename = premake.project.getbasename premake.project.getbasename = function(prjname, pattern) - -- The below is used to insert the .vs(8|9|10|11|12|14) into the file names for projects and solutions + -- The below is used to insert the .vs(8|9|10|11|12|14) into the file names for projects and solutions if _ACTION then name_map = {vs2005 = "vs8", vs2008 = "vs9", vs2010 = "vs10", vs2012 = "vs11", vs2013 = "vs12", vs2015 = "vs14"} if name_map[_ACTION] then @@ -88,9 +88,9 @@ end -- worry about the /scripts argument and all that. -- - solution "Premake4" - configurations { "Release", "Debug", "Publish" } - location ( _OPTIONS["to"] ) +solution "Premake4" + configurations { "Release", "Debug", "Publish" } + location ( _OPTIONS["to"] ) project "Premake4" local int_dir = "intermediate/" .. action .. "_$(" .. transformMN("Platform") .. ")_$(" .. transformMN("Configuration") .. ")" @@ -117,7 +117,10 @@ end "src/host/lua-5.1.4/src/print.c", "src/host/lua-5.1.4/**.lua", "src/host/lua-5.1.4/etc/*.c", - "src/host/hgtip.h" + "src/host/hgtip.h", + "packages/**", + "samples/**", + "tests/**", } configuration "Debug" @@ -142,7 +145,7 @@ end configuration {"windows", "Publish"} postbuildcommands { 'ollisign.cmd -a "$(TargetPath)" "https://bitbucket.org/windirstat/premake-stable" "premake4"' } - defines "HAVE_HGTIP" + defines { "HAVE_HGTIP", "PREMAKE_VERSION=4.4-wds"} configuration "linux or bsd" defines { "LUA_USE_POSIX", "LUA_USE_DLOPEN" } -- cgit v1.2.3