From df2fb37c6b83e82bf49e5c1d585a66d75e51b4e7 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Thu, 7 May 2015 15:07:27 -0400 Subject: [PATCH] Fix casing on generated external container functions (i.e. externalproject) --- src/base/api.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/base/api.lua b/src/base/api.lua index 7991d547..3e4a846f 100755 --- a/src/base/api.lua +++ b/src/base/api.lua @@ -1,7 +1,8 @@ -- -- api.lua -- Implementation of the solution, project, and configuration APIs. --- Copyright (c) 2002-2014 Jason Perkins and the Premake project +-- Author Jason Perkins +-- Copyright (c) 2002-2015 Jason Perkins and the Premake project -- local p = premake @@ -58,12 +59,15 @@ return c end - _G["external" .. containerName:capitalized()] = function(name) + _G["external" .. containerName] = function(name) local c = _G[containerName](name) c.external = true return c end + -- for backward compatibility + _G["external" .. containerName:capitalized()] = _G["external" .. containerName] + return class end @@ -75,12 +79,14 @@ -- scripts as external. --- - function includeExternal(fname) + function includeexternal(fname) api._isIncludingExternal = true include(fname) api._isIncludingExternal = nil end + includeExternal = includeexternal + ---