forked from cocos/cocos-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cc.config.json
138 lines (138 loc) · 8.12 KB
/
cc.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"features": {
"base": { "modules": [ "base" ] },
"gfx-webgl": { "modules": [ "gfx-webgl" ] },
"gfx-webgl2": { "modules": [ "gfx-webgl2" ] },
"3d": { "modules": [ "3d" ] },
"2d": { "modules": [ "2d" ] },
"ui": { "modules": [ "ui", "2d" ] },
"particle": { "modules": [ "particle" ] },
"particle-2d": { "modules": [ "particle-2d" ] },
"physics-framework": { "modules": [ "physics-framework" ] },
"physics-cannon": { "modules": [ "physics-cannon", "physics-framework" ] },
"physics-physx": { "modules": [ "physics-physx", "physics-framework" ] },
"physics-ammo": { "modules": [ "physics-ammo", "physics-framework", "wait-for-ammo-instantiation" ] },
"physics-builtin": { "modules": [ "physics-builtin", "physics-framework" ] },
"physics-2d-framework": { "modules": [ "physics-2d-framework" ] },
"physics-2d-box2d": { "modules": [ "physics-2d-box2d", "physics-2d-framework" ] },
"physics-2d-builtin": { "modules": [ "physics-2d-builtin", "physics-2d-framework" ] },
"intersection-2d": { "modules": [ "intersection-2d" ] },
"primitive": { "modules": [ "primitive" ] },
"profiler": { "modules": [ "profiler" ] },
"audio": { "modules": [ "audio" ] },
"video": { "modules": [ "video" ] },
"terrain": { "modules": [ "terrain" ] },
"webview": { "modules": [ "webview" ] },
"tween": { "modules": [ "tween" ] },
"tiled-map": { "modules": [ "tiled-map" ] },
"spine": { "modules": [ "spine" ] },
"dragon-bones": { "modules": [ "dragon-bones" ] }
},
"moduleOverrides": [
{
"test": "context.mode === 'BUILD'",
"isVirtualModule": false,
"overrides": {
}
},
{
"test": "context.platform === 'NATIVE'",
"isVirtualModule": false,
"overrides": {
"cocos/core/pipeline/index.ts": "cocos/core/pipeline/index.jsb.ts",
"cocos/core/pipeline/render-pipeline.ts": "cocos/core/pipeline/render-pipeline.jsb.ts",
"cocos/core/renderer/core/native-pools.ts": "cocos/core/renderer/core/native-pools.jsb.ts",
"cocos/core/renderer/core/material-instance.ts": "cocos/core/renderer/core/material-instance.jsb.ts",
"cocos/core/renderer/core/pass.ts": "cocos/core/renderer/core/pass.jsb.ts",
"cocos/core/renderer/core/render-window.ts": "cocos/core/renderer/core/render-window.jsb.ts",
"cocos/core/renderer/core/samper-lib.ts": "cocos/core/renderer/core/sampler.jsb.ts",
"cocos/core/renderer/scene/camera.ts": "cocos/core/renderer/scene/camera.jsb.ts",
"cocos/core/renderer/scene/model.ts": "cocos/core/renderer/scene/model.jsb.ts",
"cocos/core/renderer/scene/render-scene.ts": "cocos/core/renderer/scene/render-scene.jsb.ts",
"cocos/core/renderer/scene/submodel.ts": "cocos/core/renderer/scene/submodel.jsb.ts",
"cocos/core/renderer/scene/index.ts": "cocos/core/renderer/scene/index.jsb.ts",
"cocos/core/gfx/index.ts": "cocos/core/gfx/index.jsb.ts",
"cocos/core/gfx/pipeline-state.ts": "cocos/core/gfx/pipeline-state.jsb.ts",
"cocos/spine/index.ts": "cocos/spine/index.jsb.ts",
"cocos/dragon-bones/index.ts": "cocos/dragon-bones/index.jsb.ts",
"cocos/physics/physx/instantiate.ts": "cocos/physics/physx/instantiate.jsb.ts",
"cocos/core/scene-graph/base-node.ts": "cocos/core/scene-graph/base-node.jsb.ts",
"cocos/core/scene-graph/node.ts": "cocos/core/scene-graph/node.jsb.ts",
"cocos/core/scene-graph/scene.ts": "cocos/core/scene-graph/scene.jsb.ts",
"cocos/core/scene-graph/scene-globals.ts": "cocos/core/scene-graph/scene-globals.jsb.ts",
"cocos/core/scene-graph/index.ts": "cocos/core/scene-graph/index.jsb.ts",
"cocos/core/root.ts": "cocos/core/root.jsb.ts",
"cocos/core/assets/index.ts": "cocos/core/assets/index.jsb.ts",
"cocos/core/assets/asset.ts": "cocos/core/assets/asset.jsb.ts",
"cocos/core/assets/buffer-asset.ts": "cocos/core/assets/buffer-asset.jsb.ts",
"cocos/core/assets/render-texture.ts": "cocos/core/assets/render-texture.jsb.ts",
"cocos/core/assets/simple-texture.ts": "cocos/core/assets/simple-texture.jsb.ts",
"cocos/core/assets/scene-asset.ts": "cocos/core/assets/scene-asset.jsb.ts",
"cocos/core/assets/effect-asset.ts": "cocos/core/assets/effect-asset.jsb.ts",
"cocos/core/assets/image-asset.ts": "cocos/core/assets/image-asset.jsb.ts",
"cocos/core/assets/texture-base.ts": "cocos/core/assets/texture-base.jsb.ts",
"cocos/core/assets/texture-asset.ts": "cocos/core/assets/texture-asset.jsb.ts",
"cocos/core/assets/texture-2d.ts": "cocos/core/assets/texture-2d.jsb.ts",
"cocos/core/assets/texture-cube.ts": "cocos/core/assets/texture-cube.jsb.ts",
"cocos/core/assets/material.ts": "cocos/core/assets/material.jsb.ts",
"cocos/core/assets/rendering-sub-mesh.ts": "cocos/core/assets/rendering-sub-mesh.jsb.ts",
"cocos/3d/assets/mesh.ts":"cocos/3d/assets/mesh.jsb.ts",
"cocos/3d/assets/skeleton.ts":"cocos/3d/assets/skeleton.jsb.ts",
"cocos/3d/models/morph-model.ts":"cocos/3d/models/morph-model.jsb.ts",
"cocos/3d/models/skinning-model.ts":"cocos/3d/models/skinning-model.jsb.ts",
"cocos/3d/models/baked-skinning-model.ts":"cocos/3d/models/baked-skinning-model.jsb.ts"
}
},
{
"test": "context.buildTimeConstants && context.buildTimeConstants.HTML5",
"isVirtualModule": true,
"overrides": {
"pal/minigame": "pal/minigame/non-minigame.ts",
"pal/audio": "pal/audio/web/player.ts",
"pal/system-info": "pal/system-info/web/system-info.ts",
"pal/screen-adapter": "pal/screen-adapter/web/screen-adapter.ts",
"pal/input": "pal/input/web/index.ts"
}
},
{
"test": "context.buildTimeConstants && context.buildTimeConstants.NATIVE",
"isVirtualModule": true,
"overrides": {
"pal/minigame": "pal/minigame/non-minigame.ts",
"pal/audio": "pal/audio/native/player.ts",
"pal/system-info": "pal/system-info/native/system-info.ts",
"pal/screen-adapter": "pal/screen-adapter/native/screen-adapter.ts",
"pal/input": "pal/input/native/index.ts"
}
},
{
"test": "context.buildTimeConstants && context.buildTimeConstants.MINIGAME",
"isVirtualModule": true,
"overrides": {
"pal/minigame": "pal/minigame/{{context.platform.toLowerCase()}}.ts",
"pal/audio": "pal/audio/minigame/player.ts",
"pal/system-info": "pal/system-info/minigame/system-info.ts",
"pal/screen-adapter": "pal/screen-adapter/minigame/screen-adapter.ts",
"pal/input": "pal/input/minigame/index.ts"
}
},
{
"test": "context.buildTimeConstants && context.buildTimeConstants.RUNTIME_BASED",
"isVirtualModule": true,
"overrides": {
"pal/minigame": "pal/minigame/runtime.ts",
"pal/audio": "pal/audio/minigame/player.ts",
"pal/system-info": "pal/system-info/minigame/system-info.ts",
"pal/screen-adapter": "pal/screen-adapter/minigame/screen-adapter.ts",
"pal/input": "pal/input/minigame/index.ts"
}
},
{
"test": "context.buildTimeConstants && context.buildTimeConstants.NOT_PACK_PHYSX_LIBS",
"isVirtualModule": false,
"overrides": {
"cocos/physics/physx/physx.asmjs.ts": "cocos/physics/physx/physx.null.ts"
}
}
]
}