2023-07-03 20:44:22 +00:00
|
|
|
analytics_sources = files( 'gstanalyticsmeta.c',
|
|
|
|
'gstanalyticsclassificationmtd.c',
|
|
|
|
'gstanalyticsobjectdetectionmtd.c',
|
|
|
|
'gstanalyticsobjecttrackingmtd.c')
|
|
|
|
|
|
|
|
analytics_headers = files( 'analytics.h',
|
|
|
|
'gstanalyticsmeta.h',
|
|
|
|
'analytics-meta-prelude.h',
|
|
|
|
'gstanalyticsclassificationmtd.h',
|
|
|
|
'gstanalyticsobjectdetectionmtd.h',
|
|
|
|
'gstanalyticsobjecttrackingmtd.h')
|
|
|
|
install_headers(analytics_headers, subdir : 'gstreamer-1.0/gst/analytics')
|
|
|
|
|
|
|
|
pkg_name = 'gstreamer-analytics-1.0'
|
|
|
|
gstanalytics = library('gstanalytics-' + api_version,
|
|
|
|
analytics_sources,
|
2024-03-03 23:35:09 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_ANALYTICS', '-DG_LOG_DOMAIN="GStreamer-Analytics"'],
|
2023-07-03 20:44:22 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
darwin_versions : osxversion,
|
|
|
|
install : true,
|
2024-01-05 18:54:21 +00:00
|
|
|
dependencies : [gstbase_dep, gstvideo_dep])
|
2023-07-03 20:44:22 +00:00
|
|
|
|
|
|
|
gst_libraries += [[pkg_name, {'lib': gstanalytics}]]
|
|
|
|
pkgconfig.generate(gstanalytics,
|
|
|
|
libraries : [gst_dep, gstbase_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : pkg_name,
|
|
|
|
description : 'GStreamer analytics metadata library',
|
|
|
|
)
|
|
|
|
gen_sources = []
|
|
|
|
|
|
|
|
if build_gir
|
|
|
|
gir = {
|
|
|
|
'sources' : analytics_sources + analytics_headers,
|
|
|
|
'namespace' : 'GstAnalytics',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : ['GstAnalytics', 'Gst'],
|
|
|
|
'symbol_prefix' : ['gst_analytics', 'gst'],
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstBase-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
|
2024-01-05 18:54:21 +00:00
|
|
|
'dependencies' : [gstbase_dep, gstvideo_dep]
|
2023-07-03 20:44:22 +00:00
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
2024-03-03 23:35:09 +00:00
|
|
|
analytics_gir = gnome.generate_gir(gstanalytics, kwargs: gir)
|
|
|
|
library_def += {'gir_targets': library_def.get('gir_targets', []) + [analytics_gir]}
|
|
|
|
gen_sources += analytics_gir
|
2023-07-03 20:44:22 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gstanalytics_dep = declare_dependency(link_with : gstanalytics,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
sources: gen_sources,
|
2024-01-05 18:54:21 +00:00
|
|
|
dependencies : [gstbase_dep, gstvideo_dep])
|
2023-07-03 20:44:22 +00:00
|
|
|
|
|
|
|
meson.override_dependency(pkg_name, gstanalytics_dep)
|