forked from mooltipass/moolticute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemon.pro
140 lines (126 loc) · 3.68 KB
/
daemon.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
QT += core network websockets widgets
QT -= gui
#We need that for qwinoverlappedionotifier class which is private
win32: QT += core-private
TEMPLATE = app
TARGET = moolticuted
CONFIG -= app_bundle
CONFIG += c++11
win32 {
LIBS += -lsetupapi -luser32
} else:linux {
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += libusb-1.0
QT -= widgets
} else:mac {
LIBS += -framework ApplicationServices -framework IOKit -framework CoreFoundation -framework Cocoa -framework Foundation
}
win32 {
#Private header qwinoverlappedionotifier_p.h removed from Qt5.10 SDK
#so need to include files explicitly.
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 9) {
SOURCES += src/qwinoverlappedionotifier.cpp
HEADERS += src/qwinoverlappedionotifier.h
}
SOURCES += src/UsbMonitor_win.cpp \
src/MPDevice_win.cpp \
src/HIDLoader.cpp
HEADERS += src/UsbMonitor_win.h \
src/MPDevice_win.h \
src/HIDLoader.h \
src/hid_dll.h
}
linux {
SOURCES += src/UsbMonitor_linux.cpp \
src/MPDevice_linux.cpp
HEADERS += src/UsbMonitor_linux.h \
src/MPDevice_linux.h
}
mac {
SOURCES += src/UsbMonitor_mac.cpp \
src/MPDevice_mac.cpp
HEADERS += src/UsbMonitor_mac.h \
src/MPDevice_mac.h
HEADERS += src/MacUtils.h
SOURCES += src/MacUtils.mm
}
SOURCES += src/main_daemon.cpp \
src/MPDevice.cpp \
src/MPManager.cpp \
src/Common.cpp \
src/WSServer.cpp \
src/AppDaemon.cpp \
src/AsyncJobs.cpp \
src/MPNode.cpp \
src/WSServerCon.cpp \
src/MPDevice_emul.cpp \
src/http-parser/http_parser.c \
src/HttpClient.cpp \
src/HttpServer.cpp \
src/MooltipassCmds.cpp \
src/FilesCache.cpp \
src/SimpleCrypt/SimpleCrypt.cpp \
src/ParseDomain.cpp
HEADERS += \
src/Common.h \
src/MPDevice.h \
src/MPManager.h \
src/MooltipassCmds.h \
src/QtHelper.h \
src/WSServer.h \
src/AppDaemon.h \
src/AsyncJobs.h \
src/MPNode.h \
src/version.h \
src/WSServerCon.h \
src/MPDevice_emul.h \
src/http-parser/http_parser.h \
src/HttpClient.h \
src/HttpServer.h \
src/FilesCache.h \
src/SimpleCrypt/SimpleCrypt.h \
src/ParseDomain.h
DISTFILES += \
src/http-parser/CONTRIBUTIONS \
src/http-parser/http_parser.gyp \
src/http-parser/LICENSE-MIT \
src/http-parser/AUTHORS \
src/http-parser/README.md \
data/debug/app/scripts/main.js \
data/debug/dist/scripts/main.js \
data/debug/dist/scripts/plugins.js \
data/debug/dist/scripts/vendor.js \
data/debug/Gruntfile.js \
data/debug/bower.json \
data/debug/package.json \
data/debug/dist/fonts/glyphicons-halflings-regular.eot \
data/debug/dist/fonts/glyphicons-halflings-regular.woff \
data/debug/dist/fonts/glyphicons-halflings-regular.ttf \
data/debug/dist/fonts/glyphicons-halflings-regular.svg \
data/debug/app/styles/main.css \
data/debug/dist/styles/main.css \
data/debug/dist/styles/vendor.css \
data/debug/app/index.html \
data/debug/dist/index.html \
data/debug/dist/Makefile \
data/debug/dist/Makefile.am \
data/debug/dist/Makefile.in \
data/debug/README.md
RESOURCES += \
data/data_debug.qrc
unix {
# INSTALL RULES
#
isEmpty(PREFIX) {
PREFIX = /usr/local
}
DEFINES += MC_INSTALL_PREFIX=\\\"$$PREFIX\\\"
# install the binary
target.path = $$PREFIX/bin
INSTALLS += target
# systemd service files
systemd_user.path = $$PREFIX/lib/systemd/system/
systemd_user.files += $$PWD/systemd/moolticuted.service
INSTALLS += systemd_user
}