Re: pre processing problem xcode 2.1
Re: pre processing problem xcode 2.1
- Subject: Re: pre processing problem xcode 2.1
- From: Ronald Rood <email@hidden>
- Date: Wed, 15 Jun 2005 21:49:55 +0200
>Currently you have two choices:
>1) create a build rule that acts on *.pc files using a shell script
>2) add a custom shell script to process the *.pc files and then add
>the resulting .c files to your target so they get picked up.
Hi Scott,
1) in xcode 2.1 create a standard tools project (commandline tool)
2) in finder copy main.c to main.pc
3) in xcode create an aggregate target main.c
4) create a new rule for source files matching .pc with output files .c
with shell script cat ${INPUT_FILE_NAME} >${INPUT_FILE_BASE).c
5) make the main target depend from main.c
Build and see. It's not the most usefull project but I can't make it
simpler. In proc lots of code gets inserted giving a nice piece of extra
code in the .c file that needs to be compiled.
This did work in xcode 2.0
What error did I make ? (upgrade to 2.1 ;-))
Regards,
Ronald.
_______________________________________________
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