Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [solved] Deployment on Android (Qt 5.3.1 on mac): how to add additional files to assets folder?
QtWS25 Last Chance

[solved] Deployment on Android (Qt 5.3.1 on mac): how to add additional files to assets folder?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lunatic fringe
    wrote on last edited by
    #1

    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 += FORCE

    INSTALLS += samples

    folder_01.source = test1
    folder_01.target = android-build/assets
    DEPLOYMENTFOLDERS = folder_01

    deployment.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.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lunatic fringe
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved