mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4387 from ricardoquesada/build_type_conf
Reports wether the build is DEBUG or RELEASE
This commit is contained in:
commit
4a59cc6297
|
@ -78,6 +78,12 @@ bool Configuration::init()
|
|||
_valueDict->setObject(Bool::create(true), "cocos2d.x.compiled_with_gl_state_cache");
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
_valueDict->setObject(String::create("DEBUG"), "cocos2d.x.build_type");
|
||||
#else
|
||||
_valueDict->setObject(String::create("RELEASE"), "cocos2d.x.build_type");
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue