-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtryx-cli.pro
More file actions
66 lines (56 loc) · 1.7 KB
/
Copy pathtryx-cli.pro
File metadata and controls
66 lines (56 loc) · 1.7 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
62
63
64
65
66
QT += core dbus gui
CONFIG += c++17 console
CONFIG -= app_bundle
TEMPLATE = app
TARGET = tryx
contains(CONFIG, flatpak): DEFINES += TRYX_FLATPAK
!versionAtLeast(QT_VERSION, 6.4.0) {
error("tryx requires Qt 6.4 or newer")
}
VERSION = $$cat($$PWD/VERSION, lines)
isEmpty(VERSION): error("VERSION is empty or missing")
DEFINES += TRYX_APP_VERSION=\\\"$$VERSION\\\"
INCLUDEPATH += $$PWD/src $$PWD/src/cli $$PWD/src/quick
DESTDIR = $$PWD/build/cli
OBJECTS_DIR = $$PWD/build/cli/obj
MOC_DIR = $$PWD/build/cli/moc
RCC_DIR = $$PWD/build/cli/rcc
HEADERS += \
src/runtimecontract.h \
src/runtimedowngradestore.h \
src/supportsnapshot.h \
src/quick/supportbundle.h \
src/cli/sessionbusguard.h \
src/cli/tryxclirunner.h
SOURCES += \
src/runtimebadgetext.cpp \
src/runtimecontract.cpp \
src/runtimedowngradestore.cpp \
src/supportsnapshot.cpp \
src/quick/supportbundle.cpp \
src/cli/sessionbusguard.cpp \
src/cli/tryxclirunner.cpp \
src/cli/main.cpp
cli_tests.target = cli-check
cli_tests.depends = \
$$relative_path($$DESTDIR/$$TARGET, $$OUT_PWD)
cli_tests.commands = \
cd $$shell_path($$PWD/tests/cli) && \
$$QMAKE_QMAKE cli_tests.pro && $(MAKE) && \
dbus-run-session -- \
$$shell_path($$PWD/build/cli-tests/tryx-cli-tests) -txt
QMAKE_EXTRA_TARGETS += cli_tests
DISTFILES += \
packaging/tryx.1 \
tests/cli/cli_tests.cpp \
tests/cli/cli_tests.pro
unix {
target.path = /usr/bin
tryx_cli_manpage.path = /usr/share/man/man1
contains(CONFIG, flatpak) {
target.path = /app/bin
tryx_cli_manpage.path = /app/share/man/man1
}
tryx_cli_manpage.files = packaging/tryx.1
INSTALLS += target tryx_cli_manpage
}