Differences From Artifact [87abe03638]:
- File
objfw-config.in
— part of check-in
[4e4c1c0eca]
at
2009-05-16 13:23:29
on branch trunk
— Add objfw-config script.
The problem with pkg-config is that it doesn't know about CPPFLAGS or
OBJCFLAGS, only CFLAGS.Oh, and the library version was changed from 1.0 to 0.1, so it matches
with the rest. (user: js, size: 997) [annotate] [blame] [check-ins using]
To Artifact [00d761a00d]:
- File objfw-config.in — part of check-in [c63017b1f3] at 2009-06-01 01:15:44 on branch trunk — Add --all to objfw-config.in. (user: js, size: 1161) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@" LIBS="-L@libdir@ -lobjfw @LIBS@" VERSION="0.1" show_help() { echo "$0: Available arguments are:" echo echo " --cflags Outputs the required CFLAGS" echo " --cppflags Outputs the required CPPFLAGS" echo " --cxxflags Outputs the required CXXFLAGS" echo " --objcflags Outputs the required OBJCFLAGS" echo " --libs Outputs the required LIBS" echo " --version Outputs the installed version" echo exit 0 } test -z "$1" && show_help while test ! -z "$1"; do case "$1" in --cflags) echo "$CFLAGS" ;; --cppflags) echo "$CPPFLAGS" ;; --cxxflags) echo "$CXXFLAGS" ;; --objcflags) echo "$OBJCFLAGS" ;; --libs) echo "$LIBS" ;; --version) echo "$VERSION" ;; *) | > > > > > > > > | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@" LIBS="-L@libdir@ -lobjfw @LIBS@" VERSION="0.1" show_help() { echo "$0: Available arguments are:" echo echo " --all Outputs all flags + libs" echo " --cflags Outputs the required CFLAGS" echo " --cppflags Outputs the required CPPFLAGS" echo " --cxxflags Outputs the required CXXFLAGS" echo " --objcflags Outputs the required OBJCFLAGS" echo " --libs Outputs the required LIBS" echo " --version Outputs the installed version" echo exit 0 } test -z "$1" && show_help while test ! -z "$1"; do case "$1" in --all) echo "$CFLAGS" echo "$CPPFLAGS" echo "$CXXFLAGS" echo "$OBJCFLAGS" echo "$LIBS" ;; --cflags) echo "$CFLAGS" ;; --cppflags) echo "$CPPFLAGS" ;; --cxxflags) echo "$CXXFLAGS" ;; --objcflags) echo "$OBJCFLAGS" ;; --libs) echo "$LIBS" ;; --version) echo "$VERSION" ;; *) echo "Invalid option: $1" >/dev/stderr exit 1 ;; esac shift done |