From d44dae735ae5b94c06247c8ac41be3c3d4af658d Mon Sep 17 00:00:00 2001 From: James Touton Date: Tue, 7 Jul 2015 12:21:07 -0700 Subject: [PATCH] Add workspace property to files. --- src/base/fileconfig.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/base/fileconfig.lua b/src/base/fileconfig.lua index adf4703c..077ced80 100644 --- a/src/base/fileconfig.lua +++ b/src/base/fileconfig.lua @@ -55,9 +55,10 @@ environ.file = fcfg context.compile(fcfg) - fcfg.project = prj - fcfg.configs = {} - fcfg.abspath = fname + fcfg.project = prj + fcfg.workspace = prj.workspace + fcfg.configs = {} + fcfg.abspath = fname context.basedir(fcfg, prj.location) @@ -91,6 +92,7 @@ function fileconfig.addconfig(fcfg, cfg) local prj = cfg.project + local wks = cfg.workspace -- Create a new context object for this configuration-file pairing. -- The context has the ability to pull out configuration settings @@ -122,6 +124,7 @@ fsub.vpath = fcfg.vpath fsub.config = cfg fsub.project = prj + fsub.workspace = wks -- Set the context's base directory to the project's file system -- location. Any path tokens which are expanded in non-path fields