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
|
TEMPLATE = lib
TARGET = drumstick-file
DESTDIR = ../../build/lib
DEPENDPATH += . ../include
INCLUDEPATH += . ../include
include (../../global.pri)
CONFIG += c++11 qt create_pc create_prl no_install_prl
DEFINES += drumstick_file_EXPORTS
QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_HIDESYMS
QMAKE_PKGCONFIG_PREFIX = $$INSTALLBASE
QT -= gui
equals(QT_MAJOR_VERSION, 6) {
QT += core5compat
}
# Input
HEADERS += ../include/drumstick/macros.h \
../include/drumstick/rmid.h \
../include/drumstick/qsmf.h \
../include/drumstick/qwrk.h
SOURCES += rmid.cpp \
qsmf.cpp \
qwrk.cpp
static {
CONFIG += staticlib
DEFINES += DRUMSTICK_STATIC
}
macx:!static {
TARGET = drumstick-file
CONFIG += lib_bundle
FRAMEWORK_HEADERS.version = Versions
FRAMEWORK_HEADERS.files = $$HEADERS
FRAMEWORK_HEADERS.path = Headers/drumstick
QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
#QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
QMAKE_SONAME_PREFIX = @rpath
QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge
QMAKE_BUNDLE = drumstick-file
QMAKE_INFO_PLIST = ../Info.plist.lib
}
|