diff options
Diffstat (limited to 'qt-quick/Makefile')
| -rw-r--r-- | qt-quick/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/qt-quick/Makefile b/qt-quick/Makefile new file mode 100644 index 0000000..3132ab2 --- /dev/null +++ b/qt-quick/Makefile | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | all: nissyqt | ||
| 2 | |||
| 3 | build: | ||
| 4 | mkdir -p build | ||
| 5 | |||
| 6 | build/nissy.h: | ||
| 7 | cp ../nissy-core/cpp/nissy.h build/ | ||
| 8 | |||
| 9 | build/nissy.cpp: | ||
| 10 | cp ../nissy-core/cpp/nissy.cpp build/ | ||
| 11 | |||
| 12 | ../nissy-core/config.mk: | ||
| 13 | cd ../nissy-core && ./configure.sh | ||
| 14 | |||
| 15 | build/nissy.o: build ../nissy-core/config.mk | ||
| 16 | cd ../nissy-core && make nissy.o | ||
| 17 | cp ../nissy-core/nissy.o build/ | ||
| 18 | |||
| 19 | nissyqt: build/nissy.o build/nissy.h build/nissy.cpp | ||
| 20 | cmake . -B build | ||
| 21 | cd build && make | ||
| 22 | cp build/appnissyqt ./run | ||
| 23 | |||
| 24 | run: | ||
| 25 | QT_LOGGING_RULES="*.debug=true; qt.*.debug=false" ./run | ||
| 26 | |||
| 27 | clean: | ||
| 28 | rm -rf run build | ||
| 29 | |||
| 30 | .PHONY: all nissyqt run clean | ||
