Changeset 54f51353c358470dbdf0d6c6923c51407df09f06
- Timestamp:
- 11/26/05 19:53:59
(3 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1133031239 +0000
- git-parent:
[e45f20e71f6e8959d599bd25e2d072855e556827]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1133031239 +0000
- Message:
* vlc-config:
- Fix optarg parsing
- Set ${libs} after the main loop to get the right exec prefix
- Give -lvlc_pic if we want PIC
* Java bindings build
- Use vlc-config better
- Use pic for building
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r53e8222 |
r54f5135 |
|
| 18 | 18 | |
|---|
| 19 | 19 | # Compile flags |
|---|
| 20 | | CXXFLAGS += `top_builddir=../.. ../../vlc-config --cflags` -I../../ -I ../../include ${JINCLUDES} |
|---|
| 21 | | LDFLAGS += -L../../lib -lvlc_pic -fPIC `top_builddir=../.. ../../vlc-config --libs builtin pic` |
|---|
| | 20 | CXXFLAGS += `top_builddir=../.. ../../vlc-config --cflags pic` -I../../ -I ../../include ${JINCLUDES} |
|---|
| | 21 | LDFLAGS += -L../../lib -lvlc_pic `top_builddir=../.. ../../vlc-config --libs builtin vlc pic` |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | # Build targets |
|---|
| 24 | 24 | all: libjvlc.so VlcClient |
|---|
| 25 | 25 | |
|---|
| 26 | | # FIXME: -ldbus-1 and -lhal are UGLY |
|---|
| 27 | | # Problem is vlc-config --libs builtin does not output what is needed to build |
|---|
| 28 | | # vlc. We need to clean up vlc-config first |
|---|
| 29 | 26 | libjvlc.so: vlc-glue-jni.o vlc-graphics-jni.o |
|---|
| 30 | | $(CXX) -ldbus-1 -lhal -shared vlc-glue-jni.o vlc-graphics-jni.o $(LIBJINCLUDES) ${LDFLAGS} -o libjvlc.so |
|---|
| | 27 | $(CXX) -shared vlc-glue-jni.o vlc-graphics-jni.o $(LIBJINCLUDES) ${LDFLAGS} -o libjvlc.so |
|---|
| 31 | 28 | |
|---|
| 32 | 29 | vlc-graphics-jni.o: VlcClient |
|---|
| r41e197b |
r54f5135 |
|
| 89 | 89 | includes="${includes}" |
|---|
| 90 | 90 | cppflags="${includes}" |
|---|
| 91 | | libs="-L@libdir@" |
|---|
| 92 | 91 | module="" |
|---|
| 93 | 92 | linkage="c" |
|---|
| … | … | |
| 145 | 144 | while test $# -gt 0; do |
|---|
| 146 | 145 | case "$1" in |
|---|
| 147 | | -*=*) optarg=`echo "$1" | sed 's/-_a-zA-Z0-9*=//'` ;; |
|---|
| | 146 | -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;; |
|---|
| 148 | 147 | *) optarg= ;; |
|---|
| 149 | 148 | esac |
|---|
| … | … | |
| 212 | 211 | external) |
|---|
| 213 | 212 | echo_external=yes |
|---|
| 214 | | ldflags="${ldflags} -lvlc" |
|---|
| | 213 | if test "x${echo_pic}" = "xno" |
|---|
| | 214 | then |
|---|
| | 215 | ldflags="${ldflags} -lvlc" |
|---|
| | 216 | else |
|---|
| | 217 | ldflags="${ldflags} -lvlc_pic" |
|---|
| | 218 | fi |
|---|
| 215 | 219 | ;; |
|---|
| 216 | 220 | *) |
|---|
| … | … | |
| 227 | 231 | shift |
|---|
| 228 | 232 | done |
|---|
| | 233 | |
|---|
| | 234 | libs="-L@libdir@" |
|---|
| 229 | 235 | |
|---|
| 230 | 236 | # |
|---|
| … | … | |
| 305 | 311 | echo "${cppflags} ${objcflags}" |
|---|
| 306 | 312 | fi |
|---|
| | 313 | |
|---|
| | 314 | # Libs |
|---|
| | 315 | # There are 4 possibilities |
|---|
| | 316 | # - We are a plugin or a builtin |
|---|
| | 317 | # - We are building from the outside (external): |
|---|
| | 318 | # - Give full libvlc linkflags + -lvlc(_pic) (in libdir) |
|---|
| | 319 | # - Link with builtins in libdir |
|---|
| | 320 | # - We are building something from the inside (builtin) |
|---|
| | 321 | # - Link with builtins in place |
|---|
| | 322 | # If you want something shared from the inside (binding), |
|---|
| | 323 | # you need "builtin vlc pic" |
|---|
| 307 | 324 | if test "${echo_libs}" = yes; then |
|---|
| 308 | 325 | if test "${echo_builtin}" = yes; then |
|---|