File: wscript

package info (click to toggle)
libdesktop-agnostic 0.3.90-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,004 kB
  • ctags: 4,635
  • sloc: ansic: 30,148; python: 1,069; makefile: 24; xml: 12
file content (32 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download | duplicates (2)
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/python
# encoding: utf-8

NEEDS_GDK = ['test-desktop-entry', 'test-vfs-file']


def build_test_program(bld, name, suffix):
    test = bld.new_task_gen('cc', 'program')
    test.source = name + '.vala'
    if name in NEEDS_GDK:
        test.packages = 'gdk-2.0'
        test.uselib = 'GDK'
    if suffix == '':
        test.uselib_local = 'desktop-agnostic'
    else:
        test.uselib_local = 'desktop-agnostic-%s' % suffix
    test.vapi_dirs = '../libdesktop-agnostic'
    test.includes = '..'
    test.target = name
    test.install_path = ''


def build(bld):
    [build_test_program(bld, 'test-' + name, 'cfg')
     for name in ['color', 'config', 'config-bridge']]
    [build_test_program(bld, 'test-' + name, 'fdo')
     for name in ['desktop-entry']]
    [build_test_program(bld, 'test-' + name, 'vfs')
     for name in ['vfs-bookmarks-gtk', 'vfs-file', 'vfs-file-monitor',
                  'vfs-glob', 'vfs-trash', 'vfs-volume']]
    [build_test_program(bld, 'test-' + name, 'ui')
     for name in ['ui-color-button', 'ui-color-button-gtkbuilder']]