mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
9f79552c9e
* 添加新的模块配置方式 * update module confg * add render config * update render config * change entry to module, change module to feature * change IFeatures to Features * update * change mutex to multi
121 lines
3.5 KiB
JSON
121 lines
3.5 KiB
JSON
{
|
|
"$schema": "./schema.json",
|
|
"features": {
|
|
"base": {
|
|
"label": "Core",
|
|
"description": "Core module.",
|
|
"required": true,
|
|
"default": ["base"]
|
|
},
|
|
"graphcis": {
|
|
"label": "Graphcis API",
|
|
"description": "Graphcis API used by GFX. There can be more than one API existed.",
|
|
"default": ["gfx-webgl", "gfx-webgl2"],
|
|
"options": {
|
|
"gfx-webgl": {
|
|
"required": true,
|
|
"label": "WebGL 1.0",
|
|
"description": "The WebGL 1.0 is required whenever."
|
|
},
|
|
"gfx-webgl2": {
|
|
"label": "WebGL 2.0"
|
|
}
|
|
}
|
|
},
|
|
"ui": {
|
|
"default": ["ui"],
|
|
"label": "UI",
|
|
"description": "UI module"
|
|
},
|
|
"particle": {
|
|
"default": ["particle"],
|
|
"label": "Particle System",
|
|
"description": "Particle system module"
|
|
},
|
|
"physics": {
|
|
"multi": false,
|
|
"label": "Physics",
|
|
"description": "Physics(implementation).",
|
|
"default": ["physics-cannon"],
|
|
"options": {
|
|
"physics-ammo": {
|
|
"label": "ammo.js"
|
|
},
|
|
"physics-cannon": {
|
|
"label": "cannon.js"
|
|
},
|
|
"physics-builtin": {
|
|
"label": "builtin"
|
|
}
|
|
}
|
|
},
|
|
"physics-2d": {
|
|
"multi": false,
|
|
"label": "Physics 2D",
|
|
"description": "Physics 2D",
|
|
"default": ["physics-2d-box2d"],
|
|
"options": {
|
|
"physics-2d-box2d": {
|
|
"label": "box2d"
|
|
},
|
|
"physics-2d-builtin": {
|
|
"label": "builtin"
|
|
}
|
|
}
|
|
},
|
|
"intersection-2d": {
|
|
"default": ["intersection-2d"],
|
|
"label": "Intersection 2D",
|
|
"description": "Intersection 2D."
|
|
},
|
|
"particle-2d": {
|
|
"default": ["particle-2d"],
|
|
"label": "Particle 2D",
|
|
"description": "Particle 2D."
|
|
},
|
|
"audio": {
|
|
"default": ["audio"],
|
|
"label": "Audio",
|
|
"description": "Audio support.",
|
|
"native": "USE_AUDIO"
|
|
},
|
|
"video": {
|
|
"default": ["video"],
|
|
"label": "VideoPlayer",
|
|
"description": "VideoPlayer support.",
|
|
"native": "USE_VIDEO"
|
|
},
|
|
"webview": {
|
|
"default": ["webview"],
|
|
"label": "WebView",
|
|
"description": "WebView support.",
|
|
"native": "USE_WEBVIEW"
|
|
},
|
|
"tween": {
|
|
"default": ["tween"],
|
|
"label": "Tween",
|
|
"description": "Tween support."
|
|
},
|
|
"terrain": {
|
|
"default": ["terrain"],
|
|
"label": "Terrain",
|
|
"description": "Terrain support"
|
|
},
|
|
"tiled-map": {
|
|
"default": ["tiled-map"],
|
|
"label": "TiledMap",
|
|
"description": "TimedMap support"
|
|
},
|
|
"spine": {
|
|
"default": ["spine"],
|
|
"label": "Spine",
|
|
"description": "Spine support"
|
|
},
|
|
"dragonbones": {
|
|
"default": ["dragonbones"],
|
|
"label": "DragonBones",
|
|
"description": "Description support"
|
|
}
|
|
}
|
|
}
|