QT_HARMONYOS_PACKAGE_SOURCE_DIR

Percorso di un modello di pacchetto HarmonyOS personalizzato.

Questa proprietà è stata introdotta in Qt 6.12.

Nota: questa proprietà è in anteprima tecnologica e potrebbe subire modifiche nelle versioni future.

Nota: questa proprietà viene utilizzata solo se si sceglie come piattaforma di destinazione HarmonyOS.

Specifica il percorso di un modello di pacchetto HarmonyOS personalizzato. Il modello è lo scheletro del progetto HarmonyOS che contiene i file manifest (app.json5, module.json5), i profili di compilazione e le risorse dell'applicazione.

Se questa proprietà non è impostata, viene utilizzato un modello predefinito incluso nell'installazione di Qt. Quando la proprietà è impostata, viene invece utilizzata la directory specificata. Ciò consente di personalizzare il manifesto, le risorse o la configurazione di firma dell'HAP generato.

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/harmonyos"
)

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.