• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1######################################################################
2# qmake project file for qv4l2
3######################################################################
4
5TEMPLATE = app
6INCLUDEPATH += . ../libv4l2util ../../lib/include ../../include
7CONFIG += debug
8
9greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
10greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
11# opengl: to disable opengl suppport on Qt6 comment out the
12# following line
13greaterThan(QT_MAJOR_VERSION, 5): QT += openglwidgets
14
15# adjust to your local meson build path
16MESON_BUILD_PATH = $$PWD/build-meson
17
18# opengl: to disable opengl suppport comment out the following
19# line and the line '#define HAVE_QTGL 1' from ../../config.h
20QT += opengl
21
22QMAKE_CFLAGS += -include $$MESON_BUILD_PATH/config.h
23QMAKE_CXXFLAGS += -include $$MESON_BUILD_PATH/config.h
24
25INCLUDEPATH += $$PWD/../..
26INCLUDEPATH += $$PWD/../common
27INCLUDEPATH += $$PWD/../v4l2-ctl/
28INCLUDEPATH += $$PWD/../v4l2-compliance
29
30# Input
31HEADERS += alsa_stream.h
32HEADERS += capture-win-gl.h
33HEADERS += capture-win.h
34HEADERS += capture-win-qt.h
35HEADERS += general-tab.h
36HEADERS += qv4l2.h
37HEADERS += raw2sliced.h
38HEADERS += vbi-tab.h
39HEADERS += ../common/v4l2-tpg.h
40HEADERS += ../common/v4l2-tpg-colors.h
41HEADERS += $$MESON_BUILD_PATH/config.h
42
43SOURCES += alsa_stream.c
44SOURCES += capture-win.cpp
45SOURCES += capture-win-gl.cpp
46SOURCES += capture-win-qt.cpp
47SOURCES += ctrl-tab.cpp
48SOURCES += general-tab.cpp
49SOURCES += qv4l2.cpp
50SOURCES += raw2sliced.cpp
51SOURCES += tpg-tab.cpp
52SOURCES += vbi-tab.cpp
53SOURCES += ../v4l2-ctl/v4l2-tpg-core.c
54SOURCES += ../v4l2-ctl/v4l2-tpg-colors.c
55
56LIBS += -L$$MESON_BUILD_PATH/lib/libv4l2 -lv4l2
57LIBS += -L$$MESON_BUILD_PATH/lib/libv4lconvert -lv4lconvert
58LIBS += -L$$MESON_BUILD_PATH/utils/libv4l2util -lv4l2util
59LIBS += -L$$MESON_BUILD_PATH/utils/libmedia_dev -lmedia_dev
60LIBS += -lasound  # comment out in case alsa sound support is disabled/not available
61LIBS += -lrt -ldl -ljpeg
62
63RESOURCES += qv4l2.qrc
64