• 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: Automatically adding new files to the project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically adding new files to the project


  • Subject: Re: Automatically adding new files to the project
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 09 Sep 2011 14:51:52 -0700


On Sep 9, 2011, at 12:47 PM, Pavel Shevaev wrote:

Is it possible somehow to specify in Xcode project settings some sort
of glob _expression_ for a specific directory, e.g "*.h,*.cpp,*.mm,*.m"
? This way Xcode would automatically build files matching this
_expression_. In Make/CMake it's trivial to achieve but looks like not
in Xcode....

Nope. Two options:

(1) Xcode is scriptable, so you could write an AppleScript to add a new file to a project, and then invoke that from a command line.
(2) Google has an open-source tool called “gyp” (Generate Your Projects) that creates project files for several different IDEs including Xcode, as well as makefiles, from a single cross-platform JSON-like project definition. They use this in the Chrome build process. The .gyp files can use wildcard expressions for matching multiple source files. Might be overkill for your needs, though.

—Jens
 _______________________________________________
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: Automatically adding new files to the project
      • From: Pavel Shevaev <email@hidden>
References: 
 >Automatically adding new files to the project (From: Pavel Shevaev <email@hidden>)

  • Prev by Date: Re: Block variable syntax related question
  • Next by Date: Re: Block variable syntax related question
  • Previous by thread: Automatically adding new files to the project
  • Next by thread: Re: Automatically adding new files to the project
  • Index(es):
    • Date
    • Thread