2021-06-12 21:08:20 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
project(CBS)
|
|
|
|
|
|
|
|
SET(CBS_SOURCE_FILES
|
|
|
|
include/cbs/av1.h
|
|
|
|
include/cbs/cbs_av1.h
|
|
|
|
include/cbs/cbs_bsf.h
|
|
|
|
include/cbs/cbs.h
|
|
|
|
include/cbs/cbs_h2645.h
|
|
|
|
include/cbs/cbs_h264.h
|
|
|
|
include/cbs/cbs_h265.h
|
|
|
|
include/cbs/cbs_jpeg.h
|
|
|
|
include/cbs/cbs_mpeg2.h
|
|
|
|
include/cbs/cbs_sei.h
|
|
|
|
include/cbs/cbs_vp9.h
|
|
|
|
include/cbs/h2645_parse.h
|
|
|
|
include/cbs/h264.h
|
|
|
|
include/cbs/hevc.h
|
|
|
|
include/cbs/sei.h
|
2021-06-13 19:29:32 +00:00
|
|
|
include/cbs/h264_levels.h
|
2021-06-12 21:08:20 +00:00
|
|
|
|
|
|
|
cbs.c
|
|
|
|
cbs_h2645.c
|
|
|
|
cbs_av1.c
|
|
|
|
cbs_vp9.c
|
|
|
|
cbs_mpeg2.c
|
|
|
|
cbs_jpeg.c
|
|
|
|
cbs_sei.c
|
|
|
|
h2645_parse.c
|
2021-06-13 19:29:32 +00:00
|
|
|
h264_levels.c
|
2021-06-12 21:08:20 +00:00
|
|
|
|
|
|
|
bytestream.h
|
|
|
|
cbs_internal.h
|
|
|
|
defs.h
|
|
|
|
get_bits.h
|
|
|
|
h264_ps.h
|
|
|
|
h264_sei.h
|
|
|
|
hevc_sei.h
|
|
|
|
intmath.h
|
|
|
|
mathops.h
|
|
|
|
put_bits.h
|
|
|
|
vlc.h
|
2021-06-15 16:31:40 +00:00
|
|
|
config.h
|
2021-06-12 21:08:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(include)
|
|
|
|
|
2021-06-14 19:09:11 +00:00
|
|
|
if(DEFINED SUNSHINE_PREPARED_BINARIES)
|
|
|
|
include_directories(${SUNSHINE_PREPARED_BINARIES}/include)
|
|
|
|
endif()
|
|
|
|
|
2021-06-12 21:08:20 +00:00
|
|
|
add_compile_definitions(
|
|
|
|
HAVE_THREADS=1
|
|
|
|
HAVE_FAST_UNALIGNED
|
|
|
|
|
|
|
|
PIC=1
|
|
|
|
|
|
|
|
CONFIG_CBS_AV1=1
|
|
|
|
CONFIG_CBS_H264=1
|
|
|
|
CONFIG_CBS_H265=1
|
|
|
|
CONFIG_CBS_JPEG=1
|
|
|
|
CONFIG_CBS_MPEG2=1
|
|
|
|
CONFIG_CBS_VP9=1
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library(cbs ${CBS_SOURCE_FILES})
|
2021-06-14 19:09:11 +00:00
|
|
|
target_compile_options(cbs PRIVATE -Wall -Wno-incompatible-pointer-types -Wno-maybe-uninitialized -Wno-format -Wno-format-extra-args)
|