mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01: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_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
androidmedia,
|
PLUGIN_NAME,
|
||||||
"Android Media plugin",
|
PLUGIN_DESCRIPTION,
|
||||||
plugin_init,
|
plugin_init,
|
||||||
PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|
PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|
||||||
|
|
|
@ -46,9 +46,18 @@ if have_mlsdk
|
||||||
]
|
]
|
||||||
extra_deps = ml_deps
|
extra_deps = ml_deps
|
||||||
have_jni_h = false
|
have_jni_h = false
|
||||||
|
extra_cargs += [
|
||||||
|
'-DPLUGIN_NAME=mlmedia',
|
||||||
|
'-DPLUGIN_DESCRIPTION="Magic Leap Media plugin"'
|
||||||
|
]
|
||||||
|
plugin_name = 'gstmlmedia'
|
||||||
else
|
else
|
||||||
have_jni_h = cc.has_header('jni.h', required : amc_opt)
|
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 += [
|
androidmedia_sources += [
|
||||||
'gstahcsrc.c',
|
'gstahcsrc.c',
|
||||||
'gstahssrc.c',
|
'gstahssrc.c',
|
||||||
|
@ -62,10 +71,11 @@ else
|
||||||
'jni/gstamcsurface.c',
|
'jni/gstamcsurface.c',
|
||||||
'jni/gstamcsurfacetexture-jni.c',
|
'jni/gstamcsurfacetexture-jni.c',
|
||||||
]
|
]
|
||||||
|
plugin_name = 'gstandroidmedia'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if have_jni_h or have_mlsdk
|
if have_jni_h or have_mlsdk
|
||||||
gstandroidmedia = library('gstandroidmedia',
|
gstandroidmedia = library(plugin_name,
|
||||||
androidmedia_sources,
|
androidmedia_sources,
|
||||||
c_args : [gst_plugins_bad_args, extra_cargs],
|
c_args : [gst_plugins_bad_args, extra_cargs],
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
|
|
Loading…
Reference in a new issue