summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 578b3f0f3..6d0aa648a 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -642,6 +642,19 @@ function target:fileconfig(sourcefile)
return filesconfig[sourcefile]
end
+-- set the config info to the given source file
+function target:fileconfig_set(sourcefile, info)
+
+ -- get files config
+ local filesconfig = self._FILESCONFIG or {}
+
+ -- set config info
+ filesconfig[sourcefile] = info
+
+ -- update files config
+ self._FILESCONFIG = filesconfig
+end
+
-- get the source files
function target:sourcefiles()