mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 14:39:13 +02:00
LCL: Simplifies the setup to compile lcl-fpgui. Issue #24168, patch from Graeme
git-svn-id: trunk@40667 -
This commit is contained in:
parent
dc58fc0884
commit
e4fb69076a
@ -1,25 +1,43 @@
|
|||||||
The Lazarus svn does not contain the fpGUI sources.
|
|
||||||
You can get the fpGUI sources with
|
|
||||||
|
|
||||||
git (State may 2010):
|
fpGUI Toolkit
|
||||||
--------------------------------
|
=============
|
||||||
Using GIT: git clone git://fpgui.git.sourceforge.net/gitroot/fpgui/fpgui
|
|
||||||
Web access: http://sourceforge.net/projects/fpgui/files/
|
|
||||||
|
|
||||||
Copy or link directories
|
The official fpGUI website is:
|
||||||
<fpGUI dir>/src/gui ⇒ lazarus/lcl/interfaces/fpgui/gui
|
|
||||||
<fpGUI dir>/src/corelib ⇒ lazarus/lcl/interfaces/fpgui/corelib
|
http://fpgui.sourceforge.net
|
||||||
<fpGUI dir>/src/VERSION_FILE.inc ⇒ lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc
|
|
||||||
|
|
||||||
|
Getting the source code
|
||||||
|
-----------------------
|
||||||
|
The Lazarus svn does not contain the fpGUI sources. You can get the
|
||||||
|
fpGUI sources via the fpGUI Git repository as follows:
|
||||||
|
|
||||||
|
git clone git://git.code.sf.net/p/fpgui/code fpgui-code
|
||||||
|
|
||||||
|
...or you can download a zip archive of the latest code, using
|
||||||
|
the mirror repository on GitHub.
|
||||||
|
|
||||||
|
https://github.com/graemeg/fpGUI/archive/master.zip
|
||||||
|
|
||||||
|
|
||||||
|
Setup to compile LCL-fpGUI
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Option 1)
|
||||||
|
Copy the 'src' directory from the fpGUI sources into your Lazarus
|
||||||
|
directory as follows:
|
||||||
|
|
||||||
|
<fpgui>/src/ ⇒ <lazarus>/lcl/interfaces/fpgui/src/
|
||||||
|
|
||||||
|
Option 2)
|
||||||
|
Use your file systems's symbolic linking function to simply link
|
||||||
|
the fpGUI src directory to the correct location in Lazarus.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
cd /opt/lazarus/lcl/interfaces/fpgui
|
||||||
|
ln -s /path/to/fpgui/src src
|
||||||
|
|
||||||
For example via symlinks:
|
|
||||||
cd lazarus/lcl/interfaces/fpgui
|
|
||||||
export FPGUI_DIR=/path/to/fpgui
|
|
||||||
rm -f corelib gui VERSION_FILE.inc
|
|
||||||
ln -s $FPGUI_DIR/src/gui .
|
|
||||||
ln -s $FPGUI_DIR/src/corelib .
|
|
||||||
ln -s $FPGUI_DIR/src/VERSION_FILE.inc .
|
|
||||||
|
|
||||||
For more details see:
|
For more details see:
|
||||||
http://wiki.lazarus.freepascal.org/fpGUI_Interface
|
http://wiki.freepascal.org/fpGUI_Interface
|
||||||
|
|
||||||
Current code tested using fpgui 0.7.rc2
|
|
||||||
|
@ -47,15 +47,16 @@ end else if LCLWidgetType='wince' then begin
|
|||||||
end else if LCLWidgetType='fpgui' then begin
|
end else if LCLWidgetType='fpgui' then begin
|
||||||
if undefined(fpGUIPlatform) then begin
|
if undefined(fpGUIPlatform) then begin
|
||||||
if SrcOS='win32' then
|
if SrcOS='win32' then
|
||||||
fpGUIPlatform := 'gdi'
|
fpGUIPlatform := 'gdi;'
|
||||||
else
|
else
|
||||||
fpGUIPlatform := 'x11';
|
fpGUIPlatform := 'x11;';
|
||||||
end;
|
end;
|
||||||
CustomOptions := ' -dfpgui'+fpGUIPlatform;
|
CustomOptions := ' -dfpgui'+fpGUIPlatform;
|
||||||
UnitPath := base+'gui;'
|
UnitPath := base+'src/gui;'
|
||||||
+base+'corelib;'
|
+base+'src/corelib;'
|
||||||
+base+'corelib/'+fpGUIPlatform;
|
+base+'src/corelib/'+fpGUIPlatform
|
||||||
IncPath := UnitPath;
|
+base+'src/corelib/reportengine;';
|
||||||
|
IncPath := UnitPath+base+'src;';
|
||||||
end else if LCLWidgetType='customdrawn' then begin
|
end else if LCLWidgetType='customdrawn' then begin
|
||||||
UnitPath := base+'android;';
|
UnitPath := base+'android;';
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user