File: unix.pro

package info (click to toggle)
qlcplus 4.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,644 kB
  • sloc: cpp: 182,867; javascript: 7,764; xml: 2,453; ansic: 2,120; sh: 1,716; python: 634; ruby: 606; makefile: 23
file content (45 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download | duplicates (3)
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
include(../../../variables.pri)

TEMPLATE = lib
LANGUAGE = C++
TARGET   = peperoni

QT          += core gui 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
}