summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/apps/docedit/extrafpc.cfg5
-rw-r--r--examples/corelib/canvastest/extrafpc.cfg5
-rw-r--r--examples/corelib/eventtest/extrafpc.cfg5
-rw-r--r--examples/corelib/helloworld/extrafpc.cfg5
-rw-r--r--examples/gui/alignment/extrafpc.cfg5
-rw-r--r--examples/gui/bevel/extrafpc.cfg5
-rw-r--r--examples/gui/filedialog/extrafpc.cfg5
-rw-r--r--examples/gui/filegrid/extrafpc.cfg5
-rw-r--r--examples/gui/fontselect/extrafpc.cfg5
-rw-r--r--examples/gui/gridtest/extrafpc.cfg5
-rw-r--r--examples/gui/imgtest/extrafpc.cfg5
-rw-r--r--examples/gui/listviewtest/extrafpc.cfg5
-rw-r--r--examples/gui/menutest/extrafpc.cfg5
-rw-r--r--examples/gui/modalforms/extrafpc.cfg5
-rw-r--r--examples/gui/stdimages/extrafpc.cfg5
-rw-r--r--examples/gui/tabtest/extrafpc.cfg5
-rw-r--r--examples/gui/timertest/extrafpc.cfg5
-rw-r--r--examples/gui/timertest/timertest.lpi10
-rw-r--r--examples/readme.txt25
-rw-r--r--src/build.bat2
-rwxr-xr-xsrc/build.sh2
-rw-r--r--src/extrafpc.cfg (renamed from src/fpc.cfg)0
-rw-r--r--src/readme.txt33
23 files changed, 140 insertions, 17 deletions
diff --git a/examples/apps/docedit/extrafpc.cfg b/examples/apps/docedit/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/apps/docedit/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/corelib/canvastest/extrafpc.cfg b/examples/corelib/canvastest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/corelib/canvastest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/corelib/eventtest/extrafpc.cfg b/examples/corelib/eventtest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/corelib/eventtest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/corelib/helloworld/extrafpc.cfg b/examples/corelib/helloworld/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/corelib/helloworld/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/alignment/extrafpc.cfg b/examples/gui/alignment/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/alignment/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/bevel/extrafpc.cfg b/examples/gui/bevel/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/bevel/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/filedialog/extrafpc.cfg b/examples/gui/filedialog/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/filedialog/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/filegrid/extrafpc.cfg b/examples/gui/filegrid/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/filegrid/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/fontselect/extrafpc.cfg b/examples/gui/fontselect/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/fontselect/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/gridtest/extrafpc.cfg b/examples/gui/gridtest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/gridtest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/imgtest/extrafpc.cfg b/examples/gui/imgtest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/imgtest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/listviewtest/extrafpc.cfg b/examples/gui/listviewtest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/listviewtest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/menutest/extrafpc.cfg b/examples/gui/menutest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/menutest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/modalforms/extrafpc.cfg b/examples/gui/modalforms/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/modalforms/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/stdimages/extrafpc.cfg b/examples/gui/stdimages/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/stdimages/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/tabtest/extrafpc.cfg b/examples/gui/tabtest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/tabtest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/timertest/extrafpc.cfg b/examples/gui/timertest/extrafpc.cfg
new file mode 100644
index 00000000..073dc4b6
--- /dev/null
+++ b/examples/gui/timertest/extrafpc.cfg
@@ -0,0 +1,5 @@
+-FUunits
+-Fu../../../lib
+-Xs
+-XX
+-CX
diff --git a/examples/gui/timertest/timertest.lpi b/examples/gui/timertest/timertest.lpi
index 83628efb..4fc7e5cd 100644
--- a/examples/gui/timertest/timertest.lpi
+++ b/examples/gui/timertest/timertest.lpi
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="\"/>
+ <PathDelim Value="/"/>
<Version Value="5"/>
<General>
<Flags>
@@ -9,7 +9,7 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value=".\"/>
+ <IconPath Value="./"/>
<TargetFileExt Value=""/>
</General>
<VersionInfo>
@@ -23,7 +23,7 @@
<RunParams>
<local>
<FormatVersion Value="1"/>
- <LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
+ <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<RequiredPackages Count="1">
@@ -42,12 +42,12 @@
</ProjectOptions>
<CompilerOptions>
<Version Value="5"/>
- <PathDelim Value="\"/>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Other>
- <CustomOptions Value="-FUunits"/>
+ <CustomOptions Value="-FUunits
+"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
diff --git a/examples/readme.txt b/examples/readme.txt
new file mode 100644
index 00000000..80aaeee6
--- /dev/null
+++ b/examples/readme.txt
@@ -0,0 +1,25 @@
+
+ Compiling any of the examples from the Command Line
+ ===================================================
+
+You need to compile the fpGUI toolkit first as mentioned in
+the ../src/readme.txt file.
+
+I'll assume the fpc executable path has been setup so you can execute 'fpc'
+from any directory. Every project in the 'examples' directory has it's
+own extrafpc.cfg file. You only need to specify that config file and the
+project's main unit to compile it.
+
+The format is as follows:
+ fpc @extrafpc.cfg <project main unit>
+
+Example:
+ fpc @extrafpc.cfg docedit.lpr
+ or
+ fpc @extrafpc.cfg helloworld.pas
+
+
+ =======================================================
+
+
+
diff --git a/src/build.bat b/src/build.bat
index 47ac2df8..1fe4669e 100644
--- a/src/build.bat
+++ b/src/build.bat
@@ -1,2 +1,2 @@
-fpc @C:\Windows\fpc.cfg gui\fpgui_package.pas -dRELEASE -dGDI
+fpc @extrafpc.cfg gui\fpgui_package.pas -dRELEASE -dGDI
diff --git a/src/build.sh b/src/build.sh
index 68b7348a..b0aeae39 100755
--- a/src/build.sh
+++ b/src/build.sh
@@ -1,2 +1,2 @@
-fpc @~/.fpc.cfg gui/fpgui_package.pas -dRELEASE -dX11
+fpc @extrafpc.cfg gui/fpgui_package.pas -dRELEASE -dX11
diff --git a/src/fpc.cfg b/src/extrafpc.cfg
index ca911be1..ca911be1 100644
--- a/src/fpc.cfg
+++ b/src/extrafpc.cfg
diff --git a/src/readme.txt b/src/readme.txt
index 89952f92..6192fc1c 100644
--- a/src/readme.txt
+++ b/src/readme.txt
@@ -5,21 +5,21 @@
This is still a work in progress until I can find a suitable solution. I'm
not 100% satisfied with this, but it's a quick and dirty way to get things
to compile. I'll assume you have the 'fpc' executable setup in your PATH so it
-can be run from any location on your computer.
+can be run from any location on your computer. I'll also assume you global
+fpc.cfg file has been setup correctly so the FPC compiler can find the RTL and
+FCL units.
Under Linux run: build.sh
- This assumes that your global fpc.cfg file is located in you HOME directory
Under Windows run: build.bat
- This assumes that you global fpc.cfg file is located in C:\Windows\ directory.
-The fpc.cfg file located in this directory is combined with your global fpc.cfg
-file. The locat config file sets up all the required search and include paths
-to compile CoreLib and GUI directories.
+The extrafpc.cfg file located in this directory is combined with your global
+fpc.cfg file. The local extrafpc.cfg file sets up all the required search and
+include paths to compile CoreLib and GUI directories.
-All compiled units (*.o and *.ppu) are saved in the ../lib directory. This makes
-the search paths for you applications a little easier to setup.
+All compiled units (*.o and *.ppu) are saved in the ../lib directory. This
+makes the search paths for you applications a little easier to setup.
Building fpGUI using Lazarus
@@ -62,6 +62,21 @@ find all the fpGUI compiled units and source for you.
automatically include the paths to the fpGUI compiled units for you.
+ Compiling any of the examples from the Command Line
+ ===================================================
+
+You need to compile fpGUI first as mentioned above!
+Every project in the ../examples directory has it's own extrafpc.cfg file.
+You only need to specify that config file and the project unit to compile
+it.
+
+fpc @extrafpc.cfg <project unit>
+
+Example:
+ fpc @extrafpc.cfg docedit.lpr
+
+
+
Regards,
- Graeme -
@@ -70,5 +85,3 @@ Regards,
-
-