summaryrefslogtreecommitdiff
path: root/src/build.sh
blob: 61c6ac2b7fba70a806048ca367bdba4357e598af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

fpcbin=fpc
fpctarget=`$fpcbin -iTP`-`$fpcbin -iTO`
#echo $fpctarget
libpath='../lib/'$fpctarget

# Must we create the output directory?
if [ ! -d $libpath ]; then
  echo 'creating directory: '$libpath
  mkdir $libpath
  echo ' '
fi

# Default build
$fpcbin -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas

# experimental AggPas-enabled Canvas under X11
#$fpcbin -dDEBUG -dX11 -dAGGCanvas @extrafpc.cfg corelib/x11/fpgui_toolkit.pas