Overview
Comment: | objfw-compile: Add support for --builddir. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c1717f9bab96e39ac6e894fc2bfa73f9 |
User & Date: | js on 2012-08-01 10:50:09 |
Other Links: | manifest | tags |
Context
2012-08-01
| ||
11:48 | PLATFORMS.md: Add QNX. check-in: 9df53f29a2 user: js tags: trunk | |
10:50 | objfw-compile: Add support for --builddir. check-in: c1717f9bab user: js tags: trunk | |
2012-07-31
| ||
18:56 | .gitignore: Add tests/objc_sync/objc_sync. check-in: 7806e49ef6 user: js tags: trunk | |
Changes
Modified utils/objfw-compile from [932a63db2d] to [4007cbbe1d].
︙ | ︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | printf "\033[0m\n" exit $2 } srcs="" out="" objs="" link="no" link_stdcpp="no" lib="no" plugin="no" out_prefix="" out_suffix="" | > | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | printf "\033[0m\n" exit $2 } srcs="" out="" objs="" builddir="" link="no" link_stdcpp="no" lib="no" plugin="no" out_prefix="" out_suffix="" |
︙ | ︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | export LIB_MINOR="${1#*.}" lib="yes" OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --lib-cflags)" out_prefix="$($OBJFW_CONFIG --lib-prefix)" out_suffix="$($OBJFW_CONFIG --lib-suffix)" ;; -D) shift CPPFLAGS="$CPPFLAGS -D$1" ;; -D*) CPPFLAGS="$CPPFLAGS $1" ;; | > > > > | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | export LIB_MINOR="${1#*.}" lib="yes" OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --lib-cflags)" out_prefix="$($OBJFW_CONFIG --lib-prefix)" out_suffix="$($OBJFW_CONFIG --lib-suffix)" ;; --builddir) shift builddir="$1" ;; -D) shift CPPFLAGS="$CPPFLAGS -D$1" ;; -D*) CPPFLAGS="$CPPFLAGS $1" ;; |
︙ | ︙ | |||
185 186 187 188 189 190 191 192 193 194 195 196 | shift done if test x"$out" = x""; then echo "No output name specified! Use -o or --out!" exit 1 fi for i in $srcs; do case $i in *.m) if test x"$lib" = x"yes"; then | > > > > > > > > > > | | | | | | | 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | shift done if test x"$out" = x""; then echo "No output name specified! Use -o or --out!" exit 1 fi case "$builddir" in "") ;; */) ;; *) builddir="$builddir/" ;; esac for i in $srcs; do case $i in *.m) if test x"$lib" = x"yes"; then obj="$builddir${i%.m}.lib.o" elif test x"$plugin" = x"yes"; then obj="$builddir${i%.m}.plugin.o" else obj="$builddir${i%.m}.o" fi ;; *.mm) if test x"$lib" = x"yes"; then obj="$builddir${i%.mm}.lib.o" elif test x"$plugin" = x"yes"; then obj="$builddir${i%.mm}.plugin.o" else obj="$builddir${i%.mm}.o" fi ;; esac objs="$objs $obj" build="no" deps=$($OBJC -E -M $CPPFLAGS $i | sed 's/.*: //' | sed 's/\\//g') |
︙ | ︙ |