summaryrefslogtreecommitdiff
path: root/xmake/includes/check_ctypes.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-12 22:42:08 +0800
committerruki <[email protected]>2019-02-12 10:12:48 +0800
commit960c3dc469aaa27746c0a2174f235bd32ce390ff (patch)
tree04a5aec448b8624302c46cb01719f1d260694785 /xmake/includes/check_ctypes.lua
parentd7194331ea134b0e1b54a5e09a59824b9c399d83 (diff)
improve check_xxx
Diffstat (limited to 'xmake/includes/check_ctypes.lua')
-rw-r--r--xmake/includes/check_ctypes.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/includes/check_ctypes.lua b/xmake/includes/check_ctypes.lua
index a6178c7c0..8bed250b9 100644
--- a/xmake/includes/check_ctypes.lua
+++ b/xmake/includes/check_ctypes.lua
@@ -44,6 +44,12 @@ function check_ctypes(definition, types, opt)
if opt.cxflags then
add_cxflags(opt.cxflags)
end
+ if opt.defines then
+ add_defines(opt.defines)
+ end
+ if opt.includes then
+ add_cincludes(opt.includes)
+ end
option_end()
add_options(optname)
end
@@ -70,6 +76,12 @@ function configvar_check_ctypes(definition, types, opt)
if opt.cxflags then
add_cxflags(opt.cxflags)
end
+ if opt.defines then
+ add_defines(opt.defines)
+ end
+ if opt.includes then
+ add_cincludes(opt.includes)
+ end
option_end()
add_options(optname)
end