Skip to content

Commit

Permalink
Specify dependency target for Java sources in custom folder
Browse files Browse the repository at this point in the history
  • Loading branch information
remster committed Aug 26, 2020
1 parent de03dad commit 1ede399
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions android.pri
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ exists($$PWD/custom/android) {
message("Merging $$PWD/custom/android/ -> $$PWD/android/")
ANDROID_PACKAGE_SOURCE_DIR = $$OUT_PWD/ANDROID_PACKAGE_SOURCE_DIR

system($$QMAKE_MKDIR $$ANDROID_PACKAGE_SOURCE_DIR)
system($$QMAKE_COPY_DIR $$PWD/android/* $$OUT_PWD/ANDROID_PACKAGE_SOURCE_DIR)
system($$QMAKE_COPY_DIR $$PWD/custom/android/* $$OUT_PWD/ANDROID_PACKAGE_SOURCE_DIR)
javaforce.target = custom_android
javaforce.commands = $$QMAKE_MKDIR $$ANDROID_PACKAGE_SOURCE_DIR && \
$$QMAKE_COPY_DIR $$PWD/android/* $$OUT_PWD/ANDROID_PACKAGE_SOURCE_DIR && \
$$QMAKE_COPY_DIR $$PWD/custom/android/* $$OUT_PWD/ANDROID_PACKAGE_SOURCE_DIR
javaforce.depends = FORCE
PRE_TARGETDEPS += $$javaforce.target
QMAKE_EXTRA_TARGETS += javaforce
}

exists($$PWD/custom/android/AndroidManifest.xml) {
Expand Down

0 comments on commit 1ede399

Please sign in to comment.