Hi,
So I’ve seen this come up a number of times already and not found anyone with a solution to it. When including a header from LmbrCentral it seems everyone is using relative includes, which should be avoided. For example:
There has to be a better way of doing this. A number of Gems with such includes broke between versions because the relative include path changed. Shouldn’t the VS Solution have LmbrCentral as an Include Directory by default, or am I missing something?
should be able to use the includes declaration in the wscript by using bld.Path but I cant find the LmbrCentral folder to make use of it as a suggestion to avoid it. Where is the LmbrCentral includes folder anyway?
But, referring to my other post, I am not clear what the workflow for a Gem is exactly (independent from a project), and from a Gems’ header/source file, the path to LmbrCentral must be relative.
Well, I had done something similar when CryMovie migrated into Maestro.
In my game’s gem wscript’s includes definition i added “bld.Path(‘Gems/Maestro/Code/Source’)” to be able to use source code in that is in maestro.
But any gem that uses the “Include” folder within it’s Code folder should have it exposed.
Though since I did have some issues, that I got help with, when trying to use another gem’s includes I’ve had to use the gem.json’s Dependencies definition in order to be able to use another gem’s includes.
I believe the Dependencies definition is your best bet for that.