Skip to content

Commit

Permalink
[!] fix build error with xqc_build.sh (#386)
Browse files Browse the repository at this point in the history
* [!] fix build error with xqc_build.sh
  • Loading branch information
Kulsk authored Dec 13, 2023
1 parent 9e48b4d commit 20b163d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
11 changes: 0 additions & 11 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,6 @@ if(XQC_ENABLE_UNLIMITED)
endif()


if(XQC_ENABLE_TH3)
set(XQC_ENABLE_TUNNEL 1)
set(
TH3_SOURCES
"tunnel/tunnel_h3/th3_ctx.c"
"tunnel/tunnel_h3/th3_vconn.c"
)
endif()

)
endif()

if (XQC_NO_SHARED)
set(XQC_BINARY_TYPE STATIC)
Expand Down
13 changes: 10 additions & 3 deletions xqc_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ artifact_dir=$3

# boringssl is used as default
ssl_type="boringssl"
ssl_path=third_party/boringssl

ssl_path=$4

# if ssl_path is not defined, try to use the default path
if [ -z "$ssl_path" ] ; then
echo "ssl environment not specified"
ssl_path="`pwd`/third_party/boringssl"
echo "use default ssl path: $ssl_path"
fi

if [ ! -d "$ssl_path" ] ; then
echo "ssl environment not exists"
exit 0
fi

Expand All @@ -44,6 +49,8 @@ if [ x"$platform" == xios ] ; then
archs=${ios_archs[@]}
configures="-DSSL_TYPE=${ssl_type}
-DSSL_PATH=${ssl_path}
-DBORINGSSL_PREFIX=bs
-DBORINGSSL_PREFIX_SYMBOLS=$cur_dir/bssl_symbols.txt
-DDEPLOYMENT_TARGET=10.0
-DCMAKE_BUILD_TYPE=Minsizerel
-DXQC_ENABLE_TESTING=OFF
Expand Down

0 comments on commit 20b163d

Please sign in to comment.