llhttp: add v9.2.1 version (#5415)
* llhttp: add v9.2.1 version * http_parser: improve xmake.luapull/5231/merge
parent
5f4b081353
commit
dd6c45ee9e
3 changed files with 67 additions and 45 deletions
@ -0,0 +1,34 @@ |
||||
option("export_symbol", {default = false}) |
||||
|
||||
add_rules("mode.debug", "mode.release") |
||||
|
||||
target("llhttp") |
||||
set_kind("$(kind)") |
||||
add_files("src/*.c") |
||||
add_includedirs("include") |
||||
add_headerfiles("include/llhttp.h") |
||||
|
||||
if has_config("export_symbol") and is_kind("shared") and is_plat("windows") then |
||||
local funcs = { |
||||
"llhttp_init", |
||||
"llhttp_settings_init", |
||||
"llhttp_execute", |
||||
"llhttp_finish", |
||||
"llhttp_message_needs_eof", |
||||
"llhttp_should_keep_alive", |
||||
"llhttp_pause", |
||||
"llhttp_resume", |
||||
"llhttp_resume_after_upgrade", |
||||
"llhttp_get_errno", |
||||
"llhttp_get_error_reason", |
||||
"llhttp_set_error_reason", |
||||
"llhttp_get_error_pos", |
||||
"llhttp_errno_name", |
||||
"llhttp_method_name", |
||||
"llhttp_set_lenient_headers", |
||||
"llhttp_set_lenient_chunked_length" |
||||
} |
||||
for _, func in ipairs(funcs) do |
||||
add_shflags("/export:" .. func) |
||||
end |
||||
end |
Loading…
Reference in new issue