aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/build-common.xml4
-rw-r--r--make/build-nativewindow.xml31
2 files changed, 32 insertions, 3 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index 114525855..58a829fc6 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -245,16 +245,20 @@
<property name="nativewindow.awt.jar" value="${build.nativewindow}/nativewindow.awt.jar" />
<property name="nativewindow.os.x11.jar" value="${build.nativewindow}/nativewindow.os.x11.jar" />
<property name="nativewindow.os.win.jar" value="${build.nativewindow}/nativewindow.os.win.jar" />
+ <property name="nativewindow.os.macosx.jar" value="${build.nativewindow}/nativewindow.os.macosx.jar" />
+
<path id="nativewindow_all_atoms.classpath">
<pathelement location="${nativewindow.core.jar}" />
<pathelement location="${nativewindow.awt.jar}" />
<pathelement location="${nativewindow.os.x11.jar}" />
<pathelement location="${nativewindow.os.win.jar}" />
+ <pathelement location="${nativewindow.os.macosx.jar}" />
</path>
<path id="nativewindow_all-noawt_atoms.classpath">
<pathelement location="${nativewindow.core.jar}" />
<pathelement location="${nativewindow.os.x11.jar}" />
<pathelement location="${nativewindow.os.win.jar}" />
+ <pathelement location="${nativewindow.os.macosx.jar}" />
</path>
<path id="nativewindow_core_atoms.classpath">
<pathelement location="${nativewindow.core.jar}" />
diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml
index b13e9b0ff..244f61046 100644
--- a/make/build-nativewindow.xml
+++ b/make/build-nativewindow.xml
@@ -70,7 +70,7 @@
value="jogamp/nativewindow/swt/**"/>
<property name="java.part.core"
- value="javax/media/nativewindow/* javax/media/nativewindow/util/* javax/media/nativewindow/egl/* javax/media/nativewindow/macosx/* javax/media/nativewindow/windows/* com/jogamp/nativewindow/* jogamp/nativewindow/* jogamp/nativewindow/jvm/* ${java.part.swt}"/>
+ value="javax/media/nativewindow/* javax/media/nativewindow/util/* javax/media/nativewindow/egl/* com/jogamp/nativewindow/* jogamp/nativewindow/* jogamp/nativewindow/jvm/* ${java.part.swt}"/>
<property name="java.part.awt"
value="javax/media/nativewindow/awt/* jogamp/nativewindow/jawt/** jogamp/nativewindow/**/awt/**"/>
@@ -81,6 +81,9 @@
<property name="java.part.windows"
value="jogamp/nativewindow/windows/** javax/media/nativewindow/windows/*" />
+ <property name="java.part.macosx"
+ value="jogamp/nativewindow/macosx/** javax/media/nativewindow/macosx/*" />
+
<!-- condition excludes -->
<condition property="java.excludes.awt"
@@ -582,6 +585,11 @@
<include name="${rootrel.src.c}/NativewindowCommon.c"/>
</patternset>
+ <patternset id="c.src.files.macosx">
+ <include name="${rootrel.src.c}/macosx/OSXmisc.c"/>
+ <include name="${rootrel.src.c}/NativewindowCommon.c"/>
+ </patternset>
+
<echo message="Compiling @{output.lib.name}" />
<!-- have to wrap cc task with outofdate, because otherwise cc links a new library
@@ -694,7 +702,17 @@
compiler.cfg.id="${compiler.cfg.id}"
linker.cfg.id="${linker.cfg.id.oswin}"/>
</target>
- <target name="c.build.nativewindow.windowlib" depends="c.build.nativewindow.windowlib.x11, c.build.nativewindow.windowlib.windows"/>
+
+ <target name="c.build.nativewindow.windowlib.macosx" if="isOSX">
+ <javah destdir="${src.generated.c}/MacOSX" classpath="${javah.classpath}" class="jogamp.nativewindow.macosx.OSXUtil" />
+
+ <c.build c.compiler.src.files="c.src.files.macosx"
+ output.lib.name="nativewindow_macosx"
+ compiler.cfg.id="${compiler.cfg.id}"
+ linker.cfg.id="${linker.cfg.id.oswin}"/>
+ </target>
+
+ <target name="c.build.nativewindow.windowlib" depends="c.build.nativewindow.windowlib.x11, c.build.nativewindow.windowlib.windows, c.build.nativewindow.windowlib.macosx"/>
<target name="c.manifest" if="isVC8Family">
<!-- exec mt, the Microsoft Manifest Tool, to include DLL manifests in order to resolve the location of msvcr80.dll -->
@@ -749,7 +767,14 @@
</jar>
</target>
- <target name="build-jars-javase" depends="setup-manifestfile,build-jars-awt,build-jars-x11,build-jars-windows">
+ <target name="build-jars-macosx" depends="setup-manifestfile">
+ <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.os.macosx.jar}" filesonly="true">
+ <fileset dir="${classes}"
+ includes="${java.part.macosx}" />
+ </jar>
+ </target>
+
+ <target name="build-jars-javase" depends="setup-manifestfile,build-jars-awt,build-jars-x11,build-jars-windows,build-jars-macosx">
<jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.core.jar}" filesonly="true">
<fileset dir="${classes}"
includes="${java.part.core}"