[Vala] Using vala, libgda, and waf



I have a very very simple pet project I'm writing and I want to integrate some storage in a DB using libgda or GnomeDB (not real sure what it's official name is now). I've pasted the basics of the top of my wscript file. I cannot for the life of me figure out how to get waf to recognize libgda. I'm still on Fedora 15 so I only have up to libgda-4.0, which is fine, because if I can't get it to work having 5 won't help me any.

I've tried several different opts.load statements in the below code including "libgda", "libgda4", "libgda-4.0". Does anyone know what the right statement is???

===CODE===

import os
import waflib

top = '.'
out = 'build'

def options(opts):
    opts.load('compiler_c')
    opts.load('vala')
    opts.load('glib2')
    opts.load('libxml2')

def configure(conf):
    conf.check_vala((0, 14, 2))

    conf.check_cfg(
        package = 'glib-2.0',
        uselib_store = 'GLIB',
        atleast_version = '2.30.0',
        mandatory = True,
        args = '--cflags --libs')

===END CODE===



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]