Re: Automatically adding new files to the project
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