File: qprogram-starter.pro

package info (click to toggle)
shutdown-qapps 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,816 kB
  • sloc: cpp: 4,933; makefile: 9; sh: 1
file content (61 lines) | stat: -rw-r--r-- 1,832 bytes parent folder | download
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
linux{
QT += dbus
}
TEMPLATE = app
TARGET = bin/qprogram-starter
DEPENDPATH = . src src/translations
INCLUDEPATH = . src
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
RCC_DIR = build

win32 {
RC_FILE += icon.rc
HEADERS += src/suspend_win.h
}

QT += widgets gui

system($$[QT_HOST_BINS]/lrelease qprogram-starter.pro)

QMAKE_DISTCLEAN = src/translations/*.qm

# Input
HEADERS += src/gui.h src/preferences.h src/history.h
FORMS *= src/ui/gui.ui src/ui/preferences.ui src/ui/history.ui
SOURCES += src/main.cpp src/gui.cpp src/preferences.cpp src/history.cpp
RESOURCES += ../qprogram-starter.qrc
TRANSLATIONS += src/translations/qprogram-starter-ast.ts\
               src/translations/qprogram-starter-bs.ts\
               src/translations/qprogram-starter-de.ts\
               src/translations/qprogram-starter-en_GB.ts\
               src/translations/qprogram-starter-es.ts\
               src/translations/qprogram-starter-gl.ts\
               src/translations/qprogram-starter-hr.ts\
               src/translations/qprogram-starter-it.ts\
               src/translations/qprogram-starter-ms.ts\
               src/translations/qprogram-starter-pl.ts\
               src/translations/qprogram-starter-ro.ts\
               src/translations/qprogram-starter-uk.ts


!win32{
# install
target.path = /usr/bin
translation.files = src/translations/*.qm
translation.path = /usr/share/qprogram-starter/translations
autostart.files = autostart/qprogram-starter.desktop
autostart.path = /usr/share/applications
icon.files = src/pixmap/qprogram-starter.xpm
icon.path = /usr/share/icons/hicolor/32x32/apps

INSTALLS = target translation autostart icon

deinstall.depends = uninstall FORCE
deinstall.commands = rmdir /usr/share/qprogram-starter
QMAKE_EXTRA_TARGETS = deinstall
}
OTHER_FILES += \
    icon.rc \
    src/pixmap/icon.ico