forked from abau/dilay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dilay.pro
28 lines (22 loc) · 851 Bytes
/
dilay.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CONFIG += debug_and_release
TEMPLATE = subdirs
SUBDIRS = lib app test
app.depends = lib
test.depends = lib
disable-test {
SUBDIRS -= test
}
disable-app {
SUBDIRS -= app
}
unix {
gdb.commands = gdb -ex run ./dilay_debug
valgrind.commands = valgrind ./dilay_debug &> valgrind.log
leak.commands = valgrind --leak-check=yes ./dilay_debug &> valgrind.log
format.CONFIG = recursive
copyright.commands = find $$SUBDIRS \\( -name "*.cpp" -o -name "*.hpp" -o -name "*.hs" \\) -print0 | \
xargs -0 sed -i 's/Copyright\ ©\ 2015-2017/Copyright\ ©\ 2015-2018/'
docker.commands = docker build -t dilay-$(IMAGE) unix/docker/$(IMAGE) && \
docker run --rm --mount type=bind,src=$$(PWD),dst=/dilay dilay-$(IMAGE)
QMAKE_EXTRA_TARGETS += gdb valgrind leak format copyright icon docker
}