Skip to content

Commit 3edb2f5

Browse files
committed
build-script-impl: Remove libxml2, zlib, and curl from the list of components
1 parent 6e15909 commit 3edb2f5

File tree

1 file changed

+37
-48
lines changed

1 file changed

+37
-48
lines changed

utils/build-script-impl

Lines changed: 37 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@ components=(
272272
libcxx
273273
libdispatch
274274
libicu
275-
libxml2
276-
zlib
277-
curl
278275
llbuild
279276
lldb
280277
static-foundation
@@ -2375,61 +2372,53 @@ for host in "${ALL_HOSTS[@]}"; do
23752372
LIBICU_BUILD_ARGS=()
23762373
fi
23772374

2378-
if [[ ! "${SKIP_BUILD_LIBXML2}" ]]; then
2379-
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2380-
LIBXML2_HEADERS="${BASE_INSTALL_DIR}/usr/include/libxml2"
2381-
LIBXML2_LIBRARY="${BASE_INSTALL_DIR}/usr/lib/libxml2.a"
2375+
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2376+
LIBXML2_HEADERS="${BASE_INSTALL_DIR}/usr/include/libxml2"
2377+
LIBXML2_LIBRARY="${BASE_INSTALL_DIR}/usr/lib/libxml2.a"
23822378

2383-
if [[ -z "${DRY_RUN}" && ! -d "${LIBXML2_HEADERS}" ]]; then
2384-
echo "Error: '${LIBXML2_HEADERS}' does not exist" 1>&2
2385-
exit 1
2386-
fi
2387-
2388-
if [[ -z "${DRY_RUN}" && ! -e "${LIBXML2_LIBRARY}" ]]; then
2389-
echo "Error: '${LIBXML2_LIBRARY}' does not exist" 1>&2
2390-
exit 1
2391-
fi
2392-
2393-
LIBXML2_BUILD_ARGS=(
2394-
-DLIBXML2_INCLUDE_DIR:PATH="${LIBXML2_HEADERS}"
2395-
-DLIBXML2_LIBRARY:PATH="${LIBXML2_LIBRARY}"
2396-
-DLIBXML2_DEFINITIONS="-DLIBXML_STATIC"
2397-
)
2398-
else
2399-
LIBXML2_BUILD_ARGS=()
2379+
if [[ -z "${DRY_RUN}" && ! -d "${LIBXML2_HEADERS}" ]]; then
2380+
echo "Error: '${LIBXML2_HEADERS}' does not exist" 1>&2
2381+
exit 1
24002382
fi
24012383

2402-
if [[ ! "${SKIP_BUILD_ZLIB}" ]]; then
2403-
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2404-
ZLIB_HEADERS="${BASE_INSTALL_DIR}/usr/include"
2405-
# Note: On Windows, the spelling is 'zlibstatic.lib',
2406-
# so if this is ported to python, that case will need
2407-
# to be handled.
2408-
ZLIB_LIBRARY="${BASE_INSTALL_DIR}/usr/lib/libz.a"
2384+
if [[ -z "${DRY_RUN}" && ! -e "${LIBXML2_LIBRARY}" ]]; then
2385+
echo "Error: '${LIBXML2_LIBRARY}' does not exist" 1>&2
2386+
exit 1
2387+
fi
24092388

2410-
if [[ -z "${DRY_RUN}" && ! -d "${ZLIB_HEADERS}" ]]; then
2411-
echo "Error: '${ZLIB_HEADERS}' does not exist" 1>&2
2412-
exit 1
2413-
fi
2389+
LIBXML2_BUILD_ARGS=(
2390+
-DLIBXML2_INCLUDE_DIR:PATH="${LIBXML2_HEADERS}"
2391+
-DLIBXML2_LIBRARY:PATH="${LIBXML2_LIBRARY}"
2392+
-DLIBXML2_DEFINITIONS="-DLIBXML_STATIC"
2393+
)
24142394

2415-
if [[ -z "${DRY_RUN}" && ! -e "${ZLIB_LIBRARY}" ]]; then
2416-
echo "Error: '${ZLIB_LIBRARY}' does not exist" 1>&2
2417-
exit 1
2418-
fi
2395+
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2396+
ZLIB_HEADERS="${BASE_INSTALL_DIR}/usr/include"
2397+
# Note: On Windows, the spelling is 'zlibstatic.lib',
2398+
# so if this is ported to python, that case will need
2399+
# to be handled.
2400+
ZLIB_LIBRARY="${BASE_INSTALL_DIR}/usr/lib/libz.a"
24192401

2420-
ZLIB_BUILD_ARGS=(
2421-
-DZLIB_INCLUDE_DIR:PATH="${ZLIB_HEADERS}"
2422-
-DZLIB_LIBRARY:PATH="${ZLIB_LIBRARY}"
2423-
)
2402+
if [[ -z "${DRY_RUN}" && ! -d "${ZLIB_HEADERS}" ]]; then
2403+
echo "Error: '${ZLIB_HEADERS}' does not exist" 1>&2
2404+
exit 1
24242405
fi
24252406

2426-
if [[ ! "${SKIP_BUILD_CURL}" ]]; then
2427-
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2428-
CURL_BUILD_ARGS=(
2429-
-DCURL_DIR="${BASE_INSTALL_DIR}/usr/lib/cmake/CURL"
2430-
)
2407+
if [[ -z "${DRY_RUN}" && ! -e "${ZLIB_LIBRARY}" ]]; then
2408+
echo "Error: '${ZLIB_LIBRARY}' does not exist" 1>&2
2409+
exit 1
24312410
fi
24322411

2412+
ZLIB_BUILD_ARGS=(
2413+
-DZLIB_INCLUDE_DIR:PATH="${ZLIB_HEADERS}"
2414+
-DZLIB_LIBRARY:PATH="${ZLIB_LIBRARY}"
2415+
)
2416+
2417+
BASE_INSTALL_DIR="$(get_host_install_destdir ${host})"
2418+
CURL_BUILD_ARGS=(
2419+
-DCURL_DIR="${BASE_INSTALL_DIR}/usr/lib/cmake/CURL"
2420+
)
2421+
24332422
if [[ "${SKIP_CLEAN_FOUNDATION}" == "0" ]]
24342423
then
24352424
# The Swift project might have been changed, but CMake might

0 commit comments

Comments
 (0)