aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Visual/projectm/projectm.pro
blob: 1da0c79997325532bb97fc61e84d33477e25f86b (plain) (blame)
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
include(../../plugins.pri)

contains(CONFIG, WITH_PROJECTM20){
DEFINES += PROJECTM_20
}

TARGET =$$PLUGINS_PREFIX/Visual/projectm
QMAKE_CLEAN =$$PLUGINS_PREFIX/Visual/libprojectm.so

HEADERS += projectmwidget.h \
           visualprojectmfactory.h \
           projectmplugin.h
SOURCES += projectmplugin.cpp \
           visualprojectmfactory.cpp \
           projectmwidget.cpp
INCLUDEPATH += ../../../
CONFIG += warn_on \
plugin \
link_pkgconfig

PKGCONFIG += libprojectM

TEMPLATE = lib
QMAKE_LIBDIR += ../../../../lib
QT += opengl
LIBS += -lqmmp -L/usr/lib -I/usr/include
TRANSLATIONS = translations/projectm_plugin_cs.ts \
               translations/projectm_plugin_de.ts \
               translations/projectm_plugin_zh_CN.ts \
               translations/projectm_plugin_zh_TW.ts \
               translations/projectm_plugin_pl.ts \
               translations/projectm_plugin_ru.ts \
               translations/projectm_plugin_uk_UA.ts \
               translations/projectm_plugin_it.ts \
               translations/projectm_plugin_tr.ts \
               translations/projectm_plugin_lt.ts \
               translations/projectm_plugin_nl.ts \
               translations/projectm_plugin_ja.ts \
               translations/projectm_plugin_es.ts
RESOURCES = translations/translations.qrc

isEmpty(LIB_DIR){
    LIB_DIR = /lib
}
target.path = $$LIB_DIR/qmmp/Visual
INSTALLS += target

#projectM config path
exists("/usr/share/projectM/config.inp") {

}

PROJECTM_CONFIG_FILES = /usr/share/projectM/config.inp \
                        /usr/local/share/projectM/config.inp

for(path, PROJECTM_CONFIG_FILES) {
  exists($$path) {
     message ("found projectm configuration: "$$path)
     DEFINES += PROJECTM_CONFIG_FILE=\\\"$$path\\\"
  }
}