-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a38cf2
commit bdc4fb2
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
for repo in gst-plugins-rs; do | ||
pushd $repo | ||
|
||
# strip binaries in debug mode | ||
mv Cargo.toml Cargo.toml.old | ||
sed s,'\[profile.release\]','[profile.release]\nstrip="debuginfo"', Cargo.toml.old > Cargo.toml | ||
|
||
opts="-D prefix=/usr -D tests=disabled -D doc=disabled" | ||
|
||
if [[ $DEBUG == 'true' ]]; then | ||
if [[ $OPTIMIZATIONS == 'true' ]]; then | ||
opts="$opts -D buildtype=debugoptimized" | ||
else | ||
opts="$opts -D buildtype=debug" | ||
fi | ||
else | ||
opts="$opts -D buildtype=release -D b_lto=true" | ||
fi | ||
|
||
meson build $opts | ||
|
||
# This is needed for other plugins to be built properly | ||
ninja -C build install | ||
# This is where we'll grab build artifacts from | ||
DESTDIR=/compiled-binaries ninja -C build install | ||
popd | ||
done | ||
|
||
gst-inspect-1.0 |