-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnativeandroid.prf
23 lines (19 loc) · 1.01 KB
/
nativeandroid.prf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
isEmpty(MODULE_PREFIX): \
MODULE_PREFIX = $$[QT_INSTALL_PREFIX]
support_pkg_paths = $$files($$MODULE_PREFIX/src/android/java/support/*)
for(path, support_pkg_paths): \
support_pkg_names += $$basename(path)
for(pkg, ANDROID_SUPPORT) {
pkg_path = $$MODULE_PREFIX/src/android/java/support/$$pkg
!exists($$pkg_path): \
error("Unknown Android support package '$$pkg'. Available packages: $$pkg_names")
ANDROID_SUPPORT_INPUT += $$pkg_path
}
ANDROID_SUPPORT_OUTPUT = $$relative_path($$OUT_PWD/android-build/src/org/qtproject/qt5/android/bindings, $$_PRO_FILE_PWD_)
android_support.input = ANDROID_SUPPORT_INPUT
android_support.output = ${QMAKE_FILE_IN_NAME}
!contains(TEMPLATE, vc.*): android_support.variable_out = PRE_TARGETDEPS
android_support.commands = ( $$sprintf($$QMAKE_MKDIR_CMD, $$ANDROID_SUPPORT_OUTPUT) ) && $$QMAKE_COPY_DIR ${QMAKE_FILE_IN} $$ANDROID_SUPPORT_OUTPUT
android_support.name = COPY ${QMAKE_FILE_IN}
android_support.CONFIG = no_link no_clean
QMAKE_EXTRA_COMPILERS += android_support