|
Lines 14-20
Link Here
|
| 14 |
|
14 |
|
| 15 |
|
15 |
|
| 16 |
def establish_options(env): |
16 |
def establish_options(env): |
| 17 |
opts = Options('options_cache.py') |
17 |
opts = Variables('options_cache.py') |
| 18 |
opts.Add("CXXFLAGS", "Manually add to the CXXFLAGS", "-g") |
18 |
opts.Add("CXXFLAGS", "Manually add to the CXXFLAGS", "-g") |
| 19 |
opts.Add("LINKFLAGS", "Manually add to the LINKFLAGS", "-g") |
19 |
opts.Add("LINKFLAGS", "Manually add to the LINKFLAGS", "-g") |
| 20 |
if isDarwinPlatform: |
20 |
if isDarwinPlatform: |
|
Lines 23-32
Link Here
|
| 23 |
opts.Add("INSTALLDIR", "Installation Directory", "/usr/local/share") |
23 |
opts.Add("INSTALLDIR", "Installation Directory", "/usr/local/share") |
| 24 |
opts.Add("BINDIR", "Binary Installation Directory", "/usr/local/bin") |
24 |
opts.Add("BINDIR", "Binary Installation Directory", "/usr/local/bin") |
| 25 |
opts.Add("DATADIR", "Directory where data will be put, set to the same as INSTALLDIR", "/usr/local/share") |
25 |
opts.Add("DATADIR", "Directory where data will be put, set to the same as INSTALLDIR", "/usr/local/share") |
| 26 |
opts.Add(BoolOption("release", "Build for release", 0)) |
26 |
opts.Add(BoolVariable("release", "Build for release", 0)) |
| 27 |
opts.Add(BoolOption("profile", "Build with profiling on", 0)) |
27 |
opts.Add(BoolVariable("profile", "Build with profiling on", 0)) |
| 28 |
opts.Add(BoolOption("mingw", "Build with mingw enabled if not auto-detected", 0)) |
28 |
opts.Add(BoolVariable("mingw", "Build with mingw enabled if not auto-detected", 0)) |
| 29 |
opts.Add(BoolOption("server", "Build only the YOG server, excluding the game and any GUI/sound components", 0)) |
29 |
opts.Add(BoolVariable("server", "Build only the YOG server, excluding the game and any GUI/sound components", 0)) |
| 30 |
opts.Add("font", "Build the game using an alternative font placed in the data/font folder", "sans.ttf") |
30 |
opts.Add("font", "Build the game using an alternative font placed in the data/font folder", "sans.ttf") |
| 31 |
Help(opts.GenerateHelpText(env)) |
31 |
Help(opts.GenerateHelpText(env)) |
| 32 |
opts.Update(env) |
32 |
opts.Update(env) |