source: grass/trunk/mswindows/osgeo4w/gdal-config

Last change on this file was 67023, checked in by martinl, 9 years ago

wingrass: remove hardcoded options from config scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:mime-type set to text/x-sh
File size: 713 bytes
Line 
1#!/bin/sh
2
3
4CONFIG_LIBS="$OSGEO4W_ROOT_MSYS/lib/gdal_i.lib"
5CONFIG_DEP_LIBS="$OSGEO4W_ROOT_MSYS/lib/libpng13.lib $OSGEO4W_ROOT_MSYS/lib/zlib.lib"
6CONFIG_PREFIX="$OSGEO4W_ROOT_MSYS"
7CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
8CONFIG_OGR_ENABLED=yes
9usage()
10{
11 cat <<EOF
12Usage: gdal-config [OPTIONS]
13Options:
14 [--prefix[=DIR]]
15 [--libs]
16 [--dep-libs]
17 [--cflags]
18 [--ogr-enabled]
19EOF
20 exit $1
21}
22
23if test $# -eq 0; then
24 usage 1 1>&2
25fi
26
27case $1 in
28 --libs)
29 echo $CONFIG_LIBS
30 ;;
31
32 --dep-libs)
33 echo $CONFIG_DEP_LIBS
34 ;;
35
36 --cflags)
37 echo $CONFIG_CFLAGS
38 ;;
39
40 --prefix)
41 echo $CONFIG_PREFIX
42 ;;
43
44 --ogr-enabled)
45 echo $CONFIG_OGR_ENABLED
46 ;;
47
48 *)
49 usage 1 1>&2
50 ;;
51
52esac
Note: See TracBrowser for help on using the repository browser.