Browse Source

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.
Jim 3 years ago
parent
commit
3883c9e120
2 changed files with 2 additions and 0 deletions
  1. 1 0
      CMakeLists.txt
  2. 1 0
      plugins/obs-ffmpeg/obs-ffmpeg-config.h.in

+ 1 - 0
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)

+ 1 - 0
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@