diff options
| author | ruki <[email protected]> | 2023-03-21 00:51:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-21 00:51:51 +0800 |
| commit | 8d75606dbf979386ed314bcbc01ef38dcfa10a5e (patch) | |
| tree | d721550ba26c09ea267d9c35b9d6d04676678870 | |
| parent | a5fc88daed1349f4d3f0f6609e326231e2d213d8 (diff) | |
add check_msnippets for target
| -rw-r--r-- | xmake/core/project/target.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index f30807e7c..092c2b7fb 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2394,6 +2394,32 @@ function _instance:check_cxxsnippets(snippets, opt) return sandbox_module.import("lib.detect.check_cxxsnippets", {anonymous = true})(snippets, opt) end +-- check the given objc snippets? +-- +-- @param snippets the snippets +-- @param opt the argument options, e.g. {includes = "xxx.h", configs = {defines = ""}} +-- +-- @return true or false, errors +-- +function _instance:check_msnippets(snippets, opt) + opt = opt or {} + opt.target = self + return sandbox_module.import("lib.detect.check_msnippets", {anonymous = true})(snippets, opt) +end + +-- check the given objc++ snippets? +-- +-- @param snippets the snippets +-- @param opt the argument options, e.g. {includes = "xxx.h", configs = {defines = ""}} +-- +-- @return true or false, errors +-- +function _instance:check_mxxsnippets(snippets, opt) + opt = opt or {} + opt.target = self + return sandbox_module.import("lib.detect.check_mxxsnippets", {anonymous = true})(snippets, opt) +end + -- get project function target._project() return target._PROJECT |
