I'd like to know the answer to this question as well. I've looked at the build files generated and found that EngineRoot is referenced as an environment variable:
But I'm not able to find where it's defined either. Could you please help with a direct answer to @ekowibowo's question?
I'm trying to use cocos2dx in a larger context where I already have existing parts of my game project (server, browser, common libs, test code, etc) being built using a Scons and would like to use the same to build the game client for which I've decided to use Cocos2dx.