diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index 4bd40cfd4b09cbec6c2ac763d53ff505706e3e6b..910fb3dcd30a6b2e5a8a3f83c24c1442317a1c14 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -1392,6 +1392,13 @@ contains (CONFIG, DISABLE_VIDEOSTREAMING) { include(src/VideoStreaming/VideoStreaming.pri) } +!VideoEnabled { + HEADERS += \ + src/VideoStreaming/GLVideoItemStub.h + SOURCES += \ + src/VideoStreaming/GLVideoItemStub.cc +} + #------------------------------------------------------------------------------------- # Android diff --git a/src/VideoStreaming/VideoStreaming.pri b/src/VideoStreaming/VideoStreaming.pri index 7be758c6745ca47b3fb4c7ce64cbb0866201f6a7..adf5843648e6b6214a50883ff8838dda588a4182 100644 --- a/src/VideoStreaming/VideoStreaming.pri +++ b/src/VideoStreaming/VideoStreaming.pri @@ -135,10 +135,4 @@ VideoEnabled { } else { message("Skipping support for video streaming (Unsupported platform)") } - - SOURCES += \ - $$PWD/GLVideoItemStub.cc - - HEADERS += \ - $$PWD/GLVideoItemStub.h }