Skip to content

Instantly share code, notes, and snippets.

@ninsbl
Created August 26, 2021 10:26
Show Gist options
  • Save ninsbl/668db3cb3f1367d8f94c8b77c81f96e7 to your computer and use it in GitHub Desktop.
Save ninsbl/668db3cb3f1367d8f94c8b77c81f96e7 to your computer and use it in GitHub Desktop.
#!/bin/sh
prefix=$OSGEO4W_ROOT_MSYS
exec_prefix=$OSGEO4W_ROOT_MSYS/bin
libdir=$OSGEO4W_ROOT_MSYS/lib
usage()
{
cat <<EOF
Usage: pdal-config [OPTIONS]
Options:
[--cflags]
[--cxxflags]
[--defines]
[--includes]
[--libs]
[--plugin-dir]
[--version]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
case $1 in
--libs)
echo -L$OSGEO4W_ROOT_MSYS/lib -lpdalcpp
;;
--plugin-dir)
echo $OSGEO4W_ROOT_MSYS/bin
;;
--prefix)
echo ${prefix}
;;
--ldflags)
echo -L${libdir}
;;
--defines)
echo
;;
--includes)
echo -I$OSGEO4W_ROOT_MSYS/include -I$OSGEO4W_ROOT_MSYS/include -I$OSGEO4W_ROOT_MSYS/include/libxml2 -I$OSGEO4W_ROOT_MSYS/include
;;
--cflags)
echo /DWIN32 /D_WINDOWS /W3
;;
--cxxflags)
echo /DWIN32 /D_WINDOWS /W3 /GR /EHsc -std=c++11
;;
--version)
echo 2.3.0
;;
*)
usage 1 1>&2
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment