wscript (617B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # Copyright Garmin International or its subsidiaries, 2018 4 5 VERSION = '1.0' 6 7 def options(opt): 8 opt.load('compiler_c') 9 10 def configure(conf): 11 conf.load('compiler_c gdbus') 12 conf.check_cfg(package='gio-2.0', args='--cflags --libs') 13 conf.check_cfg(package='gio-unix-2.0', args='--cflags --libs') 14 conf.check_cfg(package='glib-2.0', args='--cflags --libs') 15 16 def build(bld): 17 tg = bld.program( 18 includes = '.', 19 source = bld.path.ant_glob('*.c'), 20 target = 'gnome-hello', 21 use = 'GIO-2.0 GIO-UNIX-2.0 GLIB-2.0') 22 23 tg.add_gdbus_file('test.xml', 'test_prefix', 'glib_server') 24