1 |
# qsampler.pro |
# qsampler.pro |
2 |
# |
# |
3 |
TARGET = qsampler |
NAME = qsampler |
4 |
|
|
5 |
|
TARGET = $${NAME} |
6 |
TEMPLATE = app |
TEMPLATE = app |
|
DEPENDPATH += . |
|
|
INCLUDEPATH += . |
|
7 |
|
|
8 |
include(src.pri) |
include(src.pri) |
9 |
|
|
64 |
RESOURCES += \ |
RESOURCES += \ |
65 |
qsampler.qrc |
qsampler.qrc |
66 |
|
|
67 |
|
|
68 |
TRANSLATIONS += \ |
TRANSLATIONS += \ |
69 |
translations/qsampler_cs.ts \ |
translations/qsampler_cs.ts \ |
70 |
translations/qsampler_ru.ts |
translations/qsampler_ru.ts |
71 |
|
|
72 |
|
|
73 |
unix { |
unix { |
74 |
|
|
75 |
#VARIABLES |
# variables |
76 |
OBJECTS_DIR = .obj |
OBJECTS_DIR = .obj |
77 |
MOC_DIR = .moc |
MOC_DIR = .moc |
78 |
UI_DIR = .ui |
UI_DIR = .ui |
81 |
PREFIX = /usr/local |
PREFIX = /usr/local |
82 |
} |
} |
83 |
|
|
84 |
BINDIR = $$PREFIX/bin |
isEmpty(BINDIR) { |
85 |
DATADIR = $$PREFIX/share |
BINDIR = $${PREFIX}/bin |
86 |
|
} |
87 |
|
|
88 |
|
isEmpty(DATADIR) { |
89 |
|
DATADIR = $${PREFIX}/share |
90 |
|
} |
91 |
|
|
92 |
|
#DEFINES += DATADIR=\"$${DATADIR}\" |
93 |
|
|
94 |
|
# make install |
95 |
|
INSTALLS += target desktop icon appdata \ |
96 |
|
icon_scalable mimeinfo mimetypes mimetypes_scalable |
97 |
|
|
98 |
DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\" |
target.path = $${BINDIR} |
99 |
|
|
100 |
#MAKE INSTALL |
desktop.path = $${DATADIR}/applications |
101 |
INSTALLS += target desktop icon |
desktop.files += $${NAME}.desktop |
102 |
|
|
103 |
target.path = $$BINDIR |
icon.path = $${DATADIR}/icons/hicolor/32x32/apps |
104 |
|
icon.files += images/$${NAME}.png |
105 |
|
|
106 |
desktop.path = $$DATADIR/applications |
icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps |
107 |
desktop.files += $${TARGET}.desktop |
icon_scalable.files += images/$${NAME}.svg |
108 |
|
|
109 |
icon.path = $$DATADIR/icons/hicolor/32x32/apps |
appdata.path = $${DATADIR}/metainfo |
110 |
icon.files += images/$${TARGET}.png |
appdata.files += appdata/$${NAME}.appdata.xml |
111 |
|
|
112 |
|
mimeinfo.path = $${DATADIR}/mime/packages |
113 |
|
mimeinfo.files += mimetypes/$${NAME}.xml |
114 |
|
|
115 |
|
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
116 |
|
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
117 |
|
|
118 |
|
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
119 |
|
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg |
120 |
} |
} |
121 |
|
|
122 |
win32 { |
win32 { |
123 |
|
|
124 |
CONFIG(debug, debug|release): CONFIG += console |
CONFIG(debug, debug|release): CONFIG += console |
125 |
INSTALLS += target |
INSTALLS += target |
126 |
target.path = $$PREFIX/bin |
target.path = $${PREFIX}/bin |
127 |
} |
} |
128 |
|
|
129 |
macx { |
macx { |
131 |
QMAKE_MAC_SDK = $$(SDKROOT) |
QMAKE_MAC_SDK = $$(SDKROOT) |
132 |
CONFIG += $$(QMAKE_ARCHS) |
CONFIG += $$(QMAKE_ARCHS) |
133 |
} |
} |
134 |
|
|
135 |
|
|
136 |
|
# QT5 support |
137 |
|
!lessThan(QT_MAJOR_VERSION, 5) { |
138 |
|
QT += widgets |
139 |
|
} |