gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework support in makefiles


From: Stefan Urbanek
Subject: Re: Framework support in makefiles
Date: Sun, 13 Jul 2003 23:21:00 +0200

Hi,

This was debated some time ago...

On 2003-07-03 14:09:35 +0200 Nicola Pero <address@hidden> wrote:


Hi,

How can I cleanly link to a framework with gnustep-make? Currently I am using
ADDITIONAL_*_LIBS = -lSomething. Why I am linking to a 'library' if I want to 
link to a 'framework'? (Yes, I know that a framework is in fact a library and 
there is a link to that library from Libraries directory).

Ok.  I see your point.  Maybe we could add support for a syntactic sugar
expression "-framework XXX"  which would simply automatically be rewritten
as "-lXXX" by which_lib if not running on Apple.


this 'sugar' would be nice. however, i do not think it is 'syntactic sugar' 
even if it is implemented as a wrapper around libs.
<snip>


I suppose something like
ADDITIONAL_TOOL_LIBS += -lFirstFramework

ADDITIONAL_INCLUDE_DIRS += -I../Frameworks/FirstFramework/derived_src

ADDITIONAL_LIB_DIRS += 
-L../Frameworks/FirstFramework/FirstFramework.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)

should make it.

This is not very nice if you have to link with more frameworks.

Would it be possible to add something like:

BUILD_FRAMEWORKS = -fFirstFramework
BUILD_FRAMEWORS_DIR = ../Frameworks/



It could be made easier I suppose.


Yes :-)

GNUstep framework support is more pain than pleasure, at this time :-( I think 
that libraries should be deprecated in the favour of frameworks, so users can 
do more testing of framework support.

Thanks for any simplification,

Stefan
--
http://urbanek.host.sk

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi






reply via email to

[Prev in Thread] Current Thread [Next in Thread]