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. Conditional include for files inside ANDROID_PACKAGE_SOURCE_DIR?
QtWS25 Last Chance

Conditional include for files inside ANDROID_PACKAGE_SOURCE_DIR?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 198 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.
  • W Offline
    W Offline
    Wiru
    wrote on last edited by
    #1

    Is there a way to conditionally include files from the ANDROID_PACKAGE_SOURCE_DIR?
    Currently I have all the jni, jar, so files inside /android folder which is then provided to ANDROID_PACKAGE_SOURCE_DIR, this results in all the files always being included in the project, which sometimes shouldn't be the case.

    I'm not fully sure how the ANDROID_PACKAGE_SOURCE_DIR works and how it affects the final .apk, which files are mandatory and which ones I can move out.

    For iOS I put the includes in separate blocks and add them with CONFIG += when needed, and I'd like to do the same for android.

    If anyone had a similar case how did you solve it?

    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