Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
89d5ea7b
Commit
89d5ea7b
authored
Jun 13, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A first try in making the Makefile crossplatform (gnu/win32)
parent
188a9ba2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
bindings/java/Makefile.am
bindings/java/Makefile.am
+16
-7
No files found.
bindings/java/Makefile.am
View file @
89d5ea7b
...
...
@@ -6,28 +6,37 @@ if BUILD_JAVA
OBJECTS
=
org/videolan/jvlc/AudioIntf.class org/videolan/jvlc/InputIntf.class org/videolan/jvlc/PlaylistIntf.class org/videolan/jvlc/VideoIntf.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/Playlist.class org/videolan/jvlc/GenericVideoWidget.class
JNIHEADERS
=
org_videolan_jvlc_JVLC.h org_videolan_jvlc_JVLCCanvas.h org_videolan_jvlc_JVLCPanel.h
# 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
JCC
=
javac
JCH
=
javah
CXX
=
g++
-Wall
-mno-cygwin
-
LDFLAGS
=
-mno-cygwin
`
vlc-config
--libs
external pic
`
-Wl
,--kill-at
JAVALDFLAGS
=
-mno-cygwin
-L
../../src
-lvlc
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic
`
-Wl
,--kill-at
else
JINCLUDES
=
-I
$(JAVA_HOME)
/include
-I
$(JAVA_HOME)
/include/linux
LIBJINCLUDES
=
-L
$(JAVA_HOME)
/jre/lib/
$(PROCESSOR_FAMILY)
-ljawt
SWT_PATH
=
/usr/share/java
# Binaries
JCC
=
gcj
-g
JCH
=
gcjh
-jni
SWT_PATH
=
/usr/share/java
# Compile flags
JAVACXXFLAGS
=
`
top_builddir
=
../.. ../../vlc-config
--cflags
pic
`
-I
../../
-I
../../include
$(JINCLUDES)
JAVALDFLAGS
=
-L
../../src
-lvlc
`
top_builddir
=
../.. ../../vlc-config
--libs
builtin
vlc pic
`
endif
# Build targets
all
:
libjvlc.so VlcClient VLCExample
if
HAVE_WIN32
libjvlc.so
:
vlc-libvlc-jni.o vlc-graphics-jni.o
$(CXX)
-shared
vlc-libvlc-jni.o vlc-graphics-jni.o
$(LIBJINCLUDES)
$(LDFLAGS)
-o
jvlc.dll
else
libjvlc.so
:
vlc-libvlc-jni.o vlc-graphics-jni.o
$(CXX)
-shared
vlc-libvlc-jni.o vlc-graphics-jni.o
$(LIBJINCLUDES)
$(LDFLAGS)
$(JAVALDFLAGS)
-o
libjvlc.so
endif
vlc-graphics-jni.o
:
VlcClient
$(CXX)
-c
vlc-graphics-jni.cc
$(CXXFLAGS)
$(JAVACXXFLAGS)
...
...
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