diff options
| author | ruki <[email protected]> | 2017-01-05 14:01:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-01-06 17:20:08 +0800 |
| commit | a79375f2e32977068e783ac4edf881bd6ccfaaaa (patch) | |
| tree | da7b5949cac05ee74f8b6e8fc74f2959666c6f65 /xmake/core/language/language.lua | |
| parent | 63463f04bee8ea369c2bbe0306f1e9316333f0dc (diff) | |
move some c/c++ apis to language
Diffstat (limited to 'xmake/core/language/language.lua')
| -rw-r--r-- | xmake/core/language/language.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua index 566b1ccdc..ad5c64367 100644 --- a/xmake/core/language/language.lua +++ b/xmake/core/language/language.lua @@ -231,18 +231,19 @@ function language.apis() os.raise(errors) end - -- merge apis for each language - local apis = {values = {}, pathes = {}} + local apis = {values = {}, pathes = {}, custom = {}} for name, instance in pairs(languages) do local instance_apis = instance:get("apis") if instance_apis then table.join2(apis.values, table.wrap(instance_apis.values)) table.join2(apis.pathes, table.wrap(instance_apis.pathes)) + table.join2(apis.custom, table.wrap(instance_apis.custom)) end end apis.values = table.unique(apis.values) apis.pathes = table.unique(apis.pathes) + apis.custom = table.unique(apis.custom) -- ok return apis |
