Quick hack to watch my source and rebuild.
This commit is contained in:
parent
f44a08f099
commit
e7efc197a1
2 changed files with 12 additions and 1 deletions
|
@ -8,7 +8,6 @@
|
||||||
#include <SFML/Window/Event.hpp>
|
#include <SFML/Window/Event.hpp>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
fmt::print("Setting up a window for you...\n");
|
fmt::print("Setting up a window for you...\n");
|
||||||
|
|
||||||
sf::RenderWindow window(sf::VideoMode(1920, 1080), "ImGui + SFML = <3");
|
sf::RenderWindow window(sf::VideoMode(1920, 1080), "ImGui + SFML = <3");
|
||||||
|
|
12
sfmldemo/watch_build.sh
Executable file
12
sfmldemo/watch_build.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
fswatch -o *.cpp | while read num
|
||||||
|
do echo ">>>>>>>>>>>>>>>>>>>>>> `date`"
|
||||||
|
if meson compile -C builddir
|
||||||
|
then
|
||||||
|
./builddir/sfmldemo
|
||||||
|
else
|
||||||
|
echo "^^^^^^^^^^^^^^^^^^^^^ ERROR `date`"
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue