In the case of wine, the env can not be uninstalled, also developers
do not necessiraly care about the fact that it is "uninstalled", the
important thing is that it is a development environment, meaning
that they can work on GStreamer or with GStreamer in the environment.
I still keep the `uninstalled` target to avoid changing people's
habits for now.
Check out this module and run meson on it, and it will git clone the other
GStreamer modules as [meson subprojects](http://mesonbuild.com/Subprojects.html)
and build everything in one go. Once that is done you can switch into an
Check out this module and run meson on it, and it will git clone the other
GStreamer modules as [meson subprojects](http://mesonbuild.com/Subprojects.html)
and build everything in one go. Once that is done you can switch into an
-uninstalled environment which allows you to easily develop and test the latest
+development environment which allows you to easily develop and test the latest
version of GStreamer without the need to install anything or touch an existing
GStreamer system installation.
version of GStreamer without the need to install anything or touch an existing
GStreamer system installation.
cause Meson to error out if the plugin could not be enabled. This also works
for all plugins in all GStreamer repositories.
cause Meson to error out if the plugin could not be enabled. This also works
for all plugins in all GStreamer repositories.
-## Uninstalled environment
+## Development environment target
-gst-build also contains a special `uninstalled` target that lets you enter an
-uninstalled development environment where you will be able to work on GStreamer
+gst-build also contains a special `devenv` target that lets you enter an
+development environment where you will be able to work on GStreamer
easily. You can get into that environment running:
```
easily. You can get into that environment running:
```
-ninja -C build/ uninstalled
```
If your operating system handles symlinks, built modules source code will be
```
If your operating system handles symlinks, built modules source code will be
`gstreamer/`. Otherwise they will be present in `subprojects/`. You can simply
hack in there and to rebuild you just need to rerun `ninja -C build/`.
`gstreamer/`. Otherwise they will be present in `subprojects/`. You can simply
hack in there and to rebuild you just need to rerun `ninja -C build/`.
-NOTE: In the uninstalled environment, a fully usable prefix is also configured
+NOTE: In the development environment, a fully usable prefix is also configured
in `gst-build/prefix` where you can install any extra dependency/project.
## Update git subprojects
in `gst-build/prefix` where you can install any extra dependency/project.
## Update git subprojects
-`gst-build` has been created primarily for [uninstalled usage](#uninstalled-environment),
+`gst-build` has been created primarily for [development usage](#development-environment-target),
but you can also install everything that is built into a predetermined prefix like so:
```
but you can also install everything that is built into a predetermined prefix like so:
```
result = subprocess.check_output(command)
return result.decode().strip()
result = subprocess.check_output(command)
return result.decode().strip()
-# https://stackoverflow.com/questions/1871549/determine-if-python-is-running-inside-virtualenv
-def in_venv():
- return (hasattr(sys, 'real_prefix') or
- (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix))
-
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog="gstreamer-uninstalled")
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog="gstreamer-uninstalled")
assert(cmdres.returncode() == 0, 'Could not create plugins path: @0@'.format(cmdres.stderr()))
message('Building subprojects: ' + ', '.join(subprojects_names))
assert(cmdres.returncode() == 0, 'Could not create plugins path: @0@'.format(cmdres.stderr()))
message('Building subprojects: ' + ', '.join(subprojects_names))
-setenv = find_program('gst-uninstalled.py')
-run_target('uninstalled', command : [setenv, '--builddir=@0@'.format(meson.build_root()),
- '--srcdir=@0@'.format(meson.source_root())])
+setenv = find_program('gst-env.py')
+
+devenv_cmd = [setenv, '--builddir=@0@'.format(meson.build_root()),
+ '--srcdir=@0@'.format(meson.source_root())]
+
+run_target('uninstalled', command : devenv_cmd)
+run_target('devenv', command : devenv_cmd)
update = find_program('git-update')
run_target('git-update', command : [update])
update = find_program('git-update')
run_target('git-update', command : [update])