Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c4ba4c75
Commit
c4ba4c75
authored
Nov 14, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use libtool to compile java bindings. needs a cleanup (also thanks to megabug)
parent
4d3b55e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
34 deletions
+42
-34
bindings/java/Makefile.am
bindings/java/Makefile.am
+42
-5
bindings/java/src/Makefile.am
bindings/java/src/Makefile.am
+0
-29
No files found.
bindings/java/Makefile.am
View file @
c4ba4c75
...
...
@@ -3,6 +3,7 @@
#######################################################################
#SUBDIRS= src
DIST_SUBDIRS
=
src
EXTRA_DIST
=
\
...
...
@@ -33,33 +34,67 @@ EXTRA_DIST+= \
org/videolan/jvlc/VLMIntf.java
\
org/videolan/jvlc/VLM.java
if
BUILD_JAVA
OBJECTS
=
org/videolan/jvlc/VLCException.class org/videolan/jvlc/Playlist.class org/videolan/jvlc/AudioIntf.class org/videolan/jvlc/Audio.class org/videolan/jvlc/InputIntf.class org/videolan/jvlc/Input.class org/videolan/jvlc/PlaylistIntf.class org/videolan/jvlc/VideoIntf.class org/videolan/jvlc/Video.class org/videolan/jvlc/JLibVLC.class org/videolan/jvlc/JVLC.class org/videolan/jvlc/JVLCCanvas.class org/videolan/jvlc/JVLCPanel.class org/videolan/jvlc/VLMIntf.class org/videolan/jvlc/VLM.class org/videolan/jvlc/GenericVideoWidget.class
OBJECTS_HEADER
=
src/../includes/VLCException.h src/../includes/Playlist.h src/../includes/AudioIntf.h src/../includes/Audio.h src/../includes/InputIntf.h src/../includes/Input.h src/../includes/PlaylistIntf.h src/../includes/VideoIntf.h src/../includes/Video.h src/../includes/JLibVLC.h src/../includes/JVLC.h src/../includes/JVLCCanvas.h src/../includes/JVLCPanel.h src/../includes/VLMIntf.h src/../includes/VLM.h src/../includes/GenericVideoWidget.h
COBJECTS
=
src/utils.o src/video-jni.o src/audio-jni.o src/input-jni.o src/playlist-jni.o src/vlm-jni.o src/core-jni.o src/graphics-jni.o
if
BUILD_JAVA
# Include some JAVA stuff
PROCESSOR_FAMILY
=
`
uname
-m
|
sed
-e
's/^i.86/i386/'
|
sed
-e
's/^x86_64/amd64/'
`
if
HAVE_WIN32
JINCLUDES
=
-I
${JAVA_HOME}
/include
-I
${JAVA_HOME}
/include/win32
LIBJINCLUDES
=
-L
${JAVA_HOME}
/lib
-ljawt
JCH
=
javah
JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
JAVALDFLAGS
=
-mno-cygwin
-L
../../src
-L
../../src/.libs
-lvlc-control
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic external
`
-Wl
,--kill-at
else
JINCLUDES
=
-I
$(JAVA_HOME)
/include
-I
$(JAVA_HOME)
/include/linux
LIBJINCLUDES
=
-L
$(JAVA_HOME)
/jre/lib/
$(PROCESSOR_FAMILY)
-ljawt
JCH
=
gcjh
-jni
endif
if
USE_LIBTOOL
jvlcdir
=
$(libdir)
jvlc_LTLIBRARIES
=
libjvlc.la
libjvlc_la_SOURCES
=
\
src/audio-jni.cc
\
src/core-jni.cc
\
src/graphics-jni.cc
\
src/input-jni.cc
\
src/playlist-jni.cc
\
src/utils.cc
\
src/utils.h
\
src/video-jni.cc
\
src/vlm-jni.cc
libjvlc_la_LIBADD
=
../../src/libvlc-control.la
$(LIBJINCLUDES)
if
HAVE_WIN32
libjvlc_la_JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
libjvlc_la_JAVALDFLAGS
=
-mno-cygwin
-L
../../src
-L
../../src/.libs
-lvlc-control
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic external
`
-Wl
,--kill-at
else
libjvlc_la_JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
libjvlc_la_JAVALDFLAGS
=
-L
../../src
-L
../../src/.libs
-lvlc-control
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic external
`
endif
else
if
HAVE_WIN32
JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
JAVALDFLAGS
=
-mno-cygwin
-L
../../src
-L
../../src/.libs
-lvlc-control
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic external
`
-Wl
,--kill-at
else
JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
JAVALDFLAGS
=
-L
../../src
-L
../../src/.libs
-lvlc-control
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic external
`
endif
endif
export
JINCLUDES
# Build targets
all
:
libjvlc.so
VlcClient VLCExample
all
:
VlcClient VLCExample
if
HAVE_WIN32
libjvlc.so
:
$(OBJECTS)
...
...
@@ -87,6 +122,8 @@ else
$(JCH)
$
(
@D
)
/
$
(
*
F
)
-o
includes/
$
(
*
F
)
.h
endif
$(OBJECTS_HEADER)
:
$(OBJECTS)
clean-local
:
rm
-f
*
.class
*
~ org/videolan/jvlc/
*
.class org_videolan
*
.h includes/
*
.h src/
*
.o
*
.so
*
.o
*
.dll
...
...
bindings/java/src/Makefile.am
deleted
100644 → 0
View file @
4d3b55e4
COBJECTS
=
utils.o video-jni.o audio-jni.o input-jni.o playlist-jni.o vlm-jni.o core-jni.o graphics-jni.o
EXTRA_DIST
=
\
audio-jni.cc
\
core-jni.cc
\
graphics-jni.cc
\
input-jni.cc
\
playlist-jni.cc
\
utils.cc
\
utils.h
\
video-jni.cc
\
vlm-jni.cc
if
BUILD_JAVA
JAVACXXFLAGS
=
-I
.
-Isrc
-I
../../
-I
../../include
-I
../../../include
$(JINCLUDES)
`
top_builddir
=
../../.. ../../../vlc-config
--cflags
pic
`
-c
all
:
$(COBJECTS)
.cc.o
:
$(CXX)
$?
$(CXXFLAGS)
$(JAVACXXFLAGS)
-o
$@
.PHONY
:
clean-local
clean-local
:
rm
-f
*
.o
*
~
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment