Skip to content

Commit

Permalink
add linux prebuilt library
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh0502 committed Feb 22, 2021
1 parent 5c4ad74 commit 040853f
Show file tree
Hide file tree
Showing 121 changed files with 42,308 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build/curl/make_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PROJ=`pwd`
CURL_VERSION=curl-7.67.0
CURL_ROOT=$PROJ/$CURL_VERSION

do_make()
{
BUILD_DIR=$PROJ/build/linux
PREBUILT_DIR=$PROJ/prebuilt/linux
OPENSSL_ROOT=$PROJ/../openssl/prebuilt/linux
NGHTTP2_ROOT=$PROJ/../nghttp2/prebuilt/linux

mkdir -p $BUILD_DIR
(
cd $BUILD_DIR
cmake $CURL_ROOT \
-DCMAKE_INSTALL_PREFIX=$PREBUILT_DIR \
-DOPENSSL_ROOT_DIR=$OPENSSL_ROOT \
-DOPENSSL_INCLUDE_DIR=$OPENSSL_ROOT/include \
-DOPENSSL_CRYPTO_LIBRARY=$OPENSSL_ROOT/lib/libcrypto.a \
-DOPENSSL_SSL_LIBRARY=$OPENSSL_ROOT/lib/libssl.a \
-DNGHTTP2_INCLUDE_DIR=$NGHTTP2_ROOT/include \
-DNGHTTP2_LIBRARY=$NGHTTP2_ROOT/lib/libnghttp2.a \
-DUSE_NGHTTP2=ON \
-DHTTP_ONLY=ON \
-DCMAKE_USE_LIBSSH2=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=ON
)
cmake --build $BUILD_DIR --config Release --target install -j8
}

do_make
Binary file added build/curl/prebuilt/linux/bin/curl
Binary file not shown.
Loading

0 comments on commit 040853f

Please sign in to comment.