libobs: Include HEVC files only if enabled

This commit is contained in:
tytan652 2022-05-06 13:20:33 +02:00 committed by Jim
parent 0c33069772
commit 7ed5415a2b

View File

@ -31,8 +31,6 @@ target_sources(
obs-encoder.c
obs-encoder.h
obs-ffmpeg-compat.h
obs-hevc.c
obs-hevc.h
obs-hotkey.c
obs-hotkey.h
obs-hotkeys.h
@ -203,6 +201,10 @@ target_sources(
util/darray.h
util/util.hpp)
if(ENABLE_HEVC)
target_sources(libobs PRIVATE obs-hevc.c obs-hevc.h)
endif()
# Contents of "data" dir already automatically added to bundles on macOS
if(NOT OS_MACOS)
target_sources(