-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
visual studio: environment vars in paths? #24
Comments
not sure about the environment variables. do you see the value come through in the generated project? also where is the SDK located typically on the HD? |
hi jeff, first, the project generator doesn't use the install.xml at all actually, it just parses the addons folder by file structure, so you might be working in vain here. it's not that it can't (that code is written and tested) it's just that the linux way of doing things has been file structure related and so many addons don't have install.xml done or done properly. The basic logic of the PG is: recursively scan the src folder, and add paths to include and src to the project this is probably not enough, and it leads to some ugly hacks like this: https://github.com/ofZach/projectGeneratorSimple/blob/master/src/utils/Utils.cpp#L333-345 so we obviously need to re think this... we can either go a few different routes -- one is the libsorder.make route, which would mean adding more text files that get parsed, sometimes in the context: or sometimes more globally. Another solution might be to have an optional install.xml, which helps override or augment some settings from the file structure parsing. the key parts of the addon parsing are here: https://github.com/ofZach/projectGeneratorSimple/blob/master/src/addons/ofAddon.cpp
I know this isn't an answer, but I hope it helps. Curious what you think a good solution is.... |
ps: this is a fairly good template for the way we are parsing addons right now: https://github.com/benben/ofxAddonTemplate it obviously doesn't help for adding paths / libs outside of the addons folder itself, and the current setup probably won't work for you yet / needs to be expanded. |
I am trying to write an install.xml for a MS Kinect addon. It needs:
Here is what I have so far:
https://github.com/jefftimesten/ofxKinectNui/blob/master/install.xml
Are environment variables allowed? Are they filtered out as not valid paths somewhere? Or perhaps filtered out because they aren't in the addon directory? If so, is it too risky to allow linking to libraries outside of the oF directory?
I am about to start reading through visualStudioProject.cpp, but if anyone has any hints, I'd be much obliged.
The text was updated successfully, but these errors were encountered: