Split client/server ffmpeg dependencies
This commit is contained in:
+2
-2
@@ -114,7 +114,7 @@ if (WIVRN_BUILD_SERVER)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIVRN_USE_VAAPI)
|
if (WIVRN_USE_VAAPI)
|
||||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil)
|
||||||
pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm)
|
pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -200,7 +200,7 @@ if (WIVRN_BUILD_CLIENT)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)
|
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)
|
||||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
pkg_check_modules(LIBAV_CLIENT REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale)
|
||||||
find_package(Fontconfig REQUIRED)
|
find_package(Fontconfig REQUIRED)
|
||||||
|
|
||||||
if (WIVRN_USE_SYSTEM_OPENXR)
|
if (WIVRN_USE_SYSTEM_OPENXR)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ else()
|
|||||||
target_link_libraries(wivrn openxr_loader)
|
target_link_libraries(wivrn openxr_loader)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(wivrn PkgConfig::LIBAV Fontconfig::Fontconfig CURL::libcurl)
|
target_link_libraries(wivrn PkgConfig::LIBAV_CLIENT Fontconfig::Fontconfig CURL::libcurl)
|
||||||
|
|
||||||
file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS
|
file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS
|
||||||
"decoder/ffmpeg/*.cpp")
|
"decoder/ffmpeg/*.cpp")
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavfilter/avfilter.h>
|
|
||||||
#include <libavutil/hwcontext.h>
|
#include <libavutil/hwcontext.h>
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user