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

This commit is contained in:
Xavier Claessens 2019-10-24 15:27:42 -04:00
parent 90223a2702
commit 7d31f7a9e5
2 changed files with 14 additions and 4 deletions

View file

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

View file

@ -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],