mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
amc: Change plugin name if it's built for Magic Leap
This commit is contained in:
parent
90223a2702
commit
7d31f7a9e5
2 changed files with 14 additions and 4 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue