Closed lukelutman closed 12 years ago
With this change the headers get copied into $(TARGET_BUILD_DIR)/include/VG when the project is built. Ideally, this would be $(TARGET_BUILD_DIR)/include/MonkVG, but that breaks when you include those headers in another project because the headers themselves use <vg/file.h>.
Would you be open to renaming the include/VG folder to include/MonkVG (all the include statements would also have to be updated to <MonkVG/file.h>)? It's a little more clear and consistent, especially from the point of view of another project that wants to use those headers.
I'm happy to make the changes and update MonkSVG to match :-)
Cool thanks. Hmmm... in regards to the "MonkVG" vs. "VG" include path, my hopes, dreams, and aspirations where that MonkVG could be used interchangeably with another OpenVG implementation. I understand the want to be consistent with how Apple names there libraries and header paths. Hmmm... a little resistant but don't think it would be that big of a deal...
That's a good point. It would still be api compatible though. Someone wanting to switch implementations would just have to change some include statements, which should just be a simple search/replace job :-)
Personally I would prefer to keep it as is but I can acquiesce on this without much looking back -- so if you send me a pull request I'll accepts it.
Thanks Micah. Pull request submitted :-)
Changed the 'Public Headers Folder Path' and changed the visibility of the headers so that xcode puts the public headers where other projects in the workspace can find them (other projects in the workspace no longer have to explicity add MonkVG to 'Header Search Paths').
See: http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules