aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-02 08:36:38 +0200
committerSven Gothel <[email protected]>2012-04-02 08:36:38 +0200
commit5911b729b69b7fb327e441b33f22eb1ef31a03df (patch)
tree21d91c7d84bc99e6341029e9d233d37f5a1adc23 /make
parentde2b129a56335262a44a05541a3ab2e35668cc6e (diff)
Initial commit for AudioVideo (com.jogamp.opengl.av) rework, introducing Android API 14 MediaPlayer impl of GLMediaPlayer.
Android API 14 MediaPlayer allows usage of OMX AL direct decode to texture via libstagefright (OMX AL usage included). Status: Untested, not working - Need to fix native OMX IL (stream detect and split) and/or GStreamer implementation.
Diffstat (limited to 'make')
-rw-r--r--make/build-common.xml12
-rw-r--r--make/build-jogl.xml34
-rw-r--r--make/build.xml2
3 files changed, 40 insertions, 8 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index c18cf89b4..dfe38a676 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -287,6 +287,7 @@
<property name="jogl.os.x11.jar" value="${build.jogl}/jogl.os.x11.jar" />
<property name="jogl.os.win.jar" value="${build.jogl}/jogl.os.win.jar" />
<property name="jogl.os.osx.jar" value="${build.jogl}/jogl.os.osx.jar" />
+ <property name="jogl.os.android.jar" value="${build.jogl}/jogl.os.android.jar" />
<property name="jogl.gldesktop.jar" value="${build.jogl}/jogl.gldesktop.jar" />
<property name="jogl.gldesktop.dbg.jar" value="${build.jogl}/jogl.gldesktop.dbg.jar" />
<property name="jogl.glugldesktop.jar" value="${build.jogl}/jogl.glu.gldesktop.jar" />
@@ -343,6 +344,17 @@
<pathelement location="${jogl.util.fixedfuncemu.jar}" />
<pathelement location="${jogl.omx.jar}" />
</path>
+ <path id="jogl_all-android_atoms.classpath">
+ <pathelement location="${jogl.core.jar}" />
+ <pathelement location="${jogl.glmobile.jar}" />
+ <pathelement location="${jogl.glmobile.dbg.jar}" />
+ <pathelement location="${jogl.util.jar}" />
+ <pathelement location="${jogl.glutess.jar}" />
+ <pathelement location="${jogl.glumipmap.jar}" />
+ <pathelement location="${jogl.util.fixedfuncemu.jar}" />
+ <pathelement location="${jogl.os.android.jar}" />
+ <pathelement location="${jogl.omx.jar}" />
+ </path>
<!--
${jogl.core.jar} ${jogl.glutess.jar} ${jogl.glumipmap.jar} ${jogl.glugldesktop.jar} ${jogl.os.x11.jar} ${jogl.os.win.jar} ${jogl.os.osx.jar} ${jogl.gldesktop.jar} ${jogl.gldesktop.dbg.jar} ${jogl.glmobile.jar} ${jogl.glmobile.dbg.jar} ${jogl.omx.jar} ${jogl.util.jar} ${jogl.util.gldesktop.jar} ${jogl.util.awt.jar} ${jogl.util.fixedfuncemu.jar} ${jogl.sdk.jar} -->
diff --git a/make/build-jogl.xml b/make/build-jogl.xml
index 875fba709..ace272b74 100644
--- a/make/build-jogl.xml
+++ b/make/build-jogl.xml
@@ -108,7 +108,7 @@
value="jogamp/opengl/glu/gl2/** jogamp/opengl/glu/nurbs/** jogamp/opengl/glu/registry/** javax/media/opengl/glu/gl2/**"/>
<property name="java.part.openmax"
- value="com/jogamp/openmax/** jogamp/openmax/**"/>
+ value="jogamp/opengl/omx/**"/>
<property name="java.part.sdk"
value="com/jogamp/opengl/util/glsl/sdk/**"/>
@@ -122,6 +122,9 @@
<property name="java.part.cgl"
value="jogamp/opengl/macosx/cgl/*"/>
+ <property name="java.part.android"
+ value="jogamp/opengl/android/**"/>
+
<property name="java.part.gldesktop"
value="jogamp/opengl/**/gl2/** jogamp/opengl/**/gl3/** jogamp/opengl/**/gl4/**"/>
@@ -173,6 +176,9 @@
<property name="java.part.util.fixedfuncemu.shadercode"
value="jogamp/opengl/util/glsl/fixedfunc/shaders/* jogamp/opengl/util/glsl/fixedfunc/shaders/bin/**"/>
+ <property name="java.part.util.av"
+ value="com/jogamp/opengl/av/** jogamp/opengl/av/**"/>
+
<property name="java.part.nonjava"
value="${java.part.util.fixedfuncemu.shadercode} ${java.part.util.graph.shadercode} ${java.part.util.graph.fonts}"/>
@@ -191,13 +197,20 @@
<isset property="setup.noSWT"/>
</condition>
+ <condition property="java.excludes.android"
+ value="${java.part.android}">
+ <not>
+ <isset property="isAndroid"/>
+ </not>
+ </condition>
+
<property name="java.excludes.javadoc.packagenames"
value="jogamp.opengl.gl2.fixme.*,com.jogamp.audio.windows.waveout.TestSpatialization"/>
<property name="java.excludes.fixme"
value="jogamp/opengl/gl2/fixme/** com/jogamp/audio/windows/waveout/TestSpatialization.java" />
- <property name="java.excludes.all" value="${java.excludes.fixme} ${java.excludes.awt} ${java.excludes.swt}" />
+ <property name="java.excludes.all" value="${java.excludes.fixme} ${java.excludes.awt} ${java.excludes.swt} ${java.excludes.android}" />
<echo message="java.excludes.all: ${java.excludes.all}" />
</target>
@@ -1356,7 +1369,7 @@
<!-- FIXME: the Mixer should be moved to another library -->
<!--include name="${rootrel.src.c}/Mixer.cpp" if="isWindows"/-->
<include name="${rootrel.src.c.openmax}/omx_tool.c" if="setup.addNativeOpenMAX"/>
- <include name="${rootrel.src.c.openmax}/com_jogamp_openmax_OMXInstance.c" if="setup.addNativeOpenMAX"/>
+ <include name="${rootrel.src.c.openmax}/jogamp_opengl_omx_OMXGLMediaPlayer.c" if="setup.addNativeOpenMAX"/>
<include name="${rootrel.generated.c.jogl}/gl4/GL4bcImpl_JNI.c"/>
<!--include name="${rootrel.generated.c.jogl}/GLU_JNI.c"/ EMPTY -->
@@ -1372,7 +1385,7 @@
<include name="${rootrel.src.c}/GLDebugMessageHandler.c"/>
<include name="${rootrel.src.c}/GLXGetProcAddressARB.c" if="isX11"/>
<include name="${rootrel.src.c.openmax}/omx_tool.c" if="setup.addNativeOpenMAX"/>
- <include name="${rootrel.src.c.openmax}/com_jogamp_openmax_OMXInstance.c" if="setup.addNativeOpenMAX"/>
+ <include name="${rootrel.src.c.openmax}/jogamp_opengl_omx_OMXGLMediaPlayer.c" if="setup.addNativeOpenMAX"/>
<include name="${rootrel.generated.c.jogl}/egl/EGL_JNI.c"/>
<include name="${rootrel.generated.c.jogl}/egl/EGLExtImpl_JNI.c"/>
@@ -1466,7 +1479,7 @@
</macrodef>
<target name="c.build.jogl.prepare.openMAX" if="setup.addNativeOpenMAX">
- <javah destdir="${src.generated.c.openmax}" classpath="${javah.classpath}" class="com.jogamp.openmax.OMXInstance" />
+ <javah destdir="${src.generated.c.openmax}" classpath="${javah.classpath}" class="jogamp.opengl.omx.OMXGLMediaPlayer" />
</target>
<target name="c.build.jogl.prepare" depends="c.build.jogl.prepare.openMAX">
@@ -1554,6 +1567,12 @@
</jar>
</target>
+ <target name="build-jars-android" depends="setup-manifestfile" if="isAndroid">
+ <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.os.android.jar}" filesonly="true">
+ <fileset dir="${classes}" includes="${java.part.android}"/>
+ </jar>
+ </target>
+
<target name="build-jars-mobile-javase" depends="setup-manifestfile">
<jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glmobile.jar}" filesonly="true">
<fileset dir="${classes}"
@@ -1608,7 +1627,8 @@
</jar>
</target>
- <target name="build-jars-javase" depends="setup-manifestfile, build-jars-mobile-javase, build-jars-desktop-javase, build-jars-awt-javase, build-jars-swt-javase">
+ <target name="build-jars-javase" depends="setup-manifestfile, build-jars-android, build-jars-mobile-javase,
+ build-jars-desktop-javase, build-jars-awt-javase, build-jars-swt-javase">
<jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.core.jar}" filesonly="true">
<fileset dir="${classes}"
includes="${java.part.core}"
@@ -1628,7 +1648,7 @@
</jar>
<jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.jar}" filesonly="true">
<fileset dir="${classes}"
- includes="${java.part.util} ${java.part.util.glsl} ${java.part.util.graph}"
+ includes="${java.part.util} ${java.part.util.glsl} ${java.part.util.graph} ${java.part.util.av}"
excludes="${java.part.util.awt} ${java.part.util.gldesktop} ${java.part.util.fixedfuncemu}"/>
</jar>
<jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.fixedfuncemu.jar}" filesonly="true">
diff --git a/make/build.xml b/make/build.xml
index 203132816..24670fcce 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -103,7 +103,7 @@
<archives>
<zips>
<path refid="nativewindow_core_atoms.classpath"/>
- <path refid="jogl_all-mobile_atoms.classpath"/>
+ <path refid="jogl_all-android_atoms.classpath"/>
<path refid="newt_all-android_atoms.classpath"/>
</zips>
</archives>