Made av libs private to liblmsav
This commit is contained in:
@@ -6,16 +6,15 @@ add_library(lmsav SHARED
|
||||
impl/AvTypes.cpp
|
||||
)
|
||||
|
||||
# TODO make av libs private
|
||||
target_include_directories(lmsav INTERFACE
|
||||
include
|
||||
${AVCODEC_INCLUDE_DIR}
|
||||
${AVFORMAT_INCLUDE_DIR}
|
||||
${AVUTIL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_include_directories(lmsav PRIVATE
|
||||
include/
|
||||
${AVCODEC_INCLUDE_DIR}
|
||||
${AVFORMAT_INCLUDE_DIR}
|
||||
${AVUTIL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(lmsav PUBLIC
|
||||
@@ -24,6 +23,9 @@ target_link_libraries(lmsav PUBLIC
|
||||
avutil
|
||||
std::filesystem
|
||||
wt
|
||||
)
|
||||
|
||||
target_link_libraries(lmsav PRIVATE
|
||||
${AVFORMAT_LIBRARY}
|
||||
${AVUTIL_LIBRARY}
|
||||
)
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
|
||||
#include "av/AvInfo.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavutil/error.h>
|
||||
}
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "utils/Logger.hpp"
|
||||
|
||||
@@ -21,14 +21,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavutil/error.h>
|
||||
}
|
||||
|
||||
#include <chrono>
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
@@ -38,6 +30,8 @@ extern "C"
|
||||
|
||||
#include "AvTypes.hpp"
|
||||
|
||||
struct AVFormatContext;
|
||||
|
||||
namespace Av
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user