Skip to content

Commit

Permalink
add configure.meson script [#146]
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 7, 2023
1 parent ca9d7c5 commit 8ca98d2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions configure.meson
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if [ -f meson.build ]; then
echo -e "Create a build dir first:"
echo -e "\tmkdir build"
echo -e "\tcd build"
echo -e "\t../$(basename $0)"
echo "Bye!"
exit 0
fi

TOP=$(dirname "$0")
meson setup --native-file $TOP/fdpp/toolchain.ini \
--cross-file $TOP/fdpp/toolchain.ini \
--cross-file $TOP/fdpp/kernel/toolchain.ini \
--native-file $TOP/fdpp/kernel/toolchain.ini . $TOP --reconfigure
[ "$?" == "0" ] || exit 1

echo
echo "Done configure"
echo "Now run \"meson build --verbose\" to build"
echo "After that you can do \"sudo meson install\" to install"

0 comments on commit 8ca98d2

Please sign in to comment.