diff --git a/configure.meson b/configure.meson new file mode 100755 index 00000000..ab4d8666 --- /dev/null +++ b/configure.meson @@ -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"