Moved to waf for build system: #3690

This closes #3690 because waf fulfills that requirement, moving the .c's to a separate directory.  waf also gives us incremental builds, so -j4 is back.
This commit is contained in:
Jim Nelson 2011-06-27 14:55:22 -07:00
parent 41faa36103
commit 328683ecfb
22 changed files with 268 additions and 226 deletions

76
wscript Normal file
View file

@ -0,0 +1,76 @@
#! /usr/bin/env python
# encoding: utf-8
#
# Copyright 2011 Yorba Foundation
# the following two variables are used by the target "waf dist"
VERSION = '0.0.0+trunk'
APPNAME = 'geary'
# these variables are mandatory ('/' are converted automatically)
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('vala')
def configure(conf):
conf.load('compiler_c vala')
conf.check_cfg(
package='glib-2.0',
uselib_store='GLIB',
atleast_version='2.28.8',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='gio-2.0',
uselib_store='GIO',
atleast_version='2.28.0',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='gee-1.0',
uselib_store='GEE',
atleast_version='0.6.0',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='gtk+-2.0',
uselib_store='GTK',
atleast_version='2.22.0',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='unique-1.0',
uselib_store='UNIQUE',
atleast_version='1.0.0',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='sqlheavy-0.1',
uselib_store='SQLHEAVY',
atleast_version='0.0.1',
mandatory=1,
args='--cflags --libs')
conf.check_cfg(
package='gmime-2.4',
uselib_store='GMIME',
atleast_version='2.4.14',
mandatory=1,
args='--cflags --libs')
def build(bld):
bld.env.append_value('CFLAGS', ['-O2', '-g'])
bld.env.append_value('LINKFLAGS', ['-O2', '-g'])
bld.env.append_value('VALAFLAGS', ['-g', '--enable-checking', '--fatal-warnings'])
bld.recurse('src')