-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVidiot.pro
159 lines (132 loc) · 4.47 KB
/
Vidiot.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
152
153
154
155
156
157
158
159
QT += core gui opengl widgets quick concurrent
TARGET = Vidiot
TEMPLATE = app
MAJOR_VERSION = 1
MINOR_VERSION = 02
REVISION = $$system(git log --pretty=format:%h -n 1)
DEFINES += PRODUCT_REVISION=r$$REVISION
DEFINES += MAJOR_VERSION=$$MAJOR_VERSION
DEFINES += MINOR_VERSION=$$MINOR_VERSION
DEFINES += DELICODE_BUILD_TIMESTAMP=$$system(git log --pretty=format:%ct -n 1)
SOURCES += main.cpp\
VideoView.cpp \
TextureUploader.cpp \
TextureDownloader.cpp \
VideoPlayer.cpp \
VideoThread.cpp \
VideoRecorder.cpp \
FeedInput.cpp \
FboRenderer.cpp \
FeedOutput.cpp \
StdInThread.cpp \
VidiotApplication.cpp
HEADERS += VideoView.h \
TextureUploader.h \
TextureDownloader.h \
VideoPlayer.h \
VideoThread.h \
VideoRecorder.h \
FeedInput.h \
FboRenderer.h \
FeedOutput.h \
StdInThread.h \
predefines.h \
VidiotApplication.h
INCLUDEPATH += lib/ffmpeg/include
macx {
LIBS += -L/usr/local/lib
}
win32 {
LIBS += -L$$_PRO_FILE_PWD_/lib/ffmpeg/lib/win64
}
LIBS += -lavdevice -lavcodec -lavformat -lswscale -lavutil -lswresample
INCLUDEPATH += "../Vidiot/lib/QtAV/include/QtAV" "../Vidiot/lib/QtAV/include"
win32 {
CONFIG(release, debug|release) {
LIBS += -L$$_PRO_FILE_PWD_/lib/QtAV/lib/win64 -lQtAV1
}
else {
LIBS += -L$$_PRO_FILE_PWD_/lib/QtAV/lib/win64 -lQtAVd1
}
}
win32: {
SPOUTDIR = external/Spout
INCLUDEPATH += $${SPOUTDIR}
LIBS += -lShell32 -lUser32 -lOpenGL32 -lGdi32
LIBS += -lStrmiids -lQuartz -lole32 -luuid -loleaut32
RC_FILE = resources/info.rc
!contains(QMAKE_TARGET.arch, x86_64) {
LIBS += -L"../Vidiot/lib/QtAV/lib/win32" -L"../Vidiot/lib/ffmpeg/win32"
} else {
LIBS += -L"../Vidiot/lib/QtAV/lib/win64" -L"../Vidiot/lib/ffmpeg/win64"
}
SOURCES += $${SPOUTDIR}/SpoutDirectX.cpp \
$${SPOUTDIR}/SpoutGLDXinterop.cpp \
$${SPOUTDIR}/SpoutGLextensions.cpp \
$${SPOUTDIR}/SpoutMemoryShare.cpp \
$${SPOUTDIR}/SpoutReceiver.cpp \
$${SPOUTDIR}/SpoutSDK.cpp \
$${SPOUTDIR}/SpoutSender.cpp \
$${SPOUTDIR}/SpoutSenderNames.cpp \
$${SPOUTDIR}/SpoutSharedMemory.cpp
HEADERS += $${SPOUTDIR}/Spout.h \
$${SPOUTDIR}/SpoutCommon.h \
$${SPOUTDIR}/SpoutDirectX.h \
$${SPOUTDIR}/SpoutGLDXinterop.h \
$${SPOUTDIR}/SpoutGLextensions.h \
$${SPOUTDIR}/SpoutMemoryShare.h \
$${SPOUTDIR}/SpoutReceiver.h \
$${SPOUTDIR}/SpoutSDK.h \
$${SPOUTDIR}/SpoutSender.h \
$${SPOUTDIR}/SpoutSenderNames.h \
$${SPOUTDIR}/SpoutSharedMemory.h
}
defineReplace(firstPBC){
return("$$1>\"$$_PRO_FILE_PWD_/vidiot.build_config\"$$escape_expand(\\n\\t)")
}
defineReplace(addPBC){
return("$$1>>\"$$_PRO_FILE_PWD_/vidiot.build_config\"$$escape_expand(\\n\\t)")
}
defineReplace(addPostLink){
return("$$1$$escape_expand(\\n\\t)")
}
#create vidiot.build_config file to notify installer scripts about the current build
CONFIG(release, debug|release) {
QMAKE_POST_LINK += $$firstPBC(echo $$TARGET)
QMAKE_POST_LINK += $$addPBC(echo RELEASE)
QMAKE_POST_LINK += $$addPBC(echo $${MAJOR_VERSION}.$${MINOR_VERSION})
QMAKE_POST_LINK += $$addPBC(echo "$$REVISION")
QMAKE_POST_LINK += $$addPBC(echo $$_PRO_FILE_PWD_/Resources)
QMAKE_POST_LINK += $$addPBC(echo $$OUT_PWD/$$DESTDIR)
QMAKE_POST_LINK += $$addPBC(echo "$$BRANCH")
}
#create products.build_config file to notify installer scripts about the current build
CONFIG(debug, debug|release) {
QMAKE_POST_LINK += $$firstPBC(echo $$TARGET)
QMAKE_POST_LINK += $$addPBC(echo DEBUG)
QMAKE_POST_LINK += $$addPBC(echo $${MAJOR_VERSION}.$${MINOR_VERSION})
QMAKE_POST_LINK += $$addPBC(echo "$$REVISION")
QMAKE_POST_LINK += $$addPBC(echo $$_PRO_FILE_PWD_/Resources)
QMAKE_POST_LINK += $$addPBC(echo $$OUT_PWD/$$DESTDIR)
QMAKE_POST_LINK += $$addPBC(echo "$$BRANCH")
}
macx {
OBJECTIVE_SOURCES += DelicodeSyphonServer.mm \
MacWindowInitializer.mm
HEADERS += DelicodeSyphonServer.h \
MacWindowInitializer.h
QMAKE_INFO_PLIST = resources/MyInfo.plist
LIBS += -framework IOKit -framework CoreFoundation -framework CoreServices -framework ApplicationServices -framework AppKit
QMAKE_LFLAGS += -F$$_PRO_FILE_PWD_/lib/QtAV/lib/osx
LIBS += -framework QtAV -framework QtAVWidgets
QMAKE_LFLAGS += -F$$_PRO_FILE_PWD_/lib
LIBS += -framework Syphon
QMAKE_POST_LINK += $$addPostLink($$_PRO_FILE_PWD_/scripts/mac_post_build.sh)
}
DISTFILES += \
qml/main.qml \
qml/SimpleButton.qml \
qml/SimpleList.qml \
resources/Vidiot.icns
RESOURCES += qml.qrc \
media.qrc