#! /usr/bin/env python

"""
help       -> scons -h
compile    -> scons
clean      -> scons -c
install    -> scons install
uninstall  -> scons -c install
configure  -> scons configure prefix=/tmp/ita debug=full extraincludes=/usr/local/include:/tmp/include prefix=/usr/local

Run from a subdirectory -> scons -u
The variables are saved automatically after the first run (look at cache/kde.cache.py, ..)
"""

###################################################################
# LOAD THE ENVIRONMENT AND SET UP THE TOOLS
###################################################################

## Load the builders in config
env = Environment(tools=['default', 'generic', 'kde', 'parser'], toolpath=['./', './bksys'])
env.KDEuse("environ rpath")

#env['DUMPCONFIG']=1

###################################################################
# SCRIPTS FOR BUILDING THE TARGETS
###################################################################
env.set_build_dir('src po', 'build')
env.xmlfile('config.bks')

###################################################################
# CONVENIENCE FUNCTIONS TO EMULATE 'make dist' and 'make distclean'
###################################################################
env.dist('wlassistant', '0.5.7')

