-
-
Save ninsbl/668db3cb3f1367d8f94c8b77c81f96e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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