summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-09 16:27:44 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-09 16:27:44 +0200
commiteea1edfec2a10f698b52e76d77ae865cb40aed9d (patch)
tree050860dc545e149aa457e3adadc2669a62afd87d /src
parentdb7ab7192557a4fb8816ecbdead7e06f1e236652 (diff)
downloadfpGUI-eea1edfec2a10f698b52e76d77ae865cb40aed9d.tar.xz
A quick script to allow cross-compiling from Linux to Win32.
This script contains paths related to my system. I'll see if I can generalize it a bit more in future. I'm pretty new to cross compiling with FPC.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/buildcrosswin32.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/buildcrosswin32.sh b/src/buildcrosswin32.sh
new file mode 100755
index 00000000..f6ad1a1c
--- /dev/null
+++ b/src/buildcrosswin32.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# NOTE: Cross compiling is from Linux to Windows 32-bit only
+
+CROSSFPC=/opt/fpc_2.2.5/win32/lib/fpc/2.2.5/ppcross386
+
+#fpctarget=`$CROSSFPC -iTP`-`fpc -iTO`
+#echo $fpctarget
+
+#libpath='../lib/'$fpctarget
+libpath='../lib/i386-win32'
+
+# Must we create the output directory?
+if [ ! -d $libpath ]; then
+ echo 'creating directory: '$libpath
+ mkdir $libpath
+ echo ' '
+fi
+
+$CROSSFPC -Twin32 dRELEASE -dGDI @extrafpc.cfg corelib/gdi/fpgui_toolkit.pas