Re: Bundling bundles in framework
Re: Bundling bundles in framework
- Subject: Re: Bundling bundles in framework
- From: Stefan Urbanek <email@hidden>
- Date: Sun, 14 May 2006 03:03:33 +0200
Hi,
Excuse me for replying to myself. I have found a solution, however I
am not sure whether it is clean:
I have added a target Package with two "Copy Files" build phases, one
for Modules and the other fo Languages. Properties (in the info-
panel) for the phases were:
Destination: Wrapper
Subpath: StepTalk.framework/Modules (.../Languages for the other)
Next, I have created another aggregate target called "Umbrella
Package" which depends on two targets: All and Package. Now it looks
like it does what I wanted and I end up with following dirs and files:
..../Library/Frameworks/StepTalk.framework
Headers@ -> Versions/Current/Headers
Languages/
Modules/
Resources@ -> Versions/Current/Resources
StepTalk@ -> Versions/Current/StepTalk
Versions/
Even I have what I wanted, I am afraid about two things:
1. I think that the Languages and Modules should go to the
StepTalk.framework/Versions/Current directory.Is it as simple as
using "Subpath" parameter of the Copy Files build phase to
StepTalk.framework/Versions/Current? What about missing symlinks?
2. Is it OK to use StepTalk.framework in the "Subpath" parameter of
the Copy Files phase? Should not there by some variable used instead?
If yes, then which one? Each variable looks like it is target
dependent. Is there a way to get something like "main target"?
Regards,
Stefan Urbanek
On 12.5.2006, at 9:28, Stefan Urbanek wrote:
Hi,
I am developing a framework that uses various plug-in bundles of
different
kinds. Currently I install default bundles into Library directory.
However I
would like to pack the default bundles inside the framework for not
polluting
other places with default installation.
The XCode project contains 5 targets:
StepTalk - framework
Smalltalk - bundle
Foundation - bundle
ObjectiveC - bundle
All - aggregate that contains all other four targets.
What I want to achieve is:
StepTalk.framework
Contents
Languages
Smalltalk.stlanguage
Modules
Foundation.bundle
ObjectiveC.bundle
...other files...
The structure does not have to be deep, it can be flat, that is,
without the
Languages and Modules directories.
For packing the bundles inside the Framework I tried to add "copy
files" build
phase into the All target:
All
- StepTalk
- Smalltalk
- Foundation
- ObjectiveC
- Copy Files
-- Smalltalk
-- Foundation
-- ObjectiveC
When I tried to build the target I got 3 errors of the same kind
for all three
bundles: target depends on itself.
What I am doing wrong? How can I pack and install bundles inside
the framework
bundle?
Thanks for any hints.
Regards,
Stefan Urbanek
--
http://stefan.agentfarms.net
First they ignore you, then they laugh at you, then they fight you,
then
you win.
- Mahatma Gandhi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40agentfarms.net
This email sent to email@hidden
Stefan Urbanek
--
http://stefan.agentfarms.net
First they ignore you, then they laugh at you, then they fight you,
then you win.
- Mahatma Gandhi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden