Bladeren bron

libobs: Include HEVC files only if enabled

tytan652 3 jaren geleden
bovenliggende
commit
7ed5415a2b
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4 2
      libobs/CMakeLists.txt

+ 4 - 2
libobs/CMakeLists.txt

@@ -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(