This should make "meson devenv" closer to what "gst-env.py" sets.
- GST_VALIDATE_SCENARIOS_PATH
- GST_VALIDATE_APPS_DIR
- GST_OMX_CONFIG_DIR
- GST_ENCODING_TARGET_PATH
- GST_PRESET_PATH
- GST_PLUGIN_SCANNER
- GST_PTP_HELPER
- _GI_OVERRIDES_PATH
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1768>
install_subdir('rtsp_overrides',
install_dir: get_option('datadir') + '/gstreamer-' +
apiversion + '/validate/scenarios')
+
+env = environment()
+env.prepend('GST_VALIDATE_SCENARIOS_PATH', meson.current_source_dir())
+meson.add_devenv(env)
-install_data(['gi/overrides/GES.py'], install_dir: pygi_override_dir)
\ No newline at end of file
+install_data(['gi/overrides/GES.py'], install_dir: pygi_override_dir)
+
+env = environment()
+env.prepend('_GI_OVERRIDES_PATH', meson.current_source_dir() / 'gi/overrides')
+meson.add_devenv(env)
install_data (['geslaunch.py'],
install_dir : join_paths(get_option('libdir'),
'gst-validate-launcher', 'python', 'launcher', 'apps'))
+
+env = environment()
+env.prepend('GST_VALIDATE_APPS_DIR', meson.current_source_dir())
+meson.add_devenv(env)
'TEST_CA_CERT_PATH=' + join_paths(meson.project_build_root(), 'signalling')])
endforeach
endif
+
+env = environment()
+env.prepend('GST_VALIDATE_SCENARIOS_PATH', meson.current_source_dir() / 'validate/scenarios')
+env.prepend('GST_VALIDATE_APPS_DIR', meson.current_source_dir() / 'validate')
+meson.add_devenv(env)
subdir (sub)
# Used by tests to load the proper conf file
omx_config_dir = join_paths (meson.current_source_dir(), sub)
+ meson.add_devenv({'GST_OMX_CONFIG_DIR': omx_config_dir})
else
omx_config_dir = ''
endif
have_omx_vp8 = cc.has_header_symbol(
'OMX_Video.h',
'OMX_VIDEO_CodingVP8',
- prefix : extra_video_headers,
+ prefix : extra_video_headers,
args : gst_omx_args,
include_directories : [omx_inc])
if have_omx_vp8
['device', ['targets/device/dvd.gep',]],
]
+srcdirs = []
+
foreach path_targets : encoding_targets
dir = join_paths(encoding_targetsdir, path_targets.get(0))
etargets = path_targets.get(1)
install_data(sources: etargets, install_dir: dir)
+ srcdirs += meson.current_source_dir() / 'targets' / path_targets.get(0)
endforeach
+
+env = environment()
+env.prepend('GST_ENCODING_TARGET_PATH', srcdirs)
+meson.add_devenv(env)
plugins += [gstvoamrwbenc]
install_data('GstVoAmrwbEnc.prs', install_dir: presetdir)
+ env = environment()
+ env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+ meson.add_devenv(env)
endif
plugins += [gstfreeverb]
install_data('GstFreeverb.prs', install_dir: presetdir)
+
+env = environment()
+env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+meson.add_devenv(env)
plugins += [gstvpx]
install_data(sources: ['GstVP8Enc.prs'], install_dir: presetdir)
+ env = environment()
+ env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+ meson.add_devenv(env)
endif
install_data(sources: ['GstIirEqualizer3Bands.prs',
'GstIirEqualizer10Bands.prs'], install_dir: presetdir)
+
+env = environment()
+env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+meson.add_devenv(env)
plugins += [gstisomp4]
install_data(sources: 'GstQTMux.prs', install_dir: presetdir)
+
+env = environment()
+env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+meson.add_devenv(env)
pkgconfig.generate(amrnb, install_dir : plugins_pkgconfig_install_dir)
plugins += [amrnb]
install_data(sources: 'GstAmrnbEnc.prs', install_dir: presetdir)
+
+ env = environment()
+ env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+ meson.add_devenv(env)
endif
plugins += [gstx264]
install_data(sources: 'GstX264Enc.prs', install_dir: presetdir)
+ env = environment()
+ env.prepend('GST_PRESET_PATH', meson.current_source_dir())
+ meson.add_devenv(env)
endif
install_dir : pygi_override_dir,
include_directories : [configinc],
dependencies : [gst_dep, python_dep, pygobject_dep])
+
+env = environment()
+env.prepend('_GI_OVERRIDES_PATH', [
+ meson.current_source_dir(),
+ meson.current_build_dir()
+])
+meson.add_devenv(env)
-executable('gst-plugin-scanner',
+exe = executable('gst-plugin-scanner',
'gst-plugin-scanner.c',
c_args : gst_c_args,
include_directories : [configinc],
install: true,
)
+meson.add_devenv({'GST_PLUGIN_SCANNER': exe.full_path()})
+
# Used in test env setup to make tests find plugin scanner in build tree
gst_scanner_dir = meson.current_build_dir()
error('Unexpected ptp helper permissions value: ' + with_ptp_helper_permissions)
endif
- executable('gst-ptp-helper', 'gst-ptp-helper.c',
+ exe = executable('gst-ptp-helper', 'gst-ptp-helper.c',
c_args : gst_c_args,
include_directories : [configinc, libsinc],
dependencies : [gio_dep, gobject_dep, glib_dep, mathlib, gst_dep, cap_dep],
meson.add_install_script('ptp_helper_post_install.sh',
helpers_install_dir, with_ptp_helper_permissions,
setcap_prog.found() ? setcap_prog.full_path() : '')
+ meson.add_devenv({'GST_PTP_HELPER': exe.full_path()})
endif
install_data(['gst_gdb.py', 'glib_gobject_helper.py'],