-
Notifications
You must be signed in to change notification settings - Fork 0
/
mm2capture.pro
112 lines (98 loc) · 3.61 KB
/
mm2capture.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
#-------------------------------------------------
#
# Project created by QtCreator 2017-04-09T00:26:45
#
#-------------------------------------------------
QT += core gui network sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as 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
# You can also make your code fail to compile if you use 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
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/zlib/release/ -lz
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/zlib/debug/ -lz
else:unix:!macx: LIBS += -L$$PWD/zlib/ -lz
INCLUDEPATH += $$PWD/zlib/include \
$$PWD/src/
DEPENDPATH += $$PWD/zlib/include
#QMAKE_LINK = clang++
#QMAKE_LFLAGS = -fsanitize=address
#QMAKE_CXXFLAGS += -fsanitize=address \
# -fno-omit-frame-pointer \
# -O1 -fno-optimize-sibling-calls
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/zlib/release/libz.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/zlib/debug/libz.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/zlib/release/z.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/zlib/debug/z.lib
else:unix:!macx: PRE_TARGETDEPS += $$PWD/zlib/libz.a
tests {
message("Unit test build")
TARGET=mm2capture-tests
QT += testlib core
HEADERS += test/decoder-test.h \
src/modes/modes-decoder.h \
src/modes/modes-data.h \
src/compress/packer.h \
test/compress-test.h
SOURCES += test/decoder-test.cpp \
src/modes/modes-decoder.cpp \
src/modes/modes-data.cpp \
src/compress/packer.cpp \
test/compress-test.cpp \
test/main.cpp
# copying testdata
copydata.commands = $(COPY_DIR) $$PWD/test/test_data $$OUT_PWD
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
} else {
message("Normal build")
TARGET = mm2capture
SOURCES += src/main.cpp\
src/gui/mainwindow.cpp \
src/outputsessiondialog.cpp \
src/network/abstract-feed.cpp \
src/network/feed-counter.cpp \
src/network/tcp-input-feed.cpp \
src/network/tcp-output-feed.cpp \
src/network/io-impl/abstract-io.cpp \
src/network/io-impl/tcp-client.cpp \
src/modes/modes-decoder.cpp \
src/modes/modes-data.cpp \
src/compress/packer.cpp \
src/db/db-exception.cpp \
src/db/db-reader.cpp \
src/db/db-writer.cpp \
src/db/db-session-stats.cpp \
src/network/feed-factory.cpp \
src/recorder.cpp \
src/player.cpp
HEADERS += src/gui/mainwindow.h \
src/outputsessiondialog.h \
src/network/abstract-feed.h \
src/network/feed-counter.h \
src/network/tcp-input-feed.h \
src/network/tcp-output-feed.h \
src/network/io-impl/abstract-io.h \
src/network/io-impl/tcp-client.h \
src/modes/modes-decoder.h \
src/modes/modes-data.h \
src/compress/packer.h \
src/db/db-exception.h \
src/db/db-reader.h \
src/db/db-writer.h \
src/db/db-session-stats.h \
src/network/feed-factory.h \
src/recorder.h \
src/player.h \
FORMS += forms/mainwindow.ui \
forms/outputsessiondialog.ui
}