Debian Codegraph @

components/build.sh

raw
1 #!/bin/sh
2
3 set -e
4
5 # Compiling components
6
7 # Do not execute this script directly.
8 # This script is called from ../build.sh.
9
10 # Get processor architecture
11 if [ -z $CPU_TARGET ] ; then
12 export CPU_TARGET=$(fpc -iTP)
13 fi
14
15 # Generate PIC code
16 if [ "$CPU_TARGET" != "arm" ] ; then
17 if [ -f /etc/fpc.cfg ] ; then
18 cp /etc/fpc.cfg ./
19 echo "-fPIC" >> fpc.cfg
20 export PPC_CONFIG_PATH=$(pwd)
21 fi
22 fi
23
24 # Build components
25 basedir=$(pwd)
26 cd components
27 $lazbuild chsdet/chsdet.lpk $DC_ARCH
28 $lazbuild multithreadprocs/multithreadprocslaz.lpk $DC_ARCH
29 $lazbuild kascrypt/kascrypt.lpk $DC_ARCH
30 $lazbuild doublecmd/doublecmd_common.lpk $DC_ARCH
31 $lazbuild Image32/Image32.lpk $DC_ARCH
32 $lazbuild KASToolBar/kascomp.lpk $DC_ARCH
33 $lazbuild viewer/viewerpackage.lpk $DC_ARCH
34 $lazbuild gifanim/pkg_gifanim.lpk $DC_ARCH
35 $lazbuild synunihighlighter/synuni.lpk $DC_ARCH
36 $lazbuild virtualterminal/virtualterminal.lpk $DC_ARCH
37 cd $basedir
38
39 # Remove temporary file
40 if [ -f fpc.cfg ] ; then
41 rm -f fpc.cfg
42 export PPC_CONFIG_PATH=
43 fi