mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
add native property in division-config.json (#7611)
* add native in engine module config * update
This commit is contained in:
@@ -97,19 +97,22 @@
|
||||
"text": "Audio",
|
||||
"description": "Audio support.",
|
||||
"entry": "audio",
|
||||
"default": true
|
||||
"default": true,
|
||||
"native": "USE_AUDIO"
|
||||
},
|
||||
{
|
||||
"text": "VideoPlayer",
|
||||
"description": "VideoPlayer support.",
|
||||
"entry": "video",
|
||||
"default": true
|
||||
"default": true,
|
||||
"native": "USE_VIDEO"
|
||||
},
|
||||
{
|
||||
"text": "WebView",
|
||||
"description": "WebView support.",
|
||||
"entry": "webview",
|
||||
"default": true
|
||||
"default": true,
|
||||
"native": "USE_WEBVIEW"
|
||||
},
|
||||
{
|
||||
"text": "Tween",
|
||||
|
||||
@@ -58,6 +58,10 @@
|
||||
"text": {
|
||||
"description": "Display text.",
|
||||
"type": "string"
|
||||
},
|
||||
"native": {
|
||||
"description": "Native Macro.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -94,6 +98,10 @@
|
||||
"text": {
|
||||
"description": "Display text.",
|
||||
"type": "string"
|
||||
},
|
||||
"native": {
|
||||
"description": "Native Macro.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -127,6 +135,10 @@
|
||||
"text": {
|
||||
"description": "Display text.",
|
||||
"type": "string"
|
||||
},
|
||||
"native": {
|
||||
"description": "Native Macro.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
@@ -32,6 +32,11 @@ interface BaseItem extends Displayable {
|
||||
* If true, this field indicates the item is marked as bundled by default.
|
||||
*/
|
||||
default?: boolean;
|
||||
|
||||
/**
|
||||
* native module macro
|
||||
*/
|
||||
native?: string;
|
||||
}
|
||||
|
||||
export interface Simple extends BaseItem {
|
||||
|
||||
Reference in New Issue
Block a user