diff options
author | Chris Xiong <chirs241097@gmail.com> | 2017-02-01 17:48:03 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2017-02-01 17:48:03 +0800 |
commit | eddc629bd637ec5d9260849d095b6951a437360d (patch) | |
tree | 98fd45c4b4e2ed3bdcc213722de76df0decd3b18 /visualization/visualization.pro | |
parent | 8a0d671e1a77c58142d0cbe82f40ee64bcae2be5 (diff) | |
download | QMidiPlayer-eddc629bd637ec5d9260849d095b6951a437360d.tar.xz |
Make packaging qmidiplayer less painful.
Add mime info.
Do not throw integers.
Fix incorrect font paths in Arch Linux.
Diffstat (limited to 'visualization/visualization.pro')
-rw-r--r-- | visualization/visualization.pro | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/visualization/visualization.pro b/visualization/visualization.pro index fedd636..5bf08ea 100644 --- a/visualization/visualization.pro +++ b/visualization/visualization.pro @@ -22,7 +22,7 @@ HEADERS += qmpvisualization.hpp \ qmpvirtualpiano3d.hpp unix { - target.path = /usr/lib/qmidiplayer + target.path = $$PREFIX/lib/qmidiplayer DATADIR = $$PREFIX/share INSTALLS += target res QMAKE_CXXFLAGS += -pthread -fPIC @@ -33,10 +33,18 @@ unix { res.path = $$DATADIR/qmidiplayer/img res.files += ../img/chequerboard.png ../img/particle.png ../img/kb_128.png #well... - INCLUDEPATH += /home/chrisoft/devel/SMELT/include/ /usr/include/freetype2 - LIBS += -L/home/chrisoft/devel/SMELT/smelt/glfw/ - LIBS += -L/home/chrisoft/devel/SMELT/extensions/ - LIBS += -lstdc++ -lfreetype -lz -lsmeltext -lsmelt-dumb -lCxImage -ljpeg -lpng -lglfw -lGLEW -lGL + SMELTDIR = $$(SMELT_DIR) + isEmpty(SMELTDIR){ + INCLUDEPATH += /home/chrisoft/devel/SMELT/include/ /usr/include/freetype2 + LIBS += -L/home/chrisoft/devel/SMELT/smelt/glfw/ + LIBS += -L/home/chrisoft/devel/SMELT/extensions/ + LIBS += -lstdc++ -lfreetype -lz -lsmeltext -lsmelt-dumb -lCxImage -ljpeg -lpng -lglfw -lGLEW -lGL + }else{ + INCLUDEPATH += $$SMELTDIR/include/ /usr/include/freetype2 + LIBS += -L$$SMELTDIR/smelt/glfw/ + LIBS += -L$$SMELTDIR/extensions/ + LIBS += -lstdc++ -lfreetype -lz -lsmeltext -lsmelt-dumb -lCxImage -ljpeg -lpng -lglfw -lGLEW -lGL + } } win32 { #Change these before producing your own build! |