Commit 7d31f7a9 authored by Xavier Claessens's avatar Xavier Claessens

amc: Change plugin name if it's built for Magic Leap

parent 90223a27
Pipeline #77541 failed with stages
in 44 minutes and 45 seconds
......@@ -2410,7 +2410,7 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info,
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
androidmedia,
"Android Media plugin",
PLUGIN_NAME,
PLUGIN_DESCRIPTION,
plugin_init,
PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
......@@ -46,9 +46,18 @@ if have_mlsdk
]
extra_deps = ml_deps
have_jni_h = false
extra_cargs += [
'-DPLUGIN_NAME=mlmedia',
'-DPLUGIN_DESCRIPTION="Magic Leap Media plugin"'
]
plugin_name = 'gstmlmedia'
else
have_jni_h = cc.has_header('jni.h', required : amc_opt)
extra_cargs += '-DHAVE_JNI_H'
extra_cargs += [
'-DHAVE_JNI_H',
'-DPLUGIN_NAME=androidmedia',
'-DPLUGIN_DESCRIPTION="Android Media plugin"'
]
androidmedia_sources += [
'gstahcsrc.c',
'gstahssrc.c',
......@@ -62,10 +71,11 @@ else
'jni/gstamcsurface.c',
'jni/gstamcsurfacetexture-jni.c',
]
plugin_name = 'gstandroidmedia'
endif
if have_jni_h or have_mlsdk
gstandroidmedia = library('gstandroidmedia',
gstandroidmedia = library(plugin_name,
androidmedia_sources,
c_args : [gst_plugins_bad_args, extra_cargs],
include_directories : [configinc],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment