-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathwscript
More file actions
46 lines (34 loc) · 1.54 KB
/
wscript
File metadata and controls
46 lines (34 loc) · 1.54 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
#! /usr/bin/env python
# encoding: utf-8
import os
top = '.'
out = '_build_'
def options(opt):
opt.load('python')
opt.tool_options('compiler_c')
opt.tool_options('vala')
opt.tool_options('gnu_dirs')
def configure(conf):
conf.load('compiler_c gnu_dirs')
conf.load('vala', funs='')
conf.load('python')
conf.load('glib2')
if not conf.env['GLIB_COMPILE_SCHEMAS']:
conf.fatal('glib-compile-schemas is required to validate and install the plugin GSettings schemas')
conf.env['PLUGINS_DIR'] = os.path.join(conf.env['LIBDIR'], 'diodon', 'plugins')
conf.check_vala(min_version=(0, 16, 0))
conf.check_cfg(package='diodon', uselib_store='DIODON', atleast_version='1.6.0', mandatory=1, args='--cflags --libs')
conf.check_cfg(package='libpeas-1.0', uselib_store='PEAS', atleast_version='1.1.0', mandatory=1, args='--cflags --libs')
conf.check_cfg(package='libpeas-gtk-1.0', uselib_store='PEASGTK', atleast_version='1.1.0', mandatory=1, args='--cflags --libs')
diodon_include_dir = '/usr/include/diodon'
if os.path.exists(os.path.join(diodon_include_dir, 'diodon.h')):
conf.env.append_unique('INCLUDES_DIODON', [diodon_include_dir])
conf.env['CFLAGS'] = ['-O0', '-g3', '-w']
conf.env['VALAFLAGS'] = ['-g', '-v', '--enable-checking']
def build(bld):
bld.add_subdirs('plugins/paste-all')
bld.add_subdirs('plugins/edit')
bld.add_subdirs('plugins/features')
bld.add_subdirs('plugins/numbers')
bld.add_subdirs('plugins/pop')
bld.add_subdirs('plugins/dbus-controller')