Mercurial > fife-parpg
comparison SConstruct @ 381:e00d9af76f0a
Removed the --release command line option and replaced it with --enable-debug. Release binaries are now built by default.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 12 Jan 2010 20:17:01 +0000 |
parents | 2a1259ce2b95 |
children | 81641655bc38 |
comparison
equal
deleted
inserted
replaced
380:2a1259ce2b95 | 381:e00d9af76f0a |
---|---|
1 import os, sys | 1 import os, sys |
2 import utils.scons.scons_utils as utils | 2 import utils.scons.scons_utils as utils |
3 from distutils.sysconfig import get_python_lib | 3 from distutils.sysconfig import get_python_lib |
4 | 4 |
5 _sep = os.path.sep | 5 _sep = os.path.sep |
6 | |
7 #************************************************************************** | |
8 #add any command line options here | |
9 #************************************************************************** | |
6 | 10 |
7 vars = Variables() | 11 vars = Variables() |
8 vars.Add(PathVariable('DESTDIR', | 12 vars.Add(PathVariable('DESTDIR', |
9 'Destination directory (prepended to prefix)', | 13 'Destination directory (prepended to prefix)', |
10 None, | 14 None, |
15 ENV = os.environ, | 19 ENV = os.environ, |
16 DESTDIR = '${DESTDIR}') | 20 DESTDIR = '${DESTDIR}') |
17 | 21 |
18 env.EnsureSConsVersion(1,2) | 22 env.EnsureSConsVersion(1,2) |
19 | 23 |
20 #************************************************************************** | 24 AddOption('--enable-debug', |
21 #add any command line options here | 25 dest='enable-debug', |
22 #************************************************************************** | 26 action="store_true", |
23 AddOption('--release', | 27 help='Builds the debug version of the binaries', |
24 dest='release', | |
25 action="store_true", | |
26 help='Builds the release version of the binaries', | |
27 default=False) | 28 default=False) |
28 | 29 |
29 AddOption('--disable-opengl', | 30 AddOption('--disable-opengl', |
30 dest='disable-opengl', | 31 dest='disable-opengl', |
31 action="store_true", | 32 action="store_true", |
77 help='Python module installation prefix') | 78 help='Python module installation prefix') |
78 | 79 |
79 #************************************************************************** | 80 #************************************************************************** |
80 #save command line options here | 81 #save command line options here |
81 #************************************************************************** | 82 #************************************************************************** |
82 if GetOption('release'): | 83 if GetOption('enable-debug'): |
84 debug = 1 | |
85 else: | |
83 debug = 0 | 86 debug = 0 |
84 else: | |
85 debug = 1 | |
86 | 87 |
87 if GetOption('disable-opengl'): | 88 if GetOption('disable-opengl'): |
88 opengl = 0 | 89 opengl = 0 |
89 else: | 90 else: |
90 opengl = 1 | 91 opengl = 1 |