From 3883c9e1202cdcbf0538fa23b7c797c3ef9a84af Mon Sep 17 00:00:00 2001 From: Jim Date: Fri, 22 Apr 2022 17:35:30 -0700 Subject: [PATCH] cmake: Add option to build hardware HEVC encoders Allows the ability to enable HEVC encoders whenever we add them. Disabled by default for now for obvious reasons. --- CMakeLists.txt | 1 + plugins/obs-ffmpeg/obs-ffmpeg-config.h.in | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1ec9107d..12bb534ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ if(NOT CMAKE_BUILD_TYPE) endif() # Global project options +option(ENABLE_HEVC "Enable HEVC encoders" OFF) option(BUILD_FOR_DISTRIBUTION "Build for distribution (enables optimisations)" OFF) option(ENABLE_UI "Enable building with UI (requires Qt)" ON) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-config.h.in b/plugins/obs-ffmpeg/obs-ffmpeg-config.h.in index 8f528b10a..76ba515be 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-config.h.in +++ b/plugins/obs-ffmpeg/obs-ffmpeg-config.h.in @@ -15,3 +15,4 @@ #endif #define ENABLE_FFMPEG_LOGGING @ENABLE_FFMPEG_LOGGING@ +#define ENABLE_HEVC @ENABLE_HEVC@