Seeking Suggestions for Template Projects
Seeking Suggestions for Template Projects
- Subject: Seeking Suggestions for Template Projects
- From: Rush Manbert <email@hidden>
- Date: Wed, 14 Jun 2006 10:18:03 -0700
I am trying to set up the development environment for a new project. We
will be writing quite a few BSD static libraries, and we want their
project configurations to be standardized. We have a config file scheme
and some example libraries.
I have created a dummy project that is configured using our standards.
It has a target that generates the docs and a target that builds the
library.
I have been experimenting with making this into a project template by
putting a copy in the proper folder. Then it appears in the selection
panel when I select New Project from the Xcode menus. (Thanks to James
Bucanek for describing this. I finally bought your book in order to get
the section about customizing Xcode, but it's not here yet. :-)
I have a few questions, and I'm looking for guidance from anyone who has
gone down this path as a user, and from the Apple guys.
1) Is there any advantage to making an "official" project template by
copying the project directory to the magic location over just leaving
the original in your source tree and copying/renaming it when you want a
new library project? I can write a script that copies and renames, and
it saves the Mac developers from needing to install the project template
directory.
2) Since my project template contains a named target that builds the
library, I will want to rename the target when I make a new project. I
will also want to change the product name build setting. Is there any
programmatic way to do that other than AppleScript?
3) My "build the library" target build settings are based on a Xcode
config file (actually 2 - one for Debug and another for Release) that is
in the project directory. We name the config files for the target, so I
will need to change the config file name and set the "based on" setting
for the target. Do I need AppleScript to do the target setting?
4) Given the issues raised in questions 2 and 3, would I be better off
to have a project template that had no "build the library" target and
write a separate target template that added what I need? Can I write an
AppleScript that uses the target template to add the target to the
project? (I have never used AppleScript.)
Thanks in advance,
Rush
_______________________________________________
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