uvcengine.pro 1.9 KB
Newer Older
Thiago Santini's avatar
Thiago Santini committed
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75
#-------------------------------------------------
#
# Project created by QtCreator 2017-02-16T18:53:42
#
#-------------------------------------------------

TOP = $$PWD

QT       += core gui multimedia

TARGET = uvcengine
TEMPLATE = lib
CONFIG += plugin

DESTDIR = $$[QT_INSTALL_PLUGINS]/mediaservice

SOURCES += uvcserviceplugin.cpp \
    uvccameraservice.cpp \
    uvcvideodevicecontrol.cpp \
    uvccameracontrol.cpp \
    uvccamerasession.cpp \
    uvcvideorenderercontrol.cpp \
    uvccameraviewfindersettingscontrol.cpp

HEADERS += uvcserviceplugin.h \
    uvccameraservice.h \
    uvcvideodevicecontrol.h \
    uvccameracontrol.h \
    uvccamerasession.h \
    uvcvideorenderercontrol.h \
    uvccameraviewfindersettingscontrol.h
DISTFILES += uvcengine.json

unix {
    target.path = /usr/lib
    INSTALLS += target
}

# Libraries required to access pupil lab's cameras
# LIBUSB-1.0
INCLUDEPATH += "$${TOP}/deps/libusb-1.0/include/"
win32:contains(QMAKE_HOST.arch, x86_64) {
    LIBS += "-L$${TOP}/deps/libusb-1.0/x64"
} else {
    LIBS += "-L$${TOP}/deps/libusb-1.0/x86"
}
LIBS += -llibusb-1.0

# LIBUVC
INCLUDEPATH += "$${TOP}/deps/libuvc/include/"
win32:contains(QMAKE_HOST.arch, x86_64) {
    LIBS += "-L$${TOP}/deps/libuvc/lib/x64"
} else {
    LIBS += "-L$${TOP}/deps/libuvc/lib/x86"
}
LIBS += -luvc

# PTHREADS
INCLUDEPATH += "$${TOP}/deps/pthreads-2.9.1/include/"
win32:contains(QMAKE_HOST.arch, x86_64) {
    LIBS += "-L$${TOP}/deps/pthreads-2.9.1/lib/x64/"
} else {
    LIBS += "-L$${TOP}/deps/pthreads-2.9.1/lib/x86/"
}
LIBS += -lpthreadVC2

# Work around for bad visual studio update (msvc14)
win32{
        INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
    contains(QMAKE_HOST.arch, x86_64) {
        LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x64"
    } else {
        LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x86"
    }
}