Re: Converting a Makefile project to Xcode
Re: Converting a Makefile project to Xcode
- Subject: Re: Converting a Makefile project to Xcode
- From: "Adam Mercer" <email@hidden>
- Date: Tue, 12 Jun 2007 22:56:04 -0400
On 12/06/07, Fritz Anderson <email@hidden> wrote:
Let me open the bidding with a couple of dumb questions...
Umbrella question: Have you determined that it will be too hard to do
by hand?
At the moment the Makefile is very complicated (as it handles building
on virtually every platform you can think of), so it would be hard to
do by hand. Although looking at in more detail I should be able to
simplify it quite a bit... then doing it by hand should be a lot
simpler.
Create a new Xcode project for the intended end product of your
build. Add the whole source tree to the project. Does that do the
right thing? Xcode goes a surprisingly long way just by inference.
Okay, so you have intermediate products, like libraries. For Library
X, add a target for the library, select all the sources for it
(simultaneously), open an Info window and change the target for those
files from End Product to Library X. Repeat for each library. If your
source tree was organized so each library had its own source
directory, all you'd have to do is select the relevant folder in the
Groups & Files view.
Each library has its own compiler flags? Each target has its own
build settings. Checking all the boxes could get tedious. You could
cheat and set the "extra flags" entries to match your flag strings.
Or it might be easier to drag all the Xcode settings into an xcconfig
file, edit that, and base the target settings on the contents of the
file. (Look up xcconfig by doing a text search on that string in the
Xcode Help window.)
But your case is probably much harder than I suppose.
Thanks, I'll give that a go.
Cheers
Adam
_______________________________________________
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