summaryrefslogtreecommitdiff
path: root/src/buildcrosslinux32.sh
blob: 1c900532fb336d87b7d6d46314dca7b5cb96fd50 (plain)
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
47
48
49
50
51
#!/bin/bash
###########################################################################
# NOTE:  
#  Cross compiling is from Linux 64-bit to Linux 32-bit only.
#
#  This is really only for my testing purposes so I can quickly test 
#  other platforms and targets
#
###########################################################################

CROSSFPC=/opt/fpc_2.4.1/i386-linux/bin/fpc

#fpctarget=`$CROSSFPC -iTP`-`fpc -iTO`
#echo $fpctarget

#libpath='../lib/'$fpctarget
unitpath='../lib/i386-linux'
# Must we create the output directory?
if [ ! -d $unitpath ]; then
  echo 'creating directory: '$unitpath
  mkdir $unitpath
  echo ' '
fi
# compile fpGUI Toolkit itself
echo 'compiling fpGUI Toolkit library'
$CROSSFPC -Tlinux -Pi386 -dRELEASE -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas
echo ' '

unitpath='../docview/src/units/i386-linux'
# Must we create the output directory for DocView?
if [ ! -d $unitpath ]; then
  echo 'creating directory: '$unitpath
  mkdir $unitpath
  echo ' '
fi
# compile the DocView (documentation viewer) application
echo 'compiling DocView'
$CROSSFPC -Tlinux -Pi386 -dRELEASE -dX11 @extrafpc.cfg -Fu../docview/components/richtext/ -FE$unitpath ../docview/src/docview.lpr
echo ' '

unitpath='../uidesigner/units/i386-linux'
# Must we create the output directory for DocView?
if [ ! -d $unitpath ]; then
  echo 'creating directory: '$unitpath
  mkdir $unitpath
  echo ' '
fi
# compile the UI Designer (visual form designer) application
echo 'compiling UIDesigner'
$CROSSFPC -Tlinux -Pi386 -dRELEASE -dX11 @extrafpc.cfg -FE$unitpath ../uidesigner/uidesigner.lpr
echo ' '