-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathewindow.pro
More file actions
61 lines (48 loc) · 1.66 KB
/
ewindow.pro
File metadata and controls
61 lines (48 loc) · 1.66 KB
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
TARGET = ewindow
TEMPLATE = app
QT += qml quick
CONFIG += c++11 debug
INCLUDEPATH += re/include rem/include baresip/include
SOURCES += main.cpp \
yuvtexturematerial.cpp \
contactlistmodel.cpp \
useragent.cpp \
volumemanager.cpp \
baresipcore.cpp \
baresipvidisp.h baresipvidisp.cpp
HEADERS += \
baresipvidisp.h \
yuvtexturematerial.h \
contactlistmodel.h \
useragent.h \
volumemanager.h \
baresipcore.h
LIBS += -Lre -Lrem -Lbaresip
LIBS += -lbaresip -lrem -lre -lssl -lcrypto -ldl -lz
# Installation: Build ewindow binary and libbaresip.so
INSTALLS += ewindow libbaresip
# Copy files all needed files into one directory in /opt
ewindow.path = /opt/ewindow
ewindow.files = ewindow gui
ewindow.depends = baresip/libbaresip.so
QMAKE_RPATHDIR += . baresip # Adjust rpath so so binary will find libbaresip.so
# Build static versions of re/rem, so we don't have to deal with more .so's
re.target = re/libre.a
re.commands = make -C re libre.a
re.depends = git
rem.target = rem/librem.a
rem.commands = make -C rem librem.a
# Build libbaresip.so, STATIC=1 means all modules are compiled in the binary
libbaresip.target = baresip/libbaresip.so
libbaresip.path = /opt/ewindow
libbaresip.files = baresip/libbaresip.so
libbaresip.commands = make -C baresip STATIC=1 libbaresip.so
libbaresip.depends = re/libre.a rem/librem.a
# Get the libraries, this should be replaced with something more robust
git.target = re
git.commands = \
git clone git://github.com/creytiv/re && \
git clone git://github.com/creytiv/rem && \
git clone git://github.com/alfredh/baresip
PRE_TARGETDEPS += baresip/libbaresip.so
QMAKE_EXTRA_TARGETS += git re rem libbaresip