diff options
| author | ruki <[email protected]> | 2019-02-17 22:18:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-18 10:09:01 +0800 |
| commit | 3d5bb63eab591dbb5f7ad9ac69894fe84e537751 (patch) | |
| tree | a7b4fde7b0d4b1b7cd7774525c1c8f3995d3b745 /xmake/core/project/target.lua | |
| parent | 8e9016cc9c2ff0ad97427d22c7ea6d7349e12e57 (diff) | |
add values for scope info
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 66ed1c331..607d57346 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -333,6 +333,11 @@ function target:get(name) end -- set the value to the target info +function target:set(name, ...) + self._INFO:apival_set(name, ...) +end + +--[[ function target:set(name_or_info, ...) -- set values to the given key? @@ -378,9 +383,14 @@ function target:set(name_or_info, ...) self:set(name, info) end end -end +end]] -- add the value to the target info +function target:add(name, ...) + self._INFO:apival_add(name, ...) +end + +--[[ function target:add(name_or_info, ...) -- add values to the given key? @@ -424,6 +434,7 @@ function target:add(name_or_info, ...) end end end +]] -- get user private data function target:data(name) |
