-
-
Notifications
You must be signed in to change notification settings - Fork 347
/
unix.pro
47 lines (38 loc) · 1.15 KB
/
unix.pro
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
include(../../../variables.pri)
TEMPLATE = lib
LANGUAGE = C++
TARGET = peperoni
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
macx:QT_CONFIG -= no-pkg-config
}
CONFIG += plugin
CONFIG += link_pkgconfig
PKGCONFIG += libusb-1.0
INCLUDEPATH += ../../interfaces
INCLUDEPATH += ../common
HEADERS += ../../interfaces/qlcioplugin.h
HEADERS += peperonidevice.h \
peperoni.h
SOURCES += ../../interfaces/qlcioplugin.cpp
SOURCES += peperonidevice.cpp \
peperoni.cpp
# This must be after "TARGET = " and before target installation so that
# install_name_tool can be run before target installation
macx {
include(../../../platforms/macos/nametool.pri)
nametool.commands += $$pkgConfigNametool(libusb-1.0, libusb-1.0.0.dylib)
}
# Installation
target.path = $$INSTALLROOT/$$PLUGINDIR
INSTALLS += target
# UDEV rule to make Peperoni USB devices readable & writable for users in Linux
udev.path = $$UDEVRULESDIR
udev.files = z65-peperoni.rules
!macx:INSTALLS += udev
unix:!macx {
metainfo.path = $$METAINFODIR
metainfo.files += org.qlcplus.QLCPlus.peperoni.metainfo.xml
INSTALLS += metainfo
}