• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Integrating HeaderDoc into Xcode build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating HeaderDoc into Xcode build


  • Subject: Re: Integrating HeaderDoc into Xcode build
  • From: Graeme Mathieson <email@hidden>
  • Date: Wed, 19 Nov 2003 08:05:37 +0000

On 16 Nov 2003, at 08:54, Graeme Mathieson wrote:

So, is it possible to configure Xcode to automatically build the header documentation for my application at the same time (or even independently - I can cope with it being a separate target) as it builds the application itself?

To answer my own question, since maybe somebody else will find it in the archives:


Select the target you wish to build documentation for. Go to Project -> New Build Phase -> New Shell Script Build Phase on the menus. This will create a shell script which is run (from the top directory of your project) during the build. Bring up the inspector to insert the body of the script. I've done the following:

-- Shell script files build phase --
# Build fresh every time.
rm -rf doc/api/*

find . -name \*.h | xargs headerDoc2Html -o doc/api
gatherHeaderDoc doc/api
-- End --

This is not ideal, but it works for me (so far).

I cannot see how to use the 'Inputs' and 'Outputs' boxes on the inspector - I had been hoping to list the header files I wanted to generate documentation for there (and have doc/api/MasterTOC.html listed in the outputs) so that the phase wasn't run unnecessarily. As a bonus, it would be nice to get access to the inputs list from the script (either as an environment variable or command line arguments) to use that as the command line for headerDoc2Html instead of the find nonsense I currently have.

But, as I say, I can't figure out how to add items to either Inputs or Outputs. Any suggestions?
--
Mail, MSN Messenger & Jabber: mathie [at] endless [dot] org [dot] uk
AIM: MathieEndless, Blog: http://www.endless.org.uk/blog/
OpenPGP Fingerprint: 0F38 5000 999F 0644 76D6 968D A945 916E AD30 4A1A
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Integrating HeaderDoc into Xcode build (From: Graeme Mathieson <email@hidden>)

  • Prev by Date: zero link / multiple definitions of symbol error
  • Next by Date: Re: Distributed builds not working?
  • Previous by thread: Re: Integrating HeaderDoc into Xcode build
  • Next by thread: Setting document icon in Xcode
  • Index(es):
    • Date
    • Thread