File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed
Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ curl_name='curl'
2+ curl_version='8.13.0'
3+ curl_url='https://github.com/curl/curl.git'
4+ curl_hash='1c3149881769e7bd79b072e48374e4c2b3678b2f'
5+ curl_args=()
6+
7+ ## Build Steps
8+ curl_setup() {
9+ if [ ! -d "curl" ]; then
10+ git clone ${curl_url}
11+ else
12+ git -C curl fetch
13+ fi
14+ git -C curl reset --hard "$curl_hash"
15+ curl_args=(
16+ -DBUILD_CURL_EXE:BOOL=OFF
17+ -DBUILD_TESTING:BOOL=OFF
18+ -DCURL_USE_LIBPSL=OFF
19+ -DCURL_USE_LIBSSH2:BOOL=OFF
20+ -DCURL_USE_SCHANNEL:BOOL=ON
21+ -DCURL_ZLIB:BOOL=OFF
22+ )
23+ }
24+
25+ curl_clean() {
26+ echo "Todo"
27+ }
28+
29+ curl_patch() {
30+ echo "No patching to perform"
31+ }
32+
33+ curl_build() {
34+ if [[ $envName = windows-arm64 ]]; then
35+ curl_args+=("-A ARM64")
36+ else
37+ curl_args+=("-A x64")
38+ fi
39+
40+ cd curl
41+ mkdir -p build
42+ pushd build
43+
44+ echo ${config}
45+
46+ echo ${curl_args}
47+
48+ cmake .. "${curl_args[@]}" -G "Visual Studio 17 2022"
49+ cmake --build . --config ${config}
50+
51+ popd
52+ cd ..
53+ }
54+
55+ curl_install() {
56+ mkdir -p ares-deps/lib
57+ mkdir -p ares-deps/include/curl
58+ mkdir -p ares-deps/licenses/curl
59+ cp -R build_temp/curl/build/lib/${config}/libcurl.dll ares-deps/lib/libcurl.dll
60+ cp -R build_temp/curl/build/lib/${config}/libcurl.pdb ares-deps/lib/libcurl.pdb
61+ cp -R build_temp/curl/build/lib/${config}/libcurl_imp.exp ares-deps/lib/libcurl.exp
62+ cp -R build_temp/curl/build/lib/${config}/libcurl_imp.lib ares-deps/lib/libcurl.lib
63+ mkdir -p ares-deps/include/curl
64+ cp -R build_temp/curl/include/curl/. ares-deps/include/curl/
65+ cp -R build_temp/curl/LICENSES/. ares-deps/licenses/curl/
66+ }
You can’t perform that action at this time.
0 commit comments