summaryrefslogtreecommitdiffstats
path: root/SConstruct
blob: 99f08b053ba521a136d1b94de2e2509d35f09780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /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")

#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')