Re: XCode 2.1: Custom projects
Re: XCode 2.1: Custom projects
- Subject: Re: XCode 2.1: Custom projects
- From: James Bucanek <email@hidden>
- Date: Fri, 25 Nov 2005 09:55:15 -0700
Franco Milicchio wrote on Friday, November 25, 2005:
>I've used XCode with satisfaction using stand-alone projects (I
>cannot make CVS/SSH work properly), and I was wondering if it's
>possible to use XCode for projects which have nothing to do with
>programming...
In general, I'd say that non-programming tasks would be a poor fit for Xcode since it is, fundamentally, a program development tools. Having said that ...
>Is it possible to create a XCode ``environment'' (build, error
>checking, syntax and so on) for, let's say, LaTeX? Is there any
>documentation about it?
I think you want to look into are custom build rules. The Compile Sources phase of a target takes the files added to that phase and compiles them. The definition of "compiles" is controlled by a list of rules. You can write rules like:
Any filename matching *.xyz gets compiled with XYZcc and produces a file named *.xobj
Basically, each rule detemines how a particular file type is compiled and what it produces. The product of that rule is fed back into the rules again until there are no more rules that match. This lets you add pre-processors and such that produce intermediate source files, which in turn get compiled on the next pass.
So if you have a LaTeX --> .pdf workflow, you could create a rule that took a .tex file and turns it into a .pdf file. Add the source .tex files to the target and build it.
--
James Bucanek
_______________________________________________
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