mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
Create symlinks to built subprojects
This commit is contained in:
parent
e54a4ac66c
commit
85880a3a22
3 changed files with 36 additions and 1 deletions
21
.gitignore
vendored
21
.gitignore
vendored
|
@ -1 +1,22 @@
|
|||
*build*/
|
||||
gst-devtools
|
||||
gst-editing-services
|
||||
gst-libav
|
||||
gst-plugins-bad
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
gst-plugins-ugly
|
||||
gst-python
|
||||
gstreamer
|
||||
__pycache__
|
||||
meson/
|
||||
subprojects/gst-devtools/
|
||||
subprojects/gst-editing-services/
|
||||
subprojects/gst-libav/
|
||||
subprojects/gst-plugins-bad/
|
||||
subprojects/gst-plugins-base/
|
||||
subprojects/gst-plugins-good/
|
||||
subprojects/gst-plugins-ugly/
|
||||
subprojects/gst-python/
|
||||
subprojects/gstreamer/
|
||||
subprojects/glib/
|
||||
|
|
|
@ -56,7 +56,7 @@ def get_subprocess_env(options):
|
|||
|
||||
prepend_env_var(env, "GST_PLUGIN_PATH", projpath)
|
||||
|
||||
env["CURRENT_GST"] = os.path.normpath(SCRIPTDIR + "/subprojects")
|
||||
env["CURRENT_GST"] = os.path.normpath(SCRIPTDIR)
|
||||
env["GST_VALIDATE_SCENARIOS_PATH"] = os.path.normpath(
|
||||
"%s/subprojects/gst-devtools/validate/data/scenarios" % SCRIPTDIR)
|
||||
env["GST_VALIDATE_PLUGIN_PATH"] = os.path.normpath(
|
||||
|
|
14
meson.build
14
meson.build
|
@ -41,8 +41,22 @@ if get_option('enable_python')
|
|||
subprojects += ['gst-python']
|
||||
endif
|
||||
|
||||
python3 = find_program('python3')
|
||||
symlink = '''
|
||||
import os
|
||||
|
||||
os.symlink(os.path.join('@1@', 'subprojects', '@0@'),
|
||||
os.path.join('@1@', '@0@'))
|
||||
'''
|
||||
foreach subproj: subprojects
|
||||
subproject(subproj, version: gst_version)
|
||||
|
||||
cmdres = run_command(python3, '-c', symlink.format(subproj, meson.current_source_dir()))
|
||||
if cmdres.returncode() == 0
|
||||
message('Created symlink to ' + subproj)
|
||||
else
|
||||
message('Could not create symlink to @0@'.format(subproj))
|
||||
endif
|
||||
endforeach
|
||||
|
||||
setenv = find_program('gst-uninstalled.py')
|
||||
|
|
Loading…
Reference in a new issue