Skip to content

Commit

Permalink
BUILD: Add option to disable build with vpx
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Dec 23, 2018
1 parent 64c6ed2 commit 7c829ad
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ option(ENABLE_VORBIS "Enable building with Vorbis support" ON)
option(ENABLE_MAD "Enable building with MP3 support" ON)
option(ENABLE_FAAD "Enable building with AAC support" ON)
option(ENABLE_XVIDCORE "Enable building with H.263 support" ON)
option(ENABLE_VPX "Enable building with VP8/VP9 support" ON)


# -------------------------------------------------------------------------
Expand Down Expand Up @@ -317,6 +318,17 @@ if(ENABLE_XVIDCORE)
endif()
endif()

if(ENABLE_VPX)
find_package(VPX)
if(VPX_FOUND)
add_definitions(-DENABLE_VPX)
include_directories(${VPX_INCLUDE_DIR})
list(APPEND XOREOS_LIBRARIES ${VPX_LIBRARY})
else()
set(ENABLE_VPX OFF)
endif()
endif()

find_package(LibLZMA REQUIRED)
include_directories(${LIBLZMA_INCLUDE_DIR})
list(APPEND XOREOS_LIBRARIES ${LIBLZMA_LIBRARY})
Expand Down Expand Up @@ -535,3 +547,4 @@ message(STATUS " libmad: ${ENABLE_MAD}")
message(STATUS " libvorbis: ${ENABLE_VORBIS}")
message(STATUS " libfaad: ${ENABLE_FAAD}")
message(STATUS " xvidcore: ${ENABLE_XVIDCORE}")
message(STATUS " libvpx: ${ENABLE_VPX}")

0 comments on commit 7c829ad

Please sign in to comment.