Adjust build scripts after updates
This commit is contained in:
parent
c7a73215c6
commit
21f5e861bb
6 changed files with 79 additions and 37 deletions
|
@ -10,17 +10,27 @@ ffbuild_enabled() {
|
|||
ffbuild_dockerbuild() {
|
||||
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sratom
|
||||
cd sratom
|
||||
git submodule update --init --recursive --depth 1
|
||||
|
||||
local mywaf=(
|
||||
mkdir build && cd build
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
--static
|
||||
--no-shared
|
||||
--buildtype=release
|
||||
--default-library=static
|
||||
-Ddocs=disabled
|
||||
-Dtests=disabled
|
||||
)
|
||||
|
||||
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
|
||||
./waf -j$(nproc)
|
||||
./waf install
|
||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
||||
myconf+=(
|
||||
--cross-file=/cross.meson
|
||||
)
|
||||
else
|
||||
echo "Unknown target"
|
||||
return -1
|
||||
fi
|
||||
|
||||
sed -i 's/Cflags:/Cflags: -DSRATOM_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sratom-0.pc
|
||||
meson "${myconf[@]}" ..
|
||||
ninja -j"$(nproc)"
|
||||
ninja install
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue