You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/playground/gdbus/wscript

25 lines
617 B
Python

#! /usr/bin/env python
# encoding: utf-8
# Copyright Garmin International or its subsidiaries, 2018
VERSION = '1.0'
def options(opt):
opt.load('compiler_c')
def configure(conf):
conf.load('compiler_c gdbus')
conf.check_cfg(package='gio-2.0', args='--cflags --libs')
conf.check_cfg(package='gio-unix-2.0', args='--cflags --libs')
conf.check_cfg(package='glib-2.0', args='--cflags --libs')
def build(bld):
tg = bld.program(
includes = '.',
source = bld.path.ant_glob('*.c'),
target = 'gnome-hello',
use = 'GIO-2.0 GIO-UNIX-2.0 GLIB-2.0')
tg.add_gdbus_file('test.xml', 'test_prefix', 'glib_server')