Skip to content

Add more functionality to the extraData option #579

@kartaris

Description

@kartaris

Problem:

For now there is no direct way to copy extra files(plugin libs in my case) into the special folder. And it copies files and folders into the target directory's root.
I copy using qmake into the special folder and add path to it into extraData. Like this:

COPIES += myPlugins
myPlugins.files = $$files($$OUT_PWD/lib*.so*)
myPlugins.path = $$files($$OUT_PWD/plugins/myPlugins)

...

cqtdeployer -extraData $$OUT_PWD/plugins/myPlugins ....

My project tree:

buildFolder
    |- application
    |- plugins -> copy into  $$PWD/packages/application.package/data/application/myPlugins
        |- (*.so, *.a, *.lib, *.dll)
        |- (other build files not needed in installer)
    |- morePlugins -> copy into $$PWD/packages/application.package/data/application/myPlugins
        |- (*.so, *.a, *.lib, *.dll)
        |- (other build files not needed in installer)
rootFolder
    |- installer
        |- packages
            |- application.package
                |- data
                    |- application
                        |- myPlugins
                            |- (*.so, *.a, *.lib, *.dll)
                |- meta

Suggestion

Expand extraData with the syntax below:
-extraData {$$OUT_PWD/plugins/libPluginName.so,myPlugins/libPluginNewName.so},{$$OUT_PWD/plugins/libSecondPluginName.so,myPlugins/libSecondPluginNewName.so},{$$OUT_PWD/plugins/libThirdPluginName.so}

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or requestLinuxLinux versionWindowsWindows version

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions