File: README.md

package info (click to toggle)
libtcod 1.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,844 kB
  • sloc: ansic: 23,322; cpp: 20,694; python: 4,410; makefile: 182; sh: 67
file content (46 lines) | stat: -rw-r--r-- 1,570 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
If you need to, download Scons from http://scons.org/pages/download.html

This builder automatically downloads SDL2 on Windows and Mac as needed.
On Linux you must install SDL2 'the Unix way' or by installing the libsdl2-dev
package before running this script.

On Windows you will need an installation of Microsoft Visual Studio or MinGW.

To test this SCons script you can use the `build` alias, which will build
libtcod and all samples without touching any files outside of this
subdirectory:

```
scons build
```

SCons can compile faster using multiple cores, use the`-j <threads>` flag.

To build and install libtcod and all sample programs into the root libtcod
folder, use the `develop` alias.  The default mode is `MODE=DEBUG`, so you'll
also need to change `MODE` if you want a release build:

```
scons develop MODE=RELEASE
```

If you only need to work with the libtcod shared library you can use
`develop_libtcod` instead.

The compiled binaries will be 32-bit by default.
You can compile 64-bit binaries with the `ARCH=x86_64` variable:

```
scons develop MODE=RELEASE ARCH=x86_64
```

On Mac this script will always make a universal build, ignoring `ARCH`.

Windows has the option of using the MSVC compiler (default) or MinGW compiler.
To use MinGW set the `TOOLSET=mingw` variable.

A packaged release can be made with the `dist` alias.

Additional variables can be changed such as the compiler and linker flags.  The
easiest way to change these options is by editing `config.py`.
To see an additional list of extra variables you should run `scons -h`.