summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-05-19 21:59:23 +0800
committerruki <[email protected]>2018-05-19 21:59:23 +0800
commite657f348e658d91255fd01d347faf74ccafdfa4e (patch)
tree6c346192ba7fd18b0671664b47c36d90d47b7f5b /xmake/core/project/target.lua
parentccbd73d46319fb9f71eae878aa7ca3845747e1e5 (diff)
add win sdk rules
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()