File: window_gtk_mix_compile.sh

package info (click to toggle)
castle-game-engine 6.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 194,520 kB
  • sloc: pascal: 364,585; ansic: 8,606; java: 2,851; objc: 2,601; cpp: 1,412; xml: 851; makefile: 725; sh: 563; php: 26
file content (20 lines) | stat: -rwxr-xr-x 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -eu

# Call this script from this directory,
# or from base castle_game_engine directory.
# Or just do "make examples" in base castle_game_engine directory.

# Allow calling this script from it's dir.
if [ -f window_gtk_mix.lpr ]; then cd ../../; fi

# To make sure that CastleWindow unit is compiled with GTK2 backend
# (this is not the default on Windows).
make --quiet clean-window

fpc -dRELEASE @castle-fpc.cfg -dCASTLE_WINDOW_GTK_2 \
  examples/window/window_gtk_mix.lpr

# Allow other examples to be compiled by default with WinAPI backend
# (instead of GTK2).
make --quiet clean-window