Quick hack to watch my source and rebuild.

master
Zed A. Shaw 8 months ago
parent f44a08f099
commit e7efc197a1
  1. 1
      sfmldemo/main.cpp
  2. 12
      sfmldemo/watch_build.sh

@ -8,7 +8,6 @@
#include <SFML/Window/Event.hpp>
int main() {
fmt::print("Setting up a window for you...\n");
sf::RenderWindow window(sf::VideoMode(1920, 1080), "ImGui + SFML = <3");

@ -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…
Cancel
Save