summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-05 20:35:12 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2019-03-21 15:08:03 +0530
commita4ab574c92fdb39ac2aedcc0414373f6effc08b1 (patch)
treeffc2f3a7da2480c87533f0ee885d91237451e1f7
parent7e0bedc1dfea0d085cffc6b9f56686dc0af49b73 (diff)
gst-uninstalled.py: Look for both 'build' and '_build' for builddir
-rwxr-xr-xgst-uninstalled.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst-uninstalled.py b/gst-uninstalled.py
index cdb8046..5263373 100755
--- a/gst-uninstalled.py
+++ b/gst-uninstalled.py
@@ -18,6 +18,10 @@ from common import get_meson
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
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 listify(o):
@@ -224,7 +228,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(prog="gstreamer-uninstalled")
parser.add_argument("--builddir",
- default=os.path.join(SCRIPTDIR, "build"),
+ default=DEFAULT_BUILDDIR,
help="The meson build directory")
parser.add_argument("--srcdir",
default=SCRIPTDIR,