• 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: pre processing problem xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: pre processing problem xcode 2.1
      • From: David Ewing <email@hidden>
    • Re: pre processing problem xcode 2.1
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Xcode 2.1 problem with static variables
  • Next by Date: Re: XCode adding attributes causing error
  • Previous by thread: Re: pre processing problem xcode 2.1
  • Next by thread: Re: pre processing problem xcode 2.1
  • Index(es):
    • Date
    • Thread