openframeworks / projectGenerator

repo for centralizing work on a tool to generate OF projects
83 stars 76 forks source link

should filter source files to allowed extensions #17

Open arturoc opened 9 years ago

arturoc commented 9 years ago

i've had this problem only recently but i don't use the PG much except for creating empty projects so it might have been like this always.

when updating a project with exisiting source it should add only files with the allowed extensions:

right now it's adding anything in the folder and some files like .orig from merges from github or backup files from some editors get into the project file which makes the compilation fail.

ofZach commented 9 years ago

sure - for now, we've done this at the project level -- for example here's what we do on osx / ios:

https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxProjectGenerator/src/projects/xcodeProject.cpp#L587-L635

but we could do it when we recursively parse src (ie, before the project level):

https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxProjectGenerator/src/utils/Utils.cpp#L188

arturoc commented 9 years ago

i just got this creating a project for osx so even the check for the xcode project might be broken?

ofZach commented 9 years ago

very well could be !! let me dig into this...