[solved] Deployment on Android (Qt 5.3.1 on mac): how to add additional files to assets folder?
-
Hi,
i want to deploy additional files and folder in the assets folder, but i don not get this working.
At least i want to add the hallo.c file in the assets folder or where ever it is packaged.I followed many proposals but nothing helped.
My .pro files contains serveral entries after several tries for setting this up:@
android {
SAMPLES_INSTALL_PATH=/assets/test1
} else {
SAMPLES_INSTALL_PATH=$$OUT_PWD/test1
}android {
samples.path = $$SAMPLES_INSTALL_PATH
samples.files += $$SAMPLE_FILES
samples.depends += FORCEINSTALLS += samples
folder_01.source = test1
folder_01.target = android-build/assets
DEPLOYMENTFOLDERS = folder_01deployment.files = $$PWD/test1/hallo.c
deployment.path = $$PWD/android-build/assets
QMAKE_BUNDLE_DATA += deployment
}
@I ran qmake and the deployment step but nothing is copied.
If makes no difference if it is a shadow build or not.Can anyone help ?
Regards
l.f. -
Now i have found the following method:
create your own AndroidManifest file in the deployment setting of your project
then add to the project .pro file:
@android {
addon.files = example.txt exampledir
addon.path = $$[PWD]/assets
INSTALLS += addon
}@
run qmake, build and deploy your project
Regards
l.f.