diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-04-16 19:38:29 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-04-16 19:38:29 +0530 |
commit | 478836e85bcd59aed0d224a85cb3206acdc60799 (patch) | |
tree | 328c0311e6718724f92f29486b20be83613301a7 /gst-env.py | |
parent | 3e1c57553e82724a6708454a86a43ede25641566 (diff) | |
download | gstreamer-478836e85bcd59aed0d224a85cb3206acdc60799.tar.gz |
gst-env: Also look for `builddir` when hunting for a build dir
Diffstat (limited to 'gst-env.py')
-rwxr-xr-x | gst-env.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-env.py b/gst-env.py index 1f30a55f4c..fe21286784 100755 --- a/gst-env.py +++ b/gst-env.py @@ -27,10 +27,12 @@ from scripts.common import get_wine_shortpath SCRIPTDIR = os.path.dirname(os.path.realpath(__file__)) PREFIX_DIR = os.path.join(SCRIPTDIR, 'prefix') -# Use '_build' as the builddir instead of 'build' +# Look for the following build dirs: `build` `_build` `builddir` DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, 'build') if not os.path.exists(DEFAULT_BUILDDIR): DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, '_build') +if not os.path.exists(DEFAULT_BUILDDIR): + DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, 'builddir') TYPELIB_REG = re.compile(r'.*\.typelib$') SHAREDLIB_REG = re.compile(r'\.so|\.dylib|\.dll') |