diff options
| author | ruki <[email protected]> | 2019-02-12 22:42:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-12 10:12:48 +0800 |
| commit | 960c3dc469aaa27746c0a2174f235bd32ce390ff (patch) | |
| tree | 04a5aec448b8624302c46cb01719f1d260694785 /xmake/includes/check_ctypes.lua | |
| parent | d7194331ea134b0e1b54a5e09a59824b9c399d83 (diff) | |
improve check_xxx
Diffstat (limited to 'xmake/includes/check_ctypes.lua')
| -rw-r--r-- | xmake/includes/check_ctypes.lua | 12 |
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 |
