summaryrefslogtreecommitdiff
path: root/src/plugins/mcusupport/wizards/qmlproject/project.qmlproject.tpl
blob: 71a1db1e16793a780c02776da25ce4f59767e72c (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
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
import QmlProject 1.3

Project {
    qtForMCUs: true // Required by QDS to enable/disable features Supported/Unsupported by QtMCUs projects. Currently ignored by qmlprojectexporter.
    // importPaths: ["imports/CustomModule"] // Alternative API for importing modules.
    // projectRootPath: "." // Optional root path relative to qmlproject file path.
    mainFile: "%{MainQmlFile}" // Required to determin which qml file is the application entrypoint, when no custom c++ entrypoint is specified.

    /* Global configuration */
    MCU.Config {
        controlsStyle: "QtQuick.Controls.StyleDefault"
        debugBytecode: false
        debugLineDirectives: false

        // maxResourceCacheSize: 0 // Set to 0 by default. Required for OnDemand resource cache policy and resource compression.

        // Global settings for image properties. Can be overridden for selected resources in ImageFiles nodes.
        resourceImagePixelFormat: "Automatic"
        resourceCachePolicy: "NoCaching"
        resourceCompression: false

        // Font engine selection
        fontEngine: "Static" // alternative option: "Spark".

        // Font defaults for both engines
        defaultFontFamily: "DejaVu Sans Mono"
        defaultFontQuality: "VeryHigh"
        glyphsCachePolicy: "NoCaching"
        maxParagraphSize: 100

        // Font properties for "Static"
        addDefaultFonts: false // Set to true to add the default fonts to your project.
        autoGenerateGlyphs: true

        // Font properties for "Spark"
        // These properties are in effect only if the "Spark" font engine is used
        complexTextRendering: true // Set this to false if complex scripts are not needed (Arabic scripts, Indic scripts, etc.)
        fontCachePriming: false // Set to true to decrease application startup time. Only applies to fonts configured with unicode ranges (font.unicodeCoverage).
        fontCacheSize: 0 // If this is needed, use a suitable number. Setting this to a sensible value will improve performance, the global default is 104800.
        fontHeapSize: -1 // Set to sufficient value to improve performance. -1 means no restrictions to heap allocation.
        fontHeapPrealloc: true
        fontCachePrealloc: true
    }

    /* QML files */
    QmlFiles {
        files: ["%{MainQmlFile}"]
        MCU.copyQmlFiles: false
    }

    /* Images */
    ImageFiles {
        files: ["images/icon.png"]
        MCU.base: "images"
        MCU.prefix: "assets"

        MCU.resourceCompression: false
        MCU.resourceImagePixelFormat: "Automatic"
        MCU.resourceOptimizeForRotation: false
        MCU.resourceOptimizeForScale: false

        // Uncomment to override the default values for images in this node
        // MCU.resourceCachePolicy: "NoCaching" // Uncomment to override the default cache policy for these images.
        // MCU.resourceStorageSection: "QulResourceData" // Uncomment to override the default storage section for these images

        // Uncomment the following properties as needed when adding image files for an animated sprite:
        // MCU.resourceAnimatedSprite: true
        // MCU.resourceAnimatedSpriteFrameWidth: 180
        // MCU.resourceAnimatedSpriteFrameHeight: 160
    }

    /* Modules */
    ModuleFiles {
        files: ["imports/CustomModule/%{ModuleFile}"]
        // MCU.qulModules: [ // Uncomment for adding Qul modules
            // "Qul::Controls",
            // "Qul::ControlsTemplates",
            // "Qul::Shapes",
            // "Qul::Timeline"
        // ]
    }

    /* Interfaces */
    InterfaceFiles {
        files: ["src/%{InterfaceFile}"]
        MCU.qmlImports: ["QtQuick"]
    }

    /* Translations */
    TranslationFiles {
        files: ["translations/%{TsFile}"]
        MCU.omitSourceLanguage: false
    }

    FontFiles {
        files: ["fonts/DejaVuSansMono.ttf"]
    }
}