-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
executable file
·71 lines (56 loc) · 1.8 KB
/
wscript
File metadata and controls
executable file
·71 lines (56 loc) · 1.8 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/python
def set_options(opt):
print('\nSetting build options & flags...')
# We tell Waf we need a C++ compiler
opt.tool_options('compiler_cxx')
def init():
print('Initializing WAF build system...')
def configure(conf):
print('Configuring the build enviroment...')
conf.check_tool('compiler_cxx')
conf.check_cfg (package='gtkmm-2.4',at_least_version='2.0.0',args='--cflags --libs',uselib_store='GTKMM')
conf.check_cfg (package='jack',at_least_version='1.0.0',args='--cflags --libs',uselib_store='JACK')
def build(bld):
print('Building the sources to objects...')
bld.new_task_gen(
features = 'cxx cstaticlib',
source = 'automationwidget.cpp',
includes = '/usr/include',
uselib = 'GTKMM',
target = 'automationwidget',
export_dirs = '.' )
bld.new_task_gen(
features = 'cxx cstaticlib',
source = 'automationtrack.cpp',
includes = '/usr/include',
uselib = 'GTKMM JACK',
uselib_local= 'automationwidget',
target = 'automationtrack',
export_dirs = '.' )
bld.new_task_gen(
features = 'cxx cstaticlib',
source = 'jack.cpp',
includes = '/usr/include',
uselib = 'JACK GTKMM',
target = 'myjack',
export_dirs = '.' )
bld.new_task_gen(
features = 'cxx cprogram',
source = 'main.cpp',
includes = '/usr/include',
uselib = 'GTKMM',
uselib_local= 'automationtrack myjack',
target = 'test.out' )
def shutdown():
# this function can be used to copy files to the build directory.
# its a little advanced, but if your using Images or other files
# in your program, its worth knowing.
import os
import shutil
if os.path.isdir(os.path.join(os.getcwd(),'build/default')):
try:
shutil.copy2('automate.glade','build/default/automate.glade')
print('Copying new resouces...')
except:
print('Copying failed. Acces denied?')
print('shutting down')