Merge pull request #4387 from ricardoquesada/build_type_conf

Reports wether the build is DEBUG or RELEASE
This commit is contained in:
Ricardo Quesada 2013-11-26 14:37:33 -08:00
commit 4a59cc6297
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}