diff options
| author | ruki <[email protected]> | 2018-05-19 21:59:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-19 21:59:23 +0800 |
| commit | e657f348e658d91255fd01d347faf74ccafdfa4e (patch) | |
| tree | 6c346192ba7fd18b0671664b47c36d90d47b7f5b /xmake/core | |
| parent | ccbd73d46319fb9f71eae878aa7ca3845747e1e5 (diff) | |
add win sdk rules
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/project/target.lua | 13 |
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() |
