mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
gst-uninstalled.py: Look for both 'build' and '_build' for builddir
This commit is contained in:
parent
f164b8d93f
commit
a57019296b
1 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,10 @@ from common import get_meson
|
||||||
|
|
||||||
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
|
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
|
||||||
PREFIX_DIR = os.path.join(SCRIPTDIR, 'prefix')
|
PREFIX_DIR = os.path.join(SCRIPTDIR, 'prefix')
|
||||||
|
# Use '_build' as the builddir instead of 'build'
|
||||||
|
DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, 'build')
|
||||||
|
if not os.path.exists(DEFAULT_BUILDDIR):
|
||||||
|
DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, '_build')
|
||||||
|
|
||||||
|
|
||||||
def prepend_env_var(env, var, value):
|
def prepend_env_var(env, var, value):
|
||||||
|
@ -203,7 +207,7 @@ if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(prog="gstreamer-uninstalled")
|
parser = argparse.ArgumentParser(prog="gstreamer-uninstalled")
|
||||||
|
|
||||||
parser.add_argument("--builddir",
|
parser.add_argument("--builddir",
|
||||||
default=os.path.join(SCRIPTDIR, "build"),
|
default=DEFAULT_BUILDDIR,
|
||||||
help="The meson build directory")
|
help="The meson build directory")
|
||||||
parser.add_argument("--srcdir",
|
parser.add_argument("--srcdir",
|
||||||
default=SCRIPTDIR,
|
default=SCRIPTDIR,
|
||||||
|
|
Loading…
Reference in a new issue