wscript 617 B

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