forked from zhengran14/SwitchGamepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwitchGamepad.pro
151 lines (124 loc) · 4.41 KB
/
SwitchGamepad.pro
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#DEFINES += USE_QTAV
DEFINES += TESSERACT_V5
mac {
contains(DEFINES,USE_QTAV) {
T_PATH_QTAV_LIB = /Users/rabbit/Documents/develop/QtAV/bin/lib_osx_x86_64_llvm
T_PATH_FFMPEG = /usr/local/Cellar/ffmpeg/4.4_2
LIBS += -F$${T_PATH_QTAV_LIB}
LIBS += -framework QtAV
INCLUDEPATH += $${T_PATH_QTAV_LIB}/QtAV.framework/Headers
LIBS += -L$${T_PATH_QTAV_LIB}
LIBS += -lcommon
INCLUDEPATH += $${T_PATH_FFMPEG}/include
LIBS += -L$${T_PATH_FFMPEG}/lib -lavcodec -lavfilter -lavdevice -lavutil -lswscale -lavformat -lswresample
LIBS += -framework QtAVWidgets
INCLUDEPATH += $${T_PATH_QTAV_LIB}/QtAVWidgets.framework/Headers
}
else {
}
INCLUDEPATH += /usr/local/Cellar/opencv/4.5.4_3/include/opencv4/opencv2
INCLUDEPATH += /usr/local/Cellar/opencv/4.5.4_3/include/opencv4
INCLUDEPATH += /usr/local/Cellar/opencv/4.5.4_3/include
LIBS += -L/usr/local/Cellar/opencv/4.5.4_3/lib \
-lopencv_core \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_imgcodecs \
-lopencv_videoio \
INCLUDEPATH += /usr/local/Cellar/tesseract/5.0.1/include
LIBS += -L/usr/local/Cellar/tesseract/5.0.1/lib -ltesseract
INCLUDEPATH += /usr/local/Cellar/leptonica/1.82.0/include
LIBS += -L/usr/local/Cellar/leptonica/1.82.0/lib -llept
}
win32 {
LIBS += C:/Qt/5.15.2/msvc2019/lib/Qt5AV.lib
LIBS += C:/Qt/5.15.2/msvc2019/lib/Qt5AVWidgets.lib
CONFIG (debug, debug|release) {
INCLUDEPATH += C:/Project/opencv/Debug/include
LIBS += C:/Project/opencv/Debug/lib/opencv_core400d.lib
LIBS += C:/Project/opencv/Debug/lib/opencv_highgui400d.lib
LIBS += C:/Project/opencv/Debug/lib/opencv_imgcodecs400d.lib
LIBS += C:/Project/opencv/Debug/lib/opencv_imgproc400d.lib
LIBS += C:/Project/opencv/Debug/lib/opencv_videoio400d.lib
}
else {
INCLUDEPATH += C:/Project/opencv/Release/include
LIBS += C:/Project/opencv/Release/lib/opencv_world420.lib
}
}
unix {
INCLUDEPATH += /usr/include/opencv4/opencv2
INCLUDEPATH += /usr/include/opencv4
INCLUDEPATH += /usr/include
LIBS += -L/opt/opencv/lib \
-lopencv_core \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_imgcodecs \
-lopencv_videoio \
INCLUDEPATH += /usr/include/tesseract
LIBS += -L/usr/lib/aarch64-linux-gnu -ltesseract
INCLUDEPATH += /usr/include/leptonica
LIBS += -L/usr/lib/aarch64-linux-gnu -llept
}
QT += core gui serialport script multimedia multimediawidgets network
contains(DEFINES,USE_QTAV) {
QT += av avwidgets
}
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG (release, debug|release) {
DEFINES += QT_NO_DEBUG_OUTPUT
}
#INCLUDEPATH += -I /usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/Headers
#LIBS += -L /usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
gamepadbtn.cpp \
main.cpp \
gamepad.cpp \
minitool.cpp \
qtavplayer.cpp \
scriptengine.cpp \
scriptengineevaluation.cpp \
serialport.cpp \
setting.cpp \
socket.cpp \
utils.cpp \
videocapture.cpp
HEADERS += \
gamepad.h \
gamepadbtn.h \
minitool.h \
qtavplayer.h \
scriptengine.h \
scriptengineevaluation.h \
serialport.h \
setting.h \
socket.h \
utils.h \
videocapture.h
FORMS += \
gamepad.ui \
minitool.ui
TRANSLATIONS += \
SwitchGamepad_en_US.ts
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
mac {
QMAKE_INFO_PLIST = Info.plist
# QMAKE_TARGET_BUNDLE_PREFIX = cn.maaya
# QMAKE_BUNDLE = chat
}
RESOURCES += \
resource.qrc