mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 10:58:16 +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):
|
||||
--------------------------------
|
||||
Using GIT: git clone git://fpgui.git.sourceforge.net/gitroot/fpgui/fpgui
|
||||
Web access: http://sourceforge.net/projects/fpgui/files/
|
||||
fpGUI Toolkit
|
||||
=============
|
||||
|
||||
Copy or link directories
|
||||
<fpGUI dir>/src/gui ⇒ lazarus/lcl/interfaces/fpgui/gui
|
||||
<fpGUI dir>/src/corelib ⇒ lazarus/lcl/interfaces/fpgui/corelib
|
||||
<fpGUI dir>/src/VERSION_FILE.inc ⇒ lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc
|
||||
The official fpGUI website is:
|
||||
|
||||
http://fpgui.sourceforge.net
|
||||
|
||||
|
||||
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:
|
||||
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
|
||||
if undefined(fpGUIPlatform) then begin
|
||||
if SrcOS='win32' then
|
||||
fpGUIPlatform := 'gdi'
|
||||
fpGUIPlatform := 'gdi;'
|
||||
else
|
||||
fpGUIPlatform := 'x11';
|
||||
fpGUIPlatform := 'x11;';
|
||||
end;
|
||||
CustomOptions := ' -dfpgui'+fpGUIPlatform;
|
||||
UnitPath := base+'gui;'
|
||||
+base+'corelib;'
|
||||
+base+'corelib/'+fpGUIPlatform;
|
||||
IncPath := UnitPath;
|
||||
UnitPath := base+'src/gui;'
|
||||
+base+'src/corelib;'
|
||||
+base+'src/corelib/'+fpGUIPlatform
|
||||
+base+'src/corelib/reportengine;';
|
||||
IncPath := UnitPath+base+'src;';
|
||||
end else if LCLWidgetType='customdrawn' then begin
|
||||
UnitPath := base+'android;';
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user