@@ -272,9 +272,6 @@ components=(
272
272
libcxx
273
273
libdispatch
274
274
libicu
275
- libxml2
276
- zlib
277
- curl
278
275
llbuild
279
276
lldb
280
277
static-foundation
@@ -2375,61 +2372,53 @@ for host in "${ALL_HOSTS[@]}"; do
2375
2372
LIBICU_BUILD_ARGS=()
2376
2373
fi
2377
2374
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"
2382
2378
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
2400
2382
fi
2401
2383
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
2409
2388
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
+ )
2414
2394
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"
2419
2401
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
2424
2405
fi
2425
2406
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
2431
2410
fi
2432
2411
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
+
2433
2422
if [[ " ${SKIP_CLEAN_FOUNDATION} " == " 0" ]]
2434
2423
then
2435
2424
# The Swift project might have been changed, but CMake might
0 commit comments