summaryrefslogtreecommitdiff
path: root/src/plugins/mcusupport/wizards/application/wizard.json
blob: 1c598507e13cfe37df16c5fb184d03c5d4953c40 (plain)
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
{
    "version": 1,
    "supportedProjectTypes": [ "CMakeProjectManager.CMakeProject" ],
    "id": "M.McuSupportApplication",
    "category": "D.ApplicationMCU",
    "trDescription": "Creates an Mcu Support application with an empty UI.",
    "trDisplayName": "Mcu Support Application",
    "trDisplayCategory": "Application (Qt for MCU)",
    "icon": "../icon.png",
    "enabled": true,

    "options":
    [
        { "key": "MainQmlFile", "value": "%{ProjectName}.qml" },
        { "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
            "typeId": "Project"
        },
        {
            "trDisplayName": "Kit Selection",
            "trShortTitle": "Kits",
            "typeId": "Kits",
            "enabled": "%{JS: !value('IsSubproject')}",
            "data": {
                "projectFilePath": "%{CMakeFile}"
            }
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "CMakeLists.txt",
                    "openAsProject": true
                },
                {
                    "source": "project.qmlproject.tpl",
                    "target": "%{ProjectDirectory}/%{ProjectName}.qmlproject",
                    "openInEditor": false
                },
                {
                    "source": "main.qml.tpl",
                    "target": "%{ProjectDirectory}/%{MainQmlFile}",
                    "openInEditor": true
                },
                {
                    "source": "%{IDE:ResourcePath}/templates/wizards/projects/git.ignore",
                    "target": ".gitignore",
                    "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
                }
            ]
        }
    ]
}