mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-27 20:03:01 +00:00
Update build scripts
This commit is contained in:
@@ -60,9 +60,11 @@ FIND_PACKAGE(Threads REQUIRED)
|
||||
TARGET_LINK_LIBRARIES(subconverter ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
PKG_CHECK_MODULES(LIBEVENT libevent>=2.1.10 REQUIRED)
|
||||
FIND_PATH(LIBEVENT_INCLUDE_DIR NAMES event.h PATHS ${LIBEVENT_INCLUDE_DIRS})
|
||||
FIND_LIBRARY(LIBEVENT_LIBRARY NAMES event PATHS ${LIBEVENT_LIBRARY_DIRS})
|
||||
LINK_DIRECTORIES(${LIBEVENT_LIBRARY_DIRS})
|
||||
INCLUDE_DIRECTORIES(${LIBEVENT_INCLUDE_DIR})
|
||||
TARGET_LINK_LIBRARIES(subconverter ${LIBEVENT_LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES(subconverter ${LIBEVENT_LIBRARY})
|
||||
|
||||
FIND_PACKAGE(CURL 7.54.0 REQUIRED IMPORTED_TARGET)
|
||||
LINK_DIRECTORIES(${CURL_LIBRARY_DIRS})
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -xe
|
||||
|
||||
apk add gcc g++ build-base linux-headers cmake make autoconf automake libtool python2
|
||||
apk add mbedtls-static zlib-dev rapidjson-dev libevent-dev libevent-static zlib-static pcre2-dev
|
||||
apk add mbedtls-dev mbedtls-static zlib-dev rapidjson-dev libevent-dev libevent-static zlib-static pcre2-dev
|
||||
|
||||
git clone https://github.com/curl/curl --depth=1
|
||||
cd curl
|
||||
|
||||
Reference in New Issue
Block a user