-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCacophony.pro
57 lines (43 loc) · 1.68 KB
/
Cacophony.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
# This is the basic qmake template for the Ubuntu-SDK
# it handles creation and installation of the manifest
# file and takes care of subprojects
TEMPLATE = subdirs
#load Ubuntu specific features
load(ubuntu-click)
SUBDIRS += Cacophony \
backend/Cacophony \
3rdparty \
backend/sodium
Cacophony.depends = 3rdparty
# specify the manifest file, this file is required for click
# packaging and for the IDE to create runconfigurations
UBUNTU_MANIFEST_FILE=manifest.json.in
# specify translation domain, this must be equal with the
# app name in the manifest file
UBUNTU_TRANSLATION_DOMAIN="cacophony.007pumuckl"
# specify the source files that should be included into
# the translation file, from those files a translation
# template is created in po/template.pot, to create a
# translation copy the template to e.g. de.po and edit the sources
UBUNTU_TRANSLATION_SOURCES+= \
$$files(*.qml,true) \
$$files(*.js,true) \
$$files(*.cpp,true) \
$$files(*.h,true) \
$$files(*.desktop,true)
# specifies all translations files and makes sure they are
# compiled and installed into the right place in the click package
UBUNTU_PO_FILES+=$$files(po/*.po)
aptest.target = autopilot
aptest.commands = bash $$PWD/Cacophony/tests/autopilot/run
aptest.depends = sub-Cacophony
unittest.target = check
unittest.commands = /usr/bin/qmltestrunner -input $$PWD/Cacophony/tests/unit
unittest.depends = sub-Cacophony
QMAKE_EXTRA_TARGETS += aptest unittest
libopus_lib = $$OUT_PWD/libopus.so
LIBS += libopus_lib
libopus.target = libopus_lib
libopus.commands = cd 3rdparty/opus && make -f Makefile
QMAKE_EXTRA_TARGETS += libopus
LIBS += -L$$OUT_PWD/3rdparty/sodium/ -lsodium