Skip to content

Commit 7da191b

Browse files
committed
Added expat build
1 parent eee2702 commit 7da191b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source <(curl -s https://raw.githubusercontent.com/pytgcalls/build-toolkit/refs/
44
require_venv
55

66
GLIB_VERSION=$(get_version "glib")
7+
EXPAT_VERSION=$(get_version "expat")
78

89
ARCH=$(uname -m)
910
if [[ "$ARCH" == "x86_64" ]]; then
@@ -13,11 +14,12 @@ else
1314
C_ARGS=""
1415
CPP_ARGS=""
1516
fi
16-
17+
build_and_install https://github.com/libexpat/libexpat.git "R_${EXPAT_VERSION//./_}" configure-static --prefix="$(pwd)/libexpat/build/" --setup-commands="cd expat" --cleanup-commands="cd .."
1718
build_and_install https://github.com/GNOME/glib.git "$GLIB_VERSION" meson-static --prefix="$(pwd)/glib/build/" --buildtype=plain -Dtests=false -Dc_args="$C_ARGS" -Dcpp_args="$CPP_ARGS"
1819

1920
mkdir -p artifacts/lib
2021
mkdir -p artifacts/include
2122
cp -r "$(pwd)"/glib/build/lib/*.a artifacts/lib/
23+
cp -r "$(pwd)"/libexpat/build/lib/*.a artifacts/lib/
2224
cp -r "$(pwd)"/glib/build/include/glib-2.0/* artifacts/include/
2325
cp "$(pwd)"/glib/build/lib/glib-2.0/include/glibconfig.h artifacts/include/

libraries.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
glib=2.84.0
2+
expat=2.7.1

0 commit comments

Comments
 (0)