From 021dbcbeb15cf6f0231b13feabeddfa7c4cb6700 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 28 Sep 2010 21:22:04 +0000 Subject: [PATCH] LCL: added linker options for dawrin git-svn-id: trunk@27519 - --- lcl/interfaces/lcl1.lpk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lcl/interfaces/lcl1.lpk b/lcl/interfaces/lcl1.lpk index e8e86e3442..6217e5fb53 100644 --- a/lcl/interfaces/lcl1.lpk +++ b/lcl/interfaces/lcl1.lpk @@ -39,10 +39,25 @@ end else if LCLWidgetType1='fpgui' then begin else fpGUIPlatform := 'x11'; end; + CustomOptions := '-dfpgui'+fpGUIPlatform; UnitPath := base+'gui;' +base+'corelib;' +base+'corelib/'+fpGUIPlatform; IncPath := UnitPath; +end; + +// linker options +if TargetOS='darwin' then begin + if LCLWidgetType1='gtk' then + UsageLinkerOptions := '-Fl/usr/X11R6/lib -Fl/sw/lib' + else if LCLWidgetType1='gtk2' then + UsageLinkerOptions := '-Fl/usr/X11R6/lib -Fl/sw/lib -Fl/sw/lib/pango-ft219/lib' + else if LCLWidgetType1='carbon' then begin + UsageLinkerOptions := '-k-framework -kCarbon' + +' -k-framework -kOpenGL' + +' -k''-dylib_file'' -k''/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'''; + end else if LCLWidgetType1='cocoa' then + UsageLinkerOptions := '-k-framework -kCocoa'; end;"/>