diff options
Diffstat (limited to 'src/base/globals.lua')
-rw-r--r-- | src/base/globals.lua | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/src/base/globals.lua b/src/base/globals.lua index 99c8ac7..a0253b9 100644 --- a/src/base/globals.lua +++ b/src/base/globals.lua @@ -3,43 +3,43 @@ -- Global tables and variables, replacements and extensions to Lua's global functions. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- - - + + -- A top-level namespace for support functions premake = { } - + -- The list of supported platforms; also update list in cmdline.lua - premake.platforms = + premake.platforms = { - Native = - { + Native = + { cfgsuffix = "", }, - x32 = - { + x32 = + { cfgsuffix = "32", }, - x64 = - { + x64 = + { cfgsuffix = "64", }, - Universal = - { + Universal = + { cfgsuffix = "univ", }, - Universal32 = - { + Universal32 = + { cfgsuffix = "univ32", }, - Universal64 = - { + Universal64 = + { cfgsuffix = "univ64", }, - PS3 = - { + PS3 = + { cfgsuffix = "ps3", iscrosscompiler = true, nosharedlibs = true, @@ -51,8 +51,8 @@ iscrosscompiler = true, namestyle = "PS3", }, - Xbox360 = - { + Xbox360 = + { cfgsuffix = "xbox360", iscrosscompiler = true, namestyle = "windows", @@ -83,14 +83,14 @@ -- use the absolute path to the script file, to avoid any file name -- ambiguity if an error should arise _SCRIPT = path.getabsolute(fname) - + -- switch the working directory to the new script location local newcwd = path.getdirectory(_SCRIPT) os.chdir(newcwd) - + -- run the chunk. How can I catch variable return values? local a, b, c, d, e, f = builtin_dofile(_SCRIPT) - + -- restore the previous working directory when done _SCRIPT = oldfile os.chdir(oldcwd) @@ -110,9 +110,9 @@ return falseval end end - - - + + + -- -- A shortcut for including another "premake4.lua" file, often used for projects. -- @@ -131,14 +131,14 @@ print(string.format(msg, unpack(arg))) end - - + + -- -- An extension to type() to identify project object types by reading the -- "__type" field from the metatable. -- - local builtin_type = type + local builtin_type = type function type(t) local mt = getmetatable(t) if (mt) then @@ -148,4 +148,3 @@ end return builtin_type(t) end -
\ No newline at end of file |