-
Notifications
You must be signed in to change notification settings - Fork 17
/
deepin-picker.pro
87 lines (72 loc) · 2.29 KB
/
deepin-picker.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
######################################################################
# Automatically generated by qmake (3.0) ?? 2? 4 17:49:37 2017
######################################################################
TEMPLATE = app
TARGET = deepin-picker
CONFIG += link_pkgconfig
CONFIG += c++11
PKGCONFIG += dtkwidget dtkgui
RESOURCES = deepin-picker.qrc
# xcb xcb-util
# Input
HEADERS += \
src/cpickermanager.h \
src/desktopinfo.h \
src/colormenu.h \
src/clipboard.h \
src/animation.h \
src/dbusnotify.h \
src/settings.h \
src/utils.h
SOURCES += \
src/cpickermanager.cpp \
src/desktopinfo.cpp \
src/colormenu.cpp \
src/clipboard.cpp \
src/animation.cpp \
src/dbusnotify.cpp \
src/settings.cpp \
src/utils.cpp \
src/main.cpp
QT += core
QT += widgets
QT += gui
QT += dbus
QMAKE_CXXFLAGS += -g
isEmpty(PREFIX){
PREFIX = /usr
}
isEmpty(BINDIR):BINDIR=/usr/bin
isEmpty(ICONDIR):ICONDIR=/usr/share/icons/hicolor/scalable/apps
isEmpty(APPDIR):APPDIR=/usr/share/applications
isEmpty(DSRDIR):DSRDIR=/usr/share/deepin-picker
isEmpty(DOCDIR):DOCDIR=/usr/share/dman/deepin-picker
target.path = $$INSTROOT$$BINDIR
icon.path = $$INSTROOT$$ICONDIR
desktop.path = $$INSTROOT$$APPDIR
translations.path = $$INSTROOT$$DSRDIR/translations
manual.path = $$INSTROOT$$DOCDIR
icon.files = image/deepin-picker.svg
desktop.files = deepin-picker.desktop
manual.files = manual/*
dbus_service.files = $$PWD/com.deepin.Picker.service
dbus_service.path = $$PREFIX/share/dbus-1/services
INSTALLS += target icon desktop manual dbus_service
isEmpty(TRANSLATIONS) {
include(translations.pri)
}
TRANSLATIONS_COMPILED = $$TRANSLATIONS
TRANSLATIONS_COMPILED ~= s/\.ts/.qm/g
translations.files = $$TRANSLATIONS_COMPILED
INSTALLS += translations
CONFIG *= update_translations release_translations
CONFIG(update_translations) {
isEmpty(lupdate):lupdate=lupdate
system($$lupdate -no-obsolete -locations none $$_PRO_FILE_)
}
CONFIG(release_translations) {
isEmpty(lrelease):lrelease=lrelease
system($$lrelease $$_PRO_FILE_)
}
DSR_LANG_PATH += $$DSRDIR/translations
DEFINES += "DSR_LANG_PATH=\\\"$$DSR_LANG_PATH\\\""