add physics macro to global in publish, set cannon to default (#4660)

This commit is contained in:
jiaxin.lai
2019-06-20 16:19:59 +08:00
committed by Weiliang Wang
parent 9bf1bd286c
commit dcbd593001
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ const _global = typeof window === 'undefined' ? global : window;
// tslint:disable: no-string-literal;
if (typeof _global.CC_PHYSICS_CANNON === 'undefined') {
_global.CC_PHYSICS_CANNON = false;
_global.CC_PHYSICS_CANNON = true;
}
if (typeof _global.CC_PHYSICS_AMMO === 'undefined') {
@@ -12,7 +12,7 @@ if (typeof _global.CC_PHYSICS_AMMO === 'undefined') {
}
if (typeof _global.CC_PHYSICS_BUILT_IN === 'undefined') {
_global.CC_PHYSICS_BUILT_IN = true;
_global.CC_PHYSICS_BUILT_IN = false;
}
// Cannon
+3
View File
@@ -164,6 +164,9 @@ if (CC_BUILD) {
_global.CC_QQPLAY = CC_QQPLAY;
_global.CC_RUNTIME = CC_RUNTIME;
_global.CC_SUPPORT_JIT = CC_SUPPORT_JIT;
_global.CC_PHYSICS_BUILT_IN = CC_PHYSICS_BUILT_IN;
_global.CC_PHYSICS_CANNON = CC_PHYSICS_CANNON;
_global.CC_PHYSICS_AMMO = CC_PHYSICS_AMMO;
}
else {
defineMacro('CC_TEST', defined('tap') || defined('QUnit'));