Debian Codegraph @

src/deprecated_library/castleengine_compile.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2 set -eu
3
4 # ----------------------------------------------------------------------------
5 # Compile the library.
6 #
7 # Executes the build tool, which in turn will execute FPC.
8 # The build tool searches for FPC on $PATH.
9 #
10 # Note that the compilation artifacts will be in ./castle-engine-output/ , and that's good,
11 # we want separate compilation artifacts (from other projects) to:
12 #
13 # 1. make sure that CastleWindow unit is compiled with LIBRARY backend,
14 # 2. make sure that every unit is recompiled with -fPIC (necessary for .so on x86_64).
15 # ----------------------------------------------------------------------------
16
17 # Never use cache, as it will likely contain CastleWindow with different backend, and units without -fPIC.
18 castle-engine cache-clean
19
20 castle-engine simple-compile \
21 --compiler-option=-fPIC \
22 --compiler-option=-dCASTLE_WINDOW_LIBRARY \
23 --verbose \
24 castleengine.lpr