~nnutter/diodon/plugin-rapid-paste

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
#! /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')
    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.0.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')


def build(bld):
    bld.add_subdirs('plugins/rapid-paste')