Skip to content
Snippets Groups Projects
Commit 560c70d6 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build/cmake: allow to build with hardware acceleration support

Change-Id: Ie525f767ab3985e54be6420bd3d3346b040d487b
parent e73fbc96
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ option(JAMI_PLUGIN "Build with plugin support" ON)
option(JAMI_JNI "Build the JNI binding" OFF)
option(JAMI_DBUS "Build the DBUS binding" OFF)
option(JAMI_VIDEO "Build with video support" ON)
option(JAMI_VIDEO_ACCEL "Build video hardware acceleration support" ON)
option(BUILD_CONTRIB "Build contrib to CONTRIB_PATH" ON)
option(BUILD_EXTRA_TOOLS "Build extra tools" OFF)
......@@ -261,6 +262,9 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
)
if (JAMI_VIDEO)
target_compile_definitions(${PROJECT_NAME} PRIVATE ENABLE_VIDEO)
if (JAMI_VIDEO_ACCEL)
target_compile_definitions(${PROJECT_NAME} PRIVATE RING_ACCEL)
endif()
endif()
if (JAMI_PLUGIN)
target_compile_definitions(${PROJECT_NAME} PRIVATE ENABLE_PLUGIN)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment