analytics: Add documentation to hotdoc build

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6253>
This commit is contained in:
Olivier Crête 2024-03-03 18:35:09 -05:00 committed by Tim-Philipp Müller
parent 7a14b48dad
commit caac280466
5 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,3 @@
# Analytics metadata library
> NOTE: This library API is considered *unstable*

View file

@ -0,0 +1 @@
gi-index

View file

@ -135,6 +135,7 @@ if build_gir
{'name': 'cuda', 'gir': gst_cuda_gir, 'lib': gstcuda_dep, 'c_source_patterns': ['*.h', '*.cpp']},
{'name': 'dxva', 'gir': dxva_gir, 'lib': gstdxva_dep, 'c_source_patterns': ['*.h', '*.cpp']},
{'name': 'mse', 'gir': mse_gir, 'lib': gstmse_dep, 'suffix': 'lib'},
{'name': 'analytics', 'gir': analytics_gir, 'lib': gstanalytics_dep},
]
if gstopencv_dep.found()

View file

@ -25,7 +25,7 @@
#include <gst/gst.h>
#ifndef GST_ANALYTICS_META_API
# ifdef BUILDING_GST_ANALYTIC_META
# ifdef BUILDING_GST_ANALYTICS
# define GST_ANALYTICS_META_API GST_API_EXPORT
# else
# define GST_ANALYTICS_META_API GST_API_IMPORT

View file

@ -14,7 +14,7 @@ install_headers(analytics_headers, subdir : 'gstreamer-1.0/gst/analytics')
pkg_name = 'gstreamer-analytics-1.0'
gstanalytics = library('gstanalytics-' + api_version,
analytics_sources,
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_ANALYTIC_META', '-DG_LOG_DOMAIN="Gstreamer-Analytic"'],
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_ANALYTICS', '-DG_LOG_DOMAIN="GStreamer-Analytics"'],
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
@ -47,9 +47,9 @@ if build_gir
}
library_def += {'gir': [gir]}
if not static_build
analyticsmeta_gir = gnome.generate_gir(gstanalytics, kwargs: gir)
library_def += {'gir_targets': library_def.get('gir_targets', []) + [analyticsmeta_gir]}
gen_sources += analyticsmeta_gir
analytics_gir = gnome.generate_gir(gstanalytics, kwargs: gir)
library_def += {'gir_targets': library_def.get('gir_targets', []) + [analytics_gir]}
gen_sources += analytics_gir
endif
endif
gst_libraries += [[pkg_name, library_def]]