Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    Mobile and Embedded
    1
    2
    1503
    Loading More Posts
    • 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
      lunatic fringe last edited by

      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 Reply Quote 0
      • L
        lunatic fringe last edited by

        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 Reply Quote 0
        • First post
          Last post