mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
test for GStreamer>= 1.24, define GST_124 if found
This commit is contained in:
@@ -47,6 +47,12 @@ if ( GST_MACOS )
|
||||
message ( STATUS "define GST_MACOS" )
|
||||
endif()
|
||||
|
||||
if ( GST_124 )
|
||||
add_definitions( -DGST_124 )
|
||||
message ( STATUS "define GST_124" )
|
||||
endif()
|
||||
|
||||
|
||||
add_executable( uxplay uxplay.cpp )
|
||||
target_link_libraries( uxplay
|
||||
renderers
|
||||
|
||||
@@ -38,6 +38,13 @@ pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
|
||||
gstreamer-app-1.0>=1.4
|
||||
)
|
||||
|
||||
# temporary hack to deal with an issue in gstreamer 1.24
|
||||
pkg_check_modules ( GST124 gstreamer-1.0>=1.24 )
|
||||
if ( GST124_FOUND )
|
||||
message( STATUS "*** GStreamer >= 1.24: GST_124 will be defined" )
|
||||
set( GST_124 "1" CACHE STRING "define GST_124" )
|
||||
endif()
|
||||
|
||||
add_library( renderers
|
||||
STATIC
|
||||
audio_renderer_gstreamer.c
|
||||
|
||||
Reference in New Issue
Block a user