discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Embedded Frameworks


From: Marcus Müller
Subject: Re: Embedded Frameworks
Date: Fri, 12 Mar 2004 16:11:17 +0100


On 10.03.2004, at 18:36, J.Aaron Pendergrass wrote:

Hello all,
I'm trying to make an application which uses an embedded framework (on Mac OS X the situation would be something like MyApp depends on myFramework which is located in MyApp.app/Contents/Frameworks/myFramework.framework). I have been scouring the available GNUmakefile documentation, and the makefile package itself, but have only found references to the existence of this behaviour on OS X, nothing about how to do it in a linux environment.
Is this possible?

Hi Aaron,

this is an interesting problem. There are a two solutions available, however. But basically, how do you plan to install the application? IMO embedded frameworks only make sense in a strictly defined environment like Mac OS X. On Mac OS X, installing an application is as easy as dragging it somewhere - or even launch it from a DMG file that you just downloaded.

On GNUstep the first problem is the layout of the GNUstep tree - flattened or not flattened.

1)
If it's not flattened then there's a shell script which - depending on the library combo and architecture - launches the appropriate executable. You could modify this shell script to include your "embedded frameworks" (which are libraries) in it's library search path by utilising the information that you have at launch time of the script (GNUstep environment, executable's directory). After that launching the application including referencing the embedded frameworks should work.

2)
If the GNUstep tree is flattened (which is now the default) you have to modify the executable to be a shell script and do as in 1), then launch the executable.

Both approaches should be easy to integrate with your Makefiles in after-<YOUR_TARGET>-all:.

The general question however remains: Is it possible to create binary packages for GNUstep at all? IMO this is only possible if you assume a default GNUstep installation - it will surely break with my installation which is not flattened. But it's probably reasonable to assume the default anyways.

Cheers,

  Marcus

--
Marcus Mueller  .  .  .  crack-admin/coder ;-)
Mulle kybernetiK  .  http://www.mulle-kybernetik.com
Current projects: finger znek@mulle-kybernetik.com





reply via email to

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