forked from psemiletov/eko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheko.pro
More file actions
189 lines (148 loc) · 3.25 KB
/
Copy patheko.pro
File metadata and controls
189 lines (148 loc) · 3.25 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
VERSION = 7.1.0
os2: {
DEFINES += 'VERSION_NUMBER=\'"7.1.0"\''
} else: {
DEFINES += 'VERSION_NUMBER=\\\"$${VERSION}\\\"'
}
useclang{
message ("Clang enabled")
QMAKE_CC=clang
QMAKE_CXX=clang
QMAKE_CXXFLAGS += -std=c++11
}
useopencl{
message ("OpenCL enabled")
LIBS+= -lOpenCL
QMAKE_CXXFLAGS += -std=c++0x
PKGCONFIG += OpenCL
DEFINES += OPENCL_ENABLE
}
SOURCES += eko.cpp \
main.cpp \
document.cpp \
utils.cpp \
fman.cpp \
shortcuts.cpp \
logmemo.cpp \
tio.cpp \
fxset.cpp \
gui_utils.cpp \
libretta_interpolator.cpp \
floatbuffer.cpp \
envelope.cpp \
fx-filter.cpp \
fx-panners.cpp \
cvlevelmeter.cpp \
fxrack.cpp \
afx.cpp \
fxlist.cpp \
noisegen.cpp \
db.cpp \
fxpresets.cpp
HEADERS += eko.h \
document.h \
utils.h \
fman.h \
shortcuts.h \
logmemo.h \
tio.h \
fxset.h \
gui_utils.h \
libretta_interpolator.h \
floatbuffer.h \
envelope.h \
fx-filter.h \
fx-panners.h \
cvlevelmeter.h \
fxrack.h \
afx.h \
fxlist.h \
noisegen.h \
db.h \
fxpresets.h
TEMPLATE = app
CONFIG += warn_on \
thread \
qt \
release \
link_pkgconfig
QT += core
QT += gui
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
} else {
#QT += blah blah blah
}
QMAKE_CXXFLAGS += -std=c++11
unix: {
PKGCONFIG += sndfile \
samplerate \
portaudio-2.0
}
win32:{
isEmpty(PREFIX) {
PREFIX = /usr/local/bin
}
TARGET = bin/eko
target.path = $$PREFIX
}
unix:{
isEmpty(PREFIX) {
PREFIX = /usr/local
}
message(UNIX HERE)
#old PREFIX compatibility hack
#message($$replace(PREFIX, bin,))
#message ($$PREFIX)
PREFIX = $$replace(PREFIX, bin,)
#message ($$PREFIX)
#
TARGET = bin/eko
target.path = $$PREFIX/bin
desktop.path=$$PREFIX/share/applications
desktop.files=desktop/eko.desktop
icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps/
icon64.files += icons/eko.png
}
INSTALLS += target desktop icon64
RESOURCES += eko.qrc
TRANSLATIONS += translations/ru.ts \
translations/cs.ts
DISTFILES += ChangeLog \
COPYING \
README \
NEWS \
NEWS-RU \
AUTHORS \
TODO \
INSTALL \
icons/* \
palettes/* \
desktop/* \
manuals/en.html \
manuals/ru.html \
translations/* \
themes/Cotton/stylesheet.css \
themes/Plum/stylesheet.css \
themes/Smaragd/stylesheet.css \
themes/TEA/stylesheet.css \
themes/Turbo/stylesheet.css \
themes/Vegan/stylesheet.css
win32: {
# CONFIG += console
exists ("c:\\Qt\\Qt5.3.1\\5.3\\mingw482_32\\include\portaudio.h")
{
message ("Portaudio FOUND")
LIBS += -llibportaudio-2
}
exists ("c:\\Qt\\Qt5.3.1\\5.3\\mingw482_32\\include\sndfile.h")
{
message ("libsndfile FOUND")
LIBS += -llibsndfile-1
}
exists ("c:\\Qt\\Qt5.3.1\\5.3\\mingw482_32\\include\samplerate.h")
{
message ("libsamplerate FOUND")
LIBS += -llibsamplerate-0
}
}