-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMobileSharing.pri
49 lines (38 loc) · 1.45 KB
/
MobileSharing.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
QT += core gui qml
SOURCES += $${PWD}/SharingUtils.cpp \
$${PWD}/SharingApplication.cpp
HEADERS += $${PWD}/SharingUtils.h \
$${PWD}/SharingApplication.h
#INCLUDEPATH += $${PWD}
android {
versionAtLeast(QT_VERSION, 6.0) {
QT += core-private
SOURCES += $${PWD}/SharingUtils_android_qt6.cpp
HEADERS += $${PWD}/SharingUtils_android.h
} else {
QT += androidextras
SOURCES += $${PWD}/SharingUtils_android_qt5.cpp
HEADERS += $${PWD}/SharingUtils_android.h
}
# Add this line to the dependencies {} section of 'build.gradle' file:
#implementation 'androidx.appcompat:appcompat:1.1.0'
#implementation 'androidx.core:core:1.1.0'
# And this line in 'gradle.properties' file:
#android.useAndroidX=true
# These files are from the parent project:
#ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
#OTHER_FILES += $${PWD}/src/com/emeric/watchflower/QShareActivity.java \
# $${PWD}/src/com/emeric/utils/QShareUtils.java \
# $${PWD}/src/com/emeric/utils/QSharePathResolver.java
# Rename these to match your project:
#com/emeric/utils
#com.emeric.watchflower
#com_emeric_watchflower
}
ios {
LIBS += -framework UIKit
OBJECTIVE_SOURCES += $${PWD}/SharingUtils_ios.mm \
$${PWD}/docviewcontroller_ios.mm
HEADERS += $${PWD}/SharingUtils_ios.h \
$${PWD}/docviewcontroller_ios.h
}