forked from DaveDavenport/SSHConf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
41 lines (32 loc) · 1.15 KB
/
wscript
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
#!/usr/bin/env python
VERSION = "11.7"
VERSION_MAJOR_MINOR = ".".join(VERSION.split(".")[0:1])
APPNAME = "sshconf"
srcdir = '.'
blddir = 'build'
def set_options(opt):
opt.tool_options('compiler_cc')
opt.tool_options('gnu_dirs')
def configure(conf):
conf.check_tool('compiler_cc vala gnu_dirs')
conf.check_cfg(package='glib-2.0', uselib_store='GLIB',
atleast_version='2.28.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='gtk+-3.0', uselib_store='GTK+',
atleast_version='3.0.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='gee-1.0', uselib_store='GEE',
atleast_version='0.6.0', mandatory=True, args='--cflags --libs')
def build(bld):
prog = bld(features='cc cprogram')
# name of the resulting program
prog.target = APPNAME
# Sources to use
prog.source = ['sshconf.vala',
'sshconf-entry.vala',
'sshconf-entry-model.vala',
'sshconf-editor.vala',
'sshconf-properties.vala']
# libraries to link against
prog.uselib = ['GTK+', 'GLIB', 'GEE']
# Vala packages to use
prog.vapi_dirs = ['./']
prog.packages = ['gtk+-3.0', 'gee-1.0', 'glue']