-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsconstruct
37 lines (25 loc) · 1.09 KB
/
sconstruct
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
29
30
31
32
33
34
35
36
37
SConscript(['shaders/sconscript', 'input/sconscript'])
Default('driver')
import os
env = Environment(ENV = os.environ)
env.Append(CCFLAGS='-g')
binary = 'driver'
library_path = 'LD_LIBRARY_PATH=./input'
env.Program(binary, ['main.cpp', 'vulkandevice.cpp', 'particleengine.cpp'],
LIBS=['glfw', 'vulkan', 'evdev', 'inputmanager'],
LIBPATH=['input'])
test = env.Command('test', None, "LD_LIBRARY_PATH=./input ./driver")
test_debug = env.Command('test_debug', None,
"LD_LIBRARY_PATH=./input gdb ./driver")
test_input = env.Command('test_input', None,
"LD_LIBRARY_PATH=./input ./input/inputtest")
cachegrind = env.Command('cachegrind', None,
' '.join([library_path, 'valgrind --tool=cachegrind', './' + binary]))
callgrind = env.Command('callgrind', None,
' '.join([library_path, 'valgrind --tool=callgrind', './' + binary]))
Depends(binary, 'vulkanapp.h')
Depends(test, binary)
Depends(test_debug, binary)
Depends(test_input, 'input/inputtest')
Depends(cachegrind, binary)
Depends(callgrind, binary)