mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-22 22:03:42 +00:00
Modernize C builds with offline dependencies and portable runtime helpers (#3050)
Bundle pinned offline dependencies, remove libcork/libipset and submodule requirements, and add portable runtime helpers with relocatable static/shared library installations.
Add Clang static build validation for Linux/musl, macOS and Windows, real TCP/UDP and SIP003 interoperability coverage, and recorded performance tradeoffs. All 21 hosted checks pass at the reviewed PR head 8d504e6218.
This commit is contained in:
+8
-12
@@ -1,18 +1,14 @@
|
||||
find_program(XMLTO_EXECUTABLE NAMES xmlto)
|
||||
find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc asciidoc.py)
|
||||
|
||||
# Opt-in doc build option
|
||||
if (NOT XMLTO_EXECUTABLE OR NOT ASCIIDOC_EXECUTABLE)
|
||||
option(WITH_DOC_MAN "Build manpage doc" OFF)
|
||||
else ()
|
||||
option(WITH_DOC_MAN "Build manpage doc" ON)
|
||||
endif ()
|
||||
|
||||
if (NOT ASCIIDOC_EXECUTABLE)
|
||||
option(WITH_DOC_HTML "Build html doc" OFF)
|
||||
else ()
|
||||
option(WITH_DOC_HTML "Build html doc" ON)
|
||||
endif ()
|
||||
option(WITH_DOC_MAN "Build manpage documentation" OFF)
|
||||
option(WITH_DOC_HTML "Build HTML documentation" OFF)
|
||||
if((WITH_DOC_MAN OR WITH_DOC_HTML) AND NOT ASCIIDOC_EXECUTABLE)
|
||||
message(FATAL_ERROR "Documentation generation requires asciidoc")
|
||||
endif()
|
||||
if(WITH_DOC_MAN AND NOT XMLTO_EXECUTABLE)
|
||||
message(FATAL_ERROR "Manpage generation requires xmlto")
|
||||
endif()
|
||||
|
||||
# NOTE For brew user, we have to setup this env var. see `brew info asciidoc'
|
||||
set(XMLTO_ENV)
|
||||
|
||||
Reference in New Issue
Block a user