Update ccbuild to 2.3.13 which supports to override constant values in feature definition. (#18319)

* Update ccbuild to 2.3.12 which supports to override constant values in feature definition.

* Update ccbuild to 2.3.13
This commit is contained in:
James Chen
2025-02-12 14:07:12 +08:00
committed by GitHub
parent a02ff06c19
commit 905eb374dd
4 changed files with 41 additions and 9 deletions
+22 -4
View File
@@ -26,6 +26,9 @@
}, },
"3d": { "3d": {
"modules": ["3d"], "modules": ["3d"],
"overrideConstants": {
"USE_3D": true
},
"dependentAssets": [ "dependentAssets": [
"511d2633-09a7-4bdd-ac42-f778032124b3", "511d2633-09a7-4bdd-ac42-f778032124b3",
"5d45aa00-e064-4938-b314-4265f0c2258c", "5d45aa00-e064-4938-b314-4265f0c2258c",
@@ -68,6 +71,9 @@
}, },
"ui-skew": { "ui-skew": {
"modules": ["ui-skew"], "modules": ["ui-skew"],
"overrideConstants": {
"USE_UI_SKEW": true
},
"dependentModules": ["2d"] "dependentModules": ["2d"]
}, },
"ui": { "ui": {
@@ -159,7 +165,10 @@
"modules": ["video"] "modules": ["video"]
}, },
"xr": { "xr": {
"modules": ["xr"] "modules": ["xr"],
"overrideConstants": {
"USE_XR": true
}
}, },
"light-probe": { "light-probe": {
"modules": [ "light-probe" ] "modules": [ "light-probe" ]
@@ -259,7 +268,10 @@
"isNativeOnly": true "isNativeOnly": true
}, },
"meshopt": { "meshopt": {
"modules": [] "modules": [],
"overrideConstants": {
"CULL_MESHOPT": false
}
} }
}, },
"moduleOverrides": [{ "moduleOverrides": [{
@@ -722,13 +734,19 @@
"USE_3D": { "USE_3D": {
"comment": "An internal constant to indicate whether we're using 3d module.", "comment": "An internal constant to indicate whether we're using 3d module.",
"type": "boolean", "type": "boolean",
"value": true, "value": false,
"internal": true "internal": true
}, },
"USE_UI_SKEW": { "USE_UI_SKEW": {
"comment": "An internal constant to indicate whether we're using ui-skew module.", "comment": "An internal constant to indicate whether we're using ui-skew module.",
"type": "boolean", "type": "boolean",
"value": true, "value": false,
"internal": true
},
"USE_XR": {
"comment": "An internal constant to indicate whether we're using xr module.",
"type": "boolean",
"value": false,
"internal": true "internal": true
} }
}, },
+10
View File
@@ -118,6 +118,16 @@
"type": "string" "type": "string"
}, },
"type": "array" "type": "array"
},
"overrideConstants": {
"additionalProperties": {
"type": [
"number",
"boolean"
]
},
"description": "Constants to override when this feature is enabled. The overridden constants should be defined in cc.config.json.",
"type": "object"
} }
}, },
"required": [ "required": [
+8 -4
View File
@@ -13,7 +13,7 @@
"@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-class-properties": "^7.18.6",
"@cocos/box2d": "1.0.1", "@cocos/box2d": "1.0.1",
"@cocos/cannon": "1.2.8", "@cocos/cannon": "1.2.8",
"@cocos/ccbuild": "^2.3.10", "@cocos/ccbuild": "^2.3.13",
"@cocos/dragonbones-js": "^1.0.1" "@cocos/dragonbones-js": "^1.0.1"
}, },
"devDependencies": { "devDependencies": {
@@ -2063,9 +2063,13 @@
} }
}, },
"node_modules/@cocos/ccbuild": { "node_modules/@cocos/ccbuild": {
"version": "2.3.10", "version": "2.3.13",
"resolved": "https://registry.npmjs.org/@cocos/ccbuild/-/ccbuild-2.3.10.tgz", "resolved": "https://registry.npmjs.org/@cocos/ccbuild/-/ccbuild-2.3.13.tgz",
"integrity": "sha512-paleC8syjqEtxmH3PU5NaI87x/YJ1ANTZbQNENOZ3SY90nvhl6Vj6AkD8AcNnR96klUS0Sh2t5YbZkPGT7LDAQ==", "integrity": "sha512-NxMCiulV2M6Hy5xyVEz1brIXcDNA/m7XdjoZ2iVDrVgIi3z/8CZ/3ljG4v4j+8eQAuSPNvOugScLiIMkLvuWeg==",
"license": "MIT",
"workspaces": [
"./modules/*"
],
"dependencies": { "dependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.20.12",
"@babel/generator": "^7.22.10", "@babel/generator": "^7.22.10",
+1 -1
View File
@@ -81,7 +81,7 @@
"@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-class-properties": "^7.18.6",
"@cocos/box2d": "1.0.1", "@cocos/box2d": "1.0.1",
"@cocos/cannon": "1.2.8", "@cocos/cannon": "1.2.8",
"@cocos/ccbuild": "^2.3.10", "@cocos/ccbuild": "^2.3.13",
"@cocos/dragonbones-js": "^1.0.1" "@cocos/dragonbones-js": "^1.0.1"
} }
} }