diff options
author | Kenneth Russel <[email protected]> | 2009-03-17 20:41:40 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-03-17 20:41:40 +0000 |
commit | 9a44770462cc3e10af1eee66a75e708bd540fce9 (patch) | |
tree | 18d907e45445e4121928d4b1a592428f17ca065f | |
parent | 3ad5bf195cec28d7578ee417f9425a871ce7ef57 (diff) |
Continue moving javax.media.nwi -> javax.media.nativewindow
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1881 232f8b59-042b-4e1e-8c03-345bb8c30851
41 files changed, 360 insertions, 362 deletions
diff --git a/make/build-jogl.xml b/make/build-jogl.xml index e51116ed3..bcb930b05 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -355,7 +355,7 @@ <property name="gluegen.build.xml" value="${gluegen.make.dir}/build.xml" /> <property name="gluegen.jar" value="../../gluegen/${rootrel.build}/gluegen.jar" /> <property name="gluegen-rt.jar" value="../../gluegen/${rootrel.build}/gluegen-rt.jar" /> - <property name="nwi.all.jar" value="../${rootrel.build}-nwi/nwi.all.jar" /> + <property name="nativewindow.all.jar" value="../${rootrel.build}-nativewindow/nativewindow.all.jar" /> <!-- The source directories. --> <property name="src.java" value="${project.root}/${rootrel.src.java}" /> @@ -428,8 +428,8 @@ <pathelement location="${antlr.jar}" /> </path> - <path id="nwigluegen.classpath"> - <pathelement location="${nwi.all.jar}" /> + <path id="nativewindow_gluegen.classpath"> + <pathelement location="${nativewindow.all.jar}" /> <pathelement location="${gluegen-rt.jar}" /> </path> @@ -1104,7 +1104,7 @@ fork="yes" memoryMaximumSize="128m" source="1.4" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <src path="${src.java}" /> <src path="${src.generated.java}" /> </javac> @@ -1119,7 +1119,7 @@ fork="yes" memoryMaximumSize="128m" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <src path="${src.java}" /> <src path="${src.generated.java}" /> </javac> @@ -1133,7 +1133,7 @@ fork="yes" memoryMaximumSize="128m" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <src path="${src.java}" /> <src path="${src.generated.java}" /> </javac> @@ -1150,7 +1150,7 @@ fork="yes" memoryMaximumSize="128m" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <src path="${src.generated.java}" /> </javac> </target> @@ -1163,7 +1163,7 @@ fork="yes" memoryMaximumSize="128m" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <src path="${src.generated.java}" /> </javac> </target> @@ -1758,7 +1758,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> @@ -1774,7 +1774,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> @@ -1791,7 +1791,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> @@ -1807,7 +1807,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> @@ -1824,7 +1824,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> @@ -1840,7 +1840,7 @@ source="1.4" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - <classpath refid="nwigluegen.classpath"/> + <classpath refid="nativewindow_gluegen.classpath"/> <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" /> </javadoc> </target> diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml index 3a8807815..2fc8414fa 100644 --- a/make/build-nativewindow.xml +++ b/make/build-nativewindow.xml @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - - Ant build for NWI. This build has been tested with ANT 1.7.0. The + - Ant build for the NativeWindow package. This build has been tested with ANT 1.7.0. The - optional.jar that contains the optional ANT tasks must be in the ANT - classpath (typically the ant/lib directory). - - - A clean download of NWI is required for this build. + - A clean download of the NativeWindow sources is required for this build. - - This build has no dependence on environment variables; the needed - ones (e.g. java.home, ANT_HOME) are all set by the Ant wrapper shell @@ -18,7 +18,7 @@ - be run from the "make" directory. - - Public targets: - - all: (default; autodetects OS and chooses C compiler from nwi.properties) + - all: (default; autodetects OS and chooses C compiler from gluegen.properties) - clean: clean all built - javadoc: create the standard developer Javadoc (recommended) - (Note: should build all first - may be dependence in the future) @@ -28,11 +28,11 @@ - to create the Javadoc for the platform on which you are - currently running. - - - Note: on Windows the "win32.c.compiler" property in nwi.properties + - Note: on Windows the "win32.c.compiler" property in gluegen.properties - is required to select the appropriate C compiler. See the example - - nwi.properties in this directory for valid values. On Mac OS X + - gluegen.properties in the gluegen workspace for valid values. On Mac OS X - universal binaries may also be built by setting the "macosxfat" - - property in nwi.properties; again see the example file in this + - property in gluegen.properties; again see the example file in this - directory. - - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the @@ -59,21 +59,21 @@ setup.noWindows setup.noMacOsX --> -<project name="NWI" basedir="." default="all"> +<project name="NativeWindow" basedir="." default="all"> <!-- This is the version of JOGL you are building --> <property name="base_version" value="0.0.0-rc0"/> <!-- Uncomment this property definition to cause a full release build to be done --> <!-- without needing to specify the RI target on the command line --> - <property name="RImanifestfile" value="nwiRIversion" /> + <property name="RImanifestfile" value="nativewindowRIversion" /> <!-- Pull in GlueGen cpptasks build file --> <property name="gluegen.root" value="../../gluegen" /> <import file="${gluegen.root}/make/gluegen-cpptasks.xml" /> - <available file="${user.home}/nwi.compiler.xml" property="nwi.compiler.present"/> - <import file="${user.home}/nwi.compiler.xml" optional="true" /> + <available file="${user.home}/nativewindow.compiler.xml" property="nwi.compiler.present"/> + <import file="${user.home}/nativewindow.compiler.xml" optional="true" /> <!-- ================================================================== --> <!-- @@ -123,16 +123,16 @@ <!-- partitioning --> <property name="java.part.core" - value="javax/media/nwi/*, javax/media/nwi/x11/*, com/sun/nwi/impl/*, com/sun/nwi/impl/x11/*"/> + value="javax/media/nativewindow/*, javax/media/nativewindow/x11/*, com/sun/nativewindow/impl/*, com/sun/nativewindow/impl/x11/*"/> <!-- property name="java.part.win" - value="com/sun/nwi/impl/win/**"/ NOTHING TO DO HERE --> + value="com/sun/nativewindow/impl/win/**"/ NOTHING TO DO HERE --> <!-- property name="java.part.macosx" - value="com/sun/nwi/impl/macosx/**"/ NOTHING TO DO HERE --> + value="com/sun/nativewindow/impl/macosx/**"/ NOTHING TO DO HERE --> <property name="java.part.awt" - value="javax/media/nwi/awt/*, com/sun/nwi/impl/jawt/**, com/sun/nwi/impl/**/awt/**"/> + value="javax/media/nativewindow/awt/*, com/sun/nativewindow/impl/jawt/**, com/sun/nativewindow/impl/**/awt/**"/> <!-- condition excludes --> @@ -168,11 +168,11 @@ </target> <target name="base.init.sourcelevel.1"> - <property name="nwi.sourcelevel" value="1.4" /> + <property name="nativewindow.sourcelevel" value="1.4" /> </target> <!--target name="base.init.sourcelevel.2" if="gluegen.nsig"> - <property name="nwi.sourcelevel" value="1.5" /> + <property name="nativewindow.sourcelevel" value="1.5" /> </target--> <!-- ================================================================== --> @@ -183,12 +183,12 @@ <!-- Load the user specified properties file that defines various host - specific paths. The user will be notified if this is does not - exist. --> - <property name="user.properties.file" value="${user.home}/nwi.properties" /> + <property name="user.properties.file" value="${user.home}/nativewindow.properties" /> <property file="${user.properties.file}" /> <echo message="Loaded ${user.properties.file}." /> <property file="${user.home}/gluegen.properties" /> <echo message="Loaded ${user.home}/gluegen.properties." /> - <fail message="antlr.jar was not specified in nwi.properties or gluegen.properties. Please see README.txt for instructions" unless="antlr.jar"/> + <fail message="antlr.jar was not specified in nativewindow.properties or gluegen.properties. Please see README.txt for instructions" unless="antlr.jar"/> <echo message="antlr.jar=${antlr.jar}" /> </target> @@ -214,18 +214,18 @@ <isset property="rootrel.build"/> </not> </condition> - <property name="rootrel.build.nwi" value="${rootrel.build}-nwi" /> - <property name="rootrel.src" value="src/nwi" /> + <property name="rootrel.build.nativewindow" value="${rootrel.build}-nativewindow" /> + <property name="rootrel.src" value="src/nativewindow" /> <property name="rootrel.src.java" value="${rootrel.src}/classes" /> <property name="rootrel.src.c" value="${rootrel.src}/native" /> - <property name="rootrel.src.generated" value="${rootrel.build.nwi}/gensrc" /> + <property name="rootrel.src.generated" value="${rootrel.build.nativewindow}/gensrc" /> <property name="rootrel.generated.c" value="${rootrel.src.generated}/native" /> - <property name="rootrel.obj" value="${rootrel.build.nwi}/obj" /> + <property name="rootrel.obj" value="${rootrel.build.nativewindow}/obj" /> <!-- GlueGen properties. --> <!-- NOTE that these require a checked-out GlueGen workspace as a --> - <!-- sibling of the NWI workspace. --> + <!-- sibling of the NativeWindow workspace. --> <property name="gluegen.make.dir" value="../../gluegen/make" /> <property name="gluegen.build.xml" value="${gluegen.make.dir}/build.xml" /> <property name="gluegen.jar" value="../../gluegen/${rootrel.build}/gluegen.jar" /> @@ -234,7 +234,7 @@ <!-- The source directories. --> <property name="src.java" value="${project.root}/${rootrel.src.java}" /> <property name="src.c" value="${project.root}/${rootrel.src.c}" /> - <property name="build" value="${project.root}/${rootrel.build.nwi}" /> + <property name="build" value="${project.root}/${rootrel.build.nativewindow}" /> <!-- The generated source directories. --> <property name="src.generated" value="${build}/gensrc" /> @@ -246,7 +246,7 @@ <property name="obj" value="${project.root}/${rootrel.obj}" /> <!-- The headers from which Java files are generated --> - <property name="config" value="${make}/config/nwi" /> + <property name="config" value="${make}/config/nativewindow" /> <property name="stub.includes" value="${make}/stub_includes" /> <property name="stub.includes.dir" value="stub_includes" /> <!-- NOTE: this MUST be relative for FileSet --> <property name="stub.includes.common" value="${stub.includes}/common" /> @@ -279,23 +279,23 @@ <pathelement location="${antlr.jar}" /> </path> - <!-- The resulting nwi.jar. --> - <property name="nwi.core.jar" value="${build}/nwi.core.jar" /> - <property name="nwi.awt.jar" value="${build}/nwi.awt.jar" /> - <property name="nwi.all.jar" value="${build}/nwi.all.jar" /> + <!-- The resulting nativewindow.jar. --> + <property name="nativewindow.core.jar" value="${build}/nativewindow.core.jar" /> + <property name="nativewindow.awt.jar" value="${build}/nativewindow.awt.jar" /> + <property name="nativewindow.all.jar" value="${build}/nativewindow.all.jar" /> <!-- The javadoc dirs. --> - <property name="javadoc" value="${project.root}/javadoc_nwi_public" /> - <property name="javadoc.spec" value="${project.root}/javadoc_nwi_spec" /> - <property name="javadoc.dev" value="${project.root}/javadoc_nwi_dev" /> + <property name="javadoc" value="${project.root}/javadoc_nativewindow_public" /> + <property name="javadoc.spec" value="${project.root}/javadoc_nativewindow_spec" /> + <property name="javadoc.dev" value="${project.root}/javadoc_nativewindow_dev" /> <property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /> - <property name="javadoc.windowtitle" value="Native Windowing Interface (NWI) API -- ${base_version} Specification" /> + <property name="javadoc.windowtitle" value="Native Windowing Interface (NativeWindow) API -- ${base_version} Specification" /> <property name="javadoc.overview" value="spec-overview.html" /> - <property name="javadoc.spec.packagenames" value="javax.media.nwi.*" /> + <property name="javadoc.spec.packagenames" value="javax.media.nativewindow.*" /> <property name="javadoc.packagenames" value="${javadoc.spec.packagenames}" /> - <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.nwi.impl.*,com.sun.gluegen,com.sun.gluegen.runtime" /> + <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.nativewindow.impl.*,com.sun.gluegen,com.sun.gluegen.runtime" /> <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="http://jcp.org/en/jsr/detail?id=231">license terms</a>." /> </target> @@ -357,13 +357,13 @@ <!-- Now check for the presence of one well-known file --> <uptodate property="java.generate.skip.x11windowlib" - targetfile="${src.generated.java}/com/sun/nwi/impl/x11/X11Lib.java"> + targetfile="${src.generated.java}/com/sun/nativewindow/impl/x11/X11Lib.java"> <srcfiles refid="stub.includes.dependencies.fileset.1" /> <srcfiles refid="stub.includes.dependencies.fileset.2" /> <srcfiles refid="stub.includes.dependencies.fileset.3" /> </uptodate> <uptodate property="java.generate.skip.jawt" - targetfile="${src.generated.java}/com/sun/nwi/impl/jawt/JAWT.java"> + targetfile="${src.generated.java}/com/sun/nativewindow/impl/jawt/JAWT.java"> <srcfiles refid="stub.includes.dependencies.fileset.1" /> <srcfiles refid="stub.includes.dependencies.fileset.2" /> <srcfiles refid="stub.includes.dependencies.fileset.3" /> @@ -382,7 +382,7 @@ <target name="java.generate.windowlib" if="windowlib.os.cfg"> <echo message="Generating Windowing Lib implementation class" /> <gluegen src="${stub.includes.dir}/${window.os.system}/window-lib.c" - outputRootDir="../${rootrel.build.nwi}" + outputRootDir="../${rootrel.build.nativewindow}" config="${windowlib.os.cfg}" includeRefid="stub.includes.fileset.platform" emitter="com.sun.gluegen.JavaEmitter"> @@ -397,7 +397,7 @@ <echo message="Generating JAWT interface class" /> <echo message="java.home.dir=${java.home.dir}" /> <gluegen src="${jawt.platform.header}" - outputRootDir="../${rootrel.build.nwi}" + outputRootDir="../${rootrel.build.nativewindow}" config="${jawt.cfg}" literalInclude="${stub.includes.dir}/jni" includeRefid="stub.includes.fileset.platform" @@ -467,7 +467,7 @@ <!-- Perform the first pass Java compile; everything --> <javac destdir="${classes}" excludes="${java.excludes.all}" - source="${nwi.sourcelevel}" + source="${nativewindow.sourcelevel}" classpath="${gluegen-rt.jar}" bootclasspath="${javac.bootclasspath.jar}" fork="yes" @@ -482,7 +482,7 @@ <!-- Perform the second pass Java compile; everything. --> <javac destdir="${classes}" excludes="${java.excludes.all}" - source="${nwi.sourcelevel}" + source="${nativewindow.sourcelevel}" classpath="${gluegen-rt.jar}" fork="yes" memoryMaximumSize="128m" @@ -499,46 +499,46 @@ - Compile the native C code for JOGL (and optionally the Cg binding). --> - <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler" unless="nwi.compiler.present"> + <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler" unless="nativewindow.compiler.present"> <!-- compiler configuration --> <!-- Note that we can use the base setups in the gluegen-cpptasks for most of these --> - <compiler id="compiler.cfg.freebsd.nwi" extends="compiler.cfg.freebsd"> + <compiler id="compiler.cfg.freebsd.nativewindow" extends="compiler.cfg.freebsd"> <!-- Need to force X11R6 headers on to include path after stub_includes --> <includepath path="/usr/X11R6/include" /> </compiler> <!-- linker configuration --> - <linker id="linker.cfg.linux.nwi.x11" extends="linker.cfg.linux"> + <linker id="linker.cfg.linux.nativewindow.x11" extends="linker.cfg.linux"> <syslibset dir="/usr/X11R6/lib" libs="X11"/> <syslibset dir="/usr/X11R6/lib" libs="Xxf86vm" /> </linker> - <linker id="linker.cfg.linux.amd64.nwi.x11" extends="linker.cfg.linux.amd64"> + <linker id="linker.cfg.linux.amd64.nativewindow.x11" extends="linker.cfg.linux.amd64"> <syslibset dir="/usr/X11R6/lib64" libs="X11"/> <syslibset dir="/usr/X11R6/lib64" libs="Xxf86vm" /> </linker> - <linker id="linker.cfg.solaris.nwi.x11" extends="linker.cfg.solaris"> + <linker id="linker.cfg.solaris.nativewindow.x11" extends="linker.cfg.solaris"> <syslibset libs="X11"/> </linker> - <linker id="linker.cfg.win32.mingw.nwi" extends="linker.cfg.win32.mingw"> + <linker id="linker.cfg.win32.mingw.nativewindow" extends="linker.cfg.win32.mingw"> <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names --> <syslibset libs="gdi32, kernel32"/> </linker> - <linker id="linker.cfg.win32.msvc.nwi" extends="linker.cfg.win32.msvc"> + <linker id="linker.cfg.win32.msvc.nativewindow" extends="linker.cfg.win32.msvc"> <syslibset libs="gdi32, user32, kernel32" /> </linker> - <linker id="linker.cfg.macosx.nwi" extends="linker.cfg.macosx"> + <linker id="linker.cfg.macosx.nativewindow" extends="linker.cfg.macosx"> <linkerarg value="-framework" /> <linkerarg value="Cocoa" /> </linker> - <linker id="linker.cfg.hpux.nwi" extends="linker.cfg.hpux"> + <linker id="linker.cfg.hpux.nativewindow" extends="linker.cfg.hpux"> <syslibset dir="/usr/lib" libs="X11"/> </linker> </target> @@ -547,35 +547,35 @@ <echo message="Win32.VC" /> <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> <property name="linker.cfg.id.core" value="linker.cfg.win32.msvc" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.nwi" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.nativewindow" /> </target> <target name="c.configure.win32.mingw" if="isMingW"> <echo message="Win32.MingW" /> <property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" /> <property name="linker.cfg.id.core" value="linker.cfg.win32.mingw" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.nwi" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.nativewindow" /> </target> <target name="c.configure.linux.x86" if="isLinuxX86"> <echo message="Linux.x86" /> <property name="compiler.cfg.id" value="compiler.cfg.linux" /> <property name="linker.cfg.id.core" value="linker.cfg.linux" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" /> </target> <target name="c.configure.linux.amd64" if="isLinuxAMD64"> <echo message="Linux.AMD64" /> <property name="compiler.cfg.id" value="compiler.cfg.linux.amd64" /> <property name="linker.cfg.id.core" value="linker.cfg.linux.amd64" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.linux.amd64.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.linux.amd64.nativewindow.x11" /> </target> <target name="c.configure.linux.ia64" if="isLinuxIA64"> <echo message="Linux.IA64" /> <property name="compiler.cfg.id" value="compiler.cfg.linux" /> <property name="linker.cfg.id.core" value="linker.cfg.linux" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" /> </target> <target name="c.configure.linux" depends="c.configure.linux.x86,c.configure.linux.amd64,c.configure.linux.ia64,c.configure.x11" if="isLinux" /> @@ -584,7 +584,7 @@ <echo message="Solaris" /> <property name="compiler.cfg.id" value="compiler.cfg.solaris" /> <property name="linker.cfg.id.core" value="linker.cfg.solaris" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.nativewindow.x11" /> </target> @@ -592,7 +592,7 @@ <echo message="SolarisSparcv9" /> <property name="compiler.cfg.id" value="compiler.cfg.solaris.sparcv9" /> <property name="linker.cfg.id.core" value="linker.cfg.solaris.sparcv9" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.sparcv9.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.sparcv9.nativewindow.x11" /> </target> @@ -600,21 +600,21 @@ <echo message="SolarisAMD64" /> <property name="compiler.cfg.id" value="compiler.cfg.solaris.amd64" /> <property name="linker.cfg.id.core" value="linker.cfg.solaris.amd64" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.amd64.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.amd64.nativewindow.x11" /> </target> <target name="c.configure.freebsd" depends="c.configure.x11" if="isFreeBSD"> <echo message="FreeBSD" /> - <property name="compiler.cfg.id" value="compiler.cfg.freebsd.nwi" /> + <property name="compiler.cfg.id" value="compiler.cfg.freebsd.nativewindow" /> <property name="linker.cfg.id.core" value="linker.cfg.linux" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" /> </target> <target name="c.configure.hpux" depends="c.configure.x11" if="isHPUX"> <echo message="HP-UX" /> <property name="compiler.cfg.id" value="compiler.cfg.hpux" /> <property name="linker.cfg.id.core" value="linker.cfg.hpux" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.hpux.nwi.x11" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.hpux.nativewindow.x11" /> </target> <target name="c.configure.win32" depends="c.configure.win32.vc,c.configure.win32.mingw" if="isWindows" /> @@ -624,7 +624,7 @@ <target name="c.configure.macosx" if="isOSX"> <property name="compiler.cfg.id" value="compiler.cfg.macosx" /> <property name="linker.cfg.id.core" value="linker.cfg.macosx" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.nwi" /> + <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.nativewindow" /> </target> <target name="c.configure.2" depends="c.configure.win32,c.configure.linux,c.configure.solaris32,c.configure.solaris.sparcv9,c.configure.solaris.amd64,c.configure.macosx,c.configure.freebsd,c.configure.hpux" /> @@ -747,50 +747,50 @@ <arg value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib" /> <arg value="/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib" /> <srcfile /> - <fileset dir="${obj}" includes="libnwi_awt.jnilib" /> + <fileset dir="${obj}" includes="libnativewindow_awt.jnilib" /> </apply> </target> - <target name="c.build.nwi.awt"> + <target name="c.build.nativewindow.awt"> <c.build c.compiler.src.files="c.src.files.awt" c.compiler.use-jawt="true" - output.lib.name="nwi_awt" + output.lib.name="nativewindow_awt" compiler.cfg.id="${compiler.cfg.id}" linker.cfg.id="${linker.cfg.id.oswin}"/> </target> - <target name="c.build.nwi.windowlib.x11" if="isX11"> + <target name="c.build.nativewindow.windowlib.x11" if="isX11"> <c.build c.compiler.src.files="c.src.files.x11" - output.lib.name="nwi_x11" + output.lib.name="nativewindow_x11" compiler.cfg.id="${compiler.cfg.id}" linker.cfg.id="${linker.cfg.id.oswin}"/> </target> - <target name="c.build.nwi.windowlib" depends="c.build.nwi.windowlib.x11"/> + <target name="c.build.nativewindow.windowlib" depends="c.build.nativewindow.windowlib.x11"/> <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 --> <exec executable="mt"> <arg value="-manifest"/> - <arg value="${obj}/nwi.dll.manifest"/> - <arg value="-outputresource:${obj}/nwi.dll;#2"/> + <arg value="${obj}/nativewindow.dll.manifest"/> + <arg value="-outputresource:${obj}/nativewindow.dll;#2"/> </exec> <exec executable="mt"> <arg value="-manifest"/> - <arg value="${obj}/nwi_awt.dll.manifest"/> - <arg value="-outputresource:${obj}/nwi_awt.dll;#2"/> + <arg value="${obj}/nativewindow_awt.dll.manifest"/> + <arg value="-outputresource:${obj}/nativewindow_awt.dll;#2"/> </exec> <antcall target="c.manifest.cg" inheritRefs="true" /> </target> - <target name="c.build.nwi" depends="c.configure,c.build.nwi.windowlib,c.build.nwi.awt"> + <target name="c.build.nativewindow" depends="c.configure,c.build.nativewindow.windowlib,c.build.nativewindow.awt"> <antcall target="c.fixup.jawt.version.macosx" inheritrefs="true" /> <antcall target="c.manifest" inheritRefs="true" /> </target> <!-- ================================================================== --> <!-- - - Build the nwi.jar files. + - Build the nativewindow.jar files. --> <target name="jar" depends="java.compile,cond-if-RImanifest,cond-else-RImanifest"/> @@ -801,7 +801,7 @@ </target> <target name="cond-if-RImanifest" depends="check-RIcond" if="RIcond-is-true"> - <copy file="nwiRIversion" + <copy file="nativewindowRIversion" tofile="tempversion" overwrite="true"> <filterset> @@ -810,19 +810,19 @@ </filterset> </copy> - <jar manifest="tempversion" destfile="${nwi.core.jar}"> + <jar manifest="tempversion" destfile="${nativewindow.core.jar}"> <fileset dir="${classes}" includes="${java.part.core}" excludes="${java.part.awt}"/> </jar> - <jar manifest="tempversion" destfile="${nwi.awt.jar}"> + <jar manifest="tempversion" destfile="${nativewindow.awt.jar}"> <fileset dir="${classes}" includes="${java.part.awt}"/> </jar> - <jar manifest="tempversion" destfile="${nwi.all.jar}"> + <jar manifest="tempversion" destfile="${nativewindow.all.jar}"> <fileset dir="${classes}"> - <include name="javax/media/nwi/**" /> - <include name="com/sun/nwi/**" /> + <include name="javax/media/nativewindow/**" /> + <include name="com/sun/nativewindow/**" /> <include name="com/sun/gluegen/runtime/**" /> </fileset> </jar> @@ -834,7 +834,7 @@ <tstamp> <format property="timestamp" pattern="yyyyMMdd-HH:mm:ss"/> </tstamp> - <copy file="nwiversion" + <copy file="nativewindowversion" tofile="tempversion" overwrite="true"> <filterset> @@ -842,11 +842,11 @@ <filter token="BASEVERSION" value="${base_version}"/> </filterset> </copy> - <jar manifest="tempversion" destfile="${nwi.jar}"> + <jar manifest="tempversion" destfile="${nativewindow.jar}"> <fileset dir="${classes}"> - <include name="javax/media/nwi/**" /> + <include name="javax/media/nativewindow/**" /> <include name="com/sun/gluegen/runtime/**" /> - <include name="com/sun/nwi/**" /> + <include name="com/sun/nativewindow/**" /> </fileset> </jar> <delete file="tempversion"/> @@ -901,41 +901,41 @@ </javadoc> </target> - <target name="all.doc" description="Build NWI docs" depends="init,javadoc,javadoc.spec,javadoc.dev" /> + <target name="all.doc" description="Build NativeWindow docs" depends="init,javadoc,javadoc.spec,javadoc.dev" /> <!-- ================================================================== --> <!-- - Build the platform-independent distribution out of jars built for - Windows, Linux and Mac OS X; the Java sources for Jogl can't be - fully cross-compiled at this time. To run this target, you need to - - specify the property nwi.dist.dir as a System property (i.e., - - "ant -Dnwi.dist.dir=../dist dist"); directories named nwi-linux, - - nwi-win, and nwi-macosx need to be inside that directory and each - - of those directories needs to contain both the nwi.jar for that - - platform as well as the native code (libnwi.so, nwi.dll, or - - libnwi.jnilib). Also builds jars containing the native code for + - specify the property nativewindow.dist.dir as a System property (i.e., + - "ant -Dnativewindow.dist.dir=../dist dist"); directories named nativewindow-linux, + - nativewindow-win, and nativewindow-macosx need to be inside that directory and each + - of those directories needs to contain both the nativewindow.jar for that + - platform as well as the native code (libnativewindow.so, nativewindow.dll, or + - libnativewindow.jnilib). Also builds jars containing the native code for - Windows, Linux, Mac OS X, Solaris/SPARC and Solaris/x86. --> - <target name="dist.dir.check" unless="nwi.dist.dir"> + <target name="dist.dir.check" unless="nativewindow.dist.dir"> <fail> ****************************************************************** ** To build the Jogl distribution out of the platform-specific ** - ** component jars and native code, the property nwi.dist.dir ** + ** component jars and native code, the property nativewindow.dist.dir ** ** needs to be specified on the command line. Please read the ** ** comments associated with the "dist" target in the build.xml. ** ****************************************************************** </fail> </target> - <target name="dist.check.windows" if="nwi.dist.dir"> + <target name="dist.check.windows" if="nativewindow.dist.dir"> <condition property="windows.complete"> <and> - <available file="${nwi.dist.dir}/nwi-win/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-win/32/nwi.dll" /> - <available file="${nwi.dist.dir}/nwi-win/32/nwi_awt.dll" /> - <available file="${nwi.dist.dir}/nwi-win/32/gluegen-rt.dll" /> - <available file="${nwi.dist.dir}/nwi-win/32/gluegen-rt-natives-windows-i586.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/32/nativewindow.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/32/nativewindow_awt.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/32/gluegen-rt.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/32/gluegen-rt-natives-windows-i586.jar" /> </and> </condition> <fail unless="windows.complete"> @@ -947,13 +947,13 @@ </fail> </target> - <target name="dist.check.windows-amd64" if="nwi.dist.dir"> + <target name="dist.check.windows-amd64" if="nativewindow.dist.dir"> <condition property="windows-amd64.complete"> <and> - <available file="${nwi.dist.dir}/nwi-win/64/nwi.dll" /> - <available file="${nwi.dist.dir}/nwi-win/64/nwi_awt.dll" /> - <available file="${nwi.dist.dir}/nwi-win/64/gluegen-rt.dll" /> - <available file="${nwi.dist.dir}/nwi-win/64/gluegen-rt-natives-windows-amd64.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/64/nativewindow.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/64/nativewindow_awt.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/64/gluegen-rt.dll" /> + <available file="${nativewindow.dist.dir}/nativewindow-win/64/gluegen-rt-natives-windows-amd64.jar" /> </and> </condition> <fail unless="windows-amd64.complete"> @@ -965,14 +965,14 @@ </fail> </target> - <target name="dist.check.linux" if="nwi.dist.dir"> + <target name="dist.check.linux" if="nativewindow.dist.dir"> <condition property="linux.complete"> <and> - <available file="${nwi.dist.dir}/nwi-linux/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-linux/32/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-linux/32/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-linux/32/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-linux/32/gluegen-rt-natives-linux-i586.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/32/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/32/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/32/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/32/gluegen-rt-natives-linux-i586.jar" /> </and> </condition> <fail unless="linux.complete"> @@ -984,13 +984,13 @@ </fail> </target> - <target name="dist.check.linux-amd64" if="nwi.dist.dir"> + <target name="dist.check.linux-amd64" if="nativewindow.dist.dir"> <condition property="linux-amd64.complete"> <and> - <available file="${nwi.dist.dir}/nwi-linux/64/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-linux/64/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-linux/64/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-linux/64/gluegen-rt-natives-linux-amd64.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/64/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/64/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/64/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-linux/64/gluegen-rt-natives-linux-amd64.jar" /> </and> </condition> <fail unless="linux-amd64.complete"> @@ -1002,14 +1002,14 @@ </fail> </target> - <target name="dist.check.macosx" if="nwi.dist.dir"> + <target name="dist.check.macosx" if="nativewindow.dist.dir"> <condition property="macosx.complete"> <and> - <available file="${nwi.dist.dir}/nwi-macosx/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-macosx/ppc/libnwi.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/ppc/libnwi_awt.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/ppc/libgluegen-rt.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/ppc/gluegen-rt-natives-macosx-ppc.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/ppc/libnativewindow.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/ppc/libnativewindow_awt.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/ppc/libgluegen-rt.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/ppc/gluegen-rt-natives-macosx-ppc.jar" /> </and> </condition> <fail unless="macosx.complete"> @@ -1022,14 +1022,14 @@ </target> - <target name="dist.check.macosxfat" if="nwi.dist.dir"> + <target name="dist.check.macosxfat" if="nativewindow.dist.dir"> <condition property="macosxfat.complete"> <and> - <available file="${nwi.dist.dir}/nwi-macosx/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-macosx/fat/libnwi.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/fat/libnwi_awt.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/fat/libgluegen-rt.jnilib" /> - <available file="${nwi.dist.dir}/nwi-macosx/fat/gluegen-rt-natives-macosx-universal.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/fat/libnativewindow.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/fat/libnativewindow_awt.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/fat/libgluegen-rt.jnilib" /> + <available file="${nativewindow.dist.dir}/nativewindow-macosx/fat/gluegen-rt-natives-macosx-universal.jar" /> </and> </condition> <fail unless="macosxfat.complete"> @@ -1043,14 +1043,14 @@ - <target name="dist.check.solsparc" if="nwi.dist.dir"> + <target name="dist.check.solsparc" if="nativewindow.dist.dir"> <condition property="solsparc.complete"> <and> - <available file="${nwi.dist.dir}/nwi-solsparc/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-solsparc/32/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/32/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/32/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/32/gluegen-rt-natives-solaris-sparc.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/32/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/32/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/32/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/32/gluegen-rt-natives-solaris-sparc.jar" /> </and> </condition> <fail unless="solsparc.complete"> @@ -1062,14 +1062,14 @@ </fail> </target> - <target name="dist.check.solsparcv9" if="nwi.dist.dir"> + <target name="dist.check.solsparcv9" if="nativewindow.dist.dir"> <condition property="solsparcv9.complete"> <and> - <available file="${nwi.dist.dir}/nwi-solsparc/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-solsparc/64/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/64/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/64/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-solsparc/64/gluegen-rt-natives-solaris-sparcv9.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/64/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/64/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/64/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solsparc/64/gluegen-rt-natives-solaris-sparcv9.jar" /> </and> </condition> <fail unless="solsparcv9.complete"> @@ -1081,14 +1081,14 @@ </fail> </target> - <target name="dist.check.solx86" if="nwi.dist.dir"> + <target name="dist.check.solx86" if="nativewindow.dist.dir"> <condition property="solx86.complete"> <and> - <available file="${nwi.dist.dir}/nwi-solx86/nwi.jar" /> - <available file="${nwi.dist.dir}/nwi-solx86/32/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/32/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/32/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/32/gluegen-rt-natives-solaris-i586.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/nativewindow.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/32/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/32/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/32/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/32/gluegen-rt-natives-solaris-i586.jar" /> </and> </condition> <fail unless="solx86.complete"> @@ -1100,13 +1100,13 @@ </fail> </target> - <target name="dist.check.solamd64" if="nwi.dist.dir"> + <target name="dist.check.solamd64" if="nativewindow.dist.dir"> <condition property="solamd64.complete"> <and> - <available file="${nwi.dist.dir}/nwi-solx86/64/libnwi.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/64/libnwi_awt.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/64/libgluegen-rt.so" /> - <available file="${nwi.dist.dir}/nwi-solx86/64/gluegen-rt-natives-solaris-amd64.jar" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/64/libnativewindow.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/64/libnativewindow_awt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/64/libgluegen-rt.so" /> + <available file="${nativewindow.dist.dir}/nativewindow-solx86/64/gluegen-rt-natives-solaris-amd64.jar" /> </and> </condition> <fail unless="solamd64.complete"> @@ -1124,31 +1124,31 @@ <!-- zip.os.arch = the os/arch combination for this zip file (i.e., "windows-i586") --> <!-- zip.src.so.dir = the directory containing the .so's / .dll's / .jnilib's for this platform--> <target name="dist.build.zip"> - <property name="nwi.tmp.version" value="nwi-${tmp.version}-${zip.os.arch}" /> + <property name="nativewindow.tmp.version" value="nativewindow-${tmp.version}-${zip.os.arch}" /> <!-- Create all needed directories --> - <delete dir="${nwi.dist.dir}/tmp" failonerror="false" /> - <mkdir dir="${nwi.dist.dir}/tmp/${nwi.tmp.version}/lib" /> + <delete dir="${nativewindow.dist.dir}/tmp" failonerror="false" /> + <mkdir dir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/lib" /> <!-- Copy in files --> - <copy todir="${nwi.dist.dir}/tmp/${nwi.tmp.version}/lib"> + <copy todir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/lib"> <fileset dir="${zip.src.so.dir}" includes="*${zip.so.suffix}" /> </copy> - <copy file="${nwi.dist.dir}/nwi.jar" todir="${nwi.dist.dir}/tmp/${nwi.tmp.version}/lib" /> - <copy file="${nwi.dist.dir}/gluegen-rt.jar" todir="${nwi.dist.dir}/tmp/${nwi.tmp.version}/lib" /> - <copy file="../CHANGELOG.txt" todir="${nwi.dist.dir}/tmp/${nwi.tmp.version}" /> - <copy file="../COPYRIGHT.txt" todir="${nwi.dist.dir}/tmp/${nwi.tmp.version}" /> - <copy file="../LICENSE.txt" tofile="${nwi.dist.dir}/tmp/${nwi.tmp.version}/LICENSE-NWI-${tmp.version}.txt" /> + <copy file="${nativewindow.dist.dir}/nativewindow.jar" todir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/lib" /> + <copy file="${nativewindow.dist.dir}/gluegen-rt.jar" todir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/lib" /> + <copy file="../CHANGELOG.txt" todir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}" /> + <copy file="../COPYRIGHT.txt" todir="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}" /> + <copy file="../LICENSE.txt" tofile="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/LICENSE-NATIVEWINDOW-${tmp.version}.txt" /> <copy file="README-zip-bundles.txt" - tofile="${nwi.dist.dir}/tmp/${nwi.tmp.version}/README.txt" + tofile="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/README.txt" overwrite="true"> <filterset> <filter token="VERSION" value="${tmp.version}"/> </filterset> </copy> - <copy file="../doc/userguide/index.html" tofile="${nwi.dist.dir}/tmp/${nwi.tmp.version}/Userguide.html" /> + <copy file="../doc/userguide/index.html" tofile="${nativewindow.dist.dir}/tmp/${nativewindow.tmp.version}/Userguide.html" /> <!-- zip it up --> - <zip destfile="${nwi.dist.dir}/${nwi.tmp.version}.zip" - basedir="${nwi.dist.dir}/tmp" - includes="${nwi.tmp.version}/**" /> + <zip destfile="${nativewindow.dist.dir}/${nativewindow.tmp.version}.zip" + basedir="${nativewindow.dist.dir}/tmp" + includes="${nativewindow.tmp.version}/**" /> </target> <target name="setup-version-RI" if="RImanifestfile"> @@ -1164,160 +1164,160 @@ <target name="dist" depends="dist.dir.check,dist.check.windows,dist.check.windows-amd64,dist.check.linux,dist.check.linux-amd64,dist.check.macosx,dist.check.macosxfat,dist.check.solsparc,dist.check.solsparcv9,dist.check.solx86,dist.check.solamd64,setup-version-RI,setup-version-non-RI"> <delete> - <fileset dir="${nwi.dist.dir}" includes="*.jar" /> + <fileset dir="${nativewindow.dist.dir}" includes="*.jar" /> </delete> <delete> - <fileset dir="${nwi.dist.dir}" includes="*.zip" /> + <fileset dir="${nativewindow.dist.dir}" includes="*.zip" /> </delete> - <delete dir="${nwi.dist.dir}/tmp" failonerror="false" /> - <delete dir="${nwi.dist.dir}/META-INF" failonerror="false" /> + <delete dir="${nativewindow.dist.dir}/tmp" failonerror="false" /> + <delete dir="${nativewindow.dist.dir}/META-INF" failonerror="false" /> <!-- Extract manifest from one of the jars to re-use it in the dist jar --> - <unjar src="${nwi.dist.dir}/nwi-win/nwi.jar" dest="${nwi.dist.dir}" > + <unjar src="${nativewindow.dist.dir}/nativewindow-win/nativewindow.jar" dest="${nativewindow.dist.dir}" > <patternset> <include name="META-INF/MANIFEST.MF" /> </patternset> </unjar> <!-- Build jar files suitable for Java Web Start --> - <jar manifest="${nwi.dist.dir}/META-INF/MANIFEST.MF" destfile="${nwi.dist.dir}/nwi.jar" duplicate="preserve"> - <zipgroupfileset dir="${nwi.dist.dir}" - includes="nwi-win/nwi.jar, nwi-linux/nwi.jar, nwi-macosx/nwi.jar" /> + <jar manifest="${nativewindow.dist.dir}/META-INF/MANIFEST.MF" destfile="${nativewindow.dist.dir}/nativewindow.jar" duplicate="preserve"> + <zipgroupfileset dir="${nativewindow.dist.dir}" + includes="nativewindow-win/nativewindow.jar, nativewindow-linux/nativewindow.jar, nativewindow-macosx/nativewindow.jar" /> </jar> <!-- Apply Pack200 repacking to allow later compression by that mechanism --> <apply executable="pack200" verbose="true" > <arg value="--repack" /> - <fileset file="${nwi.dist.dir}/nwi.jar" /> + <fileset file="${nativewindow.dist.dir}/nativewindow.jar" /> </apply> - <jar destfile="${nwi.dist.dir}/nwi-natives-windows-i586.jar" - basedir="${nwi.dist.dir}/nwi-win/32" - includes="nwi.dll,nwi_awt.dll" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-windows-amd64.jar" - basedir="${nwi.dist.dir}/nwi-win/64" - includes="nwi.dll,nwi_awt.dll" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-linux-i586.jar" - basedir="${nwi.dist.dir}/nwi-linux/32" - includes="libnwi.so,libnwi_awt.so" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-linux-amd64.jar" - basedir="${nwi.dist.dir}/nwi-linux/64" - includes="libnwi.so,libnwi_awt.so" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-macosx-ppc.jar" - basedir="${nwi.dist.dir}/nwi-macosx/ppc" - includes="libnwi.jnilib,libnwi_awt.jnilib" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-macosx-universal.jar" - basedir="${nwi.dist.dir}/nwi-macosx/fat" - includes="libnwi.jnilib,libnwi_awt.jnilib" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-solaris-sparc.jar" - basedir="${nwi.dist.dir}/nwi-solsparc/32" - includes="libnwi.so,libnwi_awt.so" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-solaris-sparcv9.jar" - basedir="${nwi.dist.dir}/nwi-solsparc/64" - includes="libnwi.so,libnwi_awt.so" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-solaris-i586.jar" - basedir="${nwi.dist.dir}/nwi-solx86/32" - includes="libnwi.so,libnwi_awt.so" /> - <jar destfile="${nwi.dist.dir}/nwi-natives-solaris-amd64.jar" - basedir="${nwi.dist.dir}/nwi-solx86/64" - includes="libnwi.so,libnwi_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-windows-i586.jar" + basedir="${nativewindow.dist.dir}/nativewindow-win/32" + includes="nativewindow.dll,nativewindow_awt.dll" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-windows-amd64.jar" + basedir="${nativewindow.dist.dir}/nativewindow-win/64" + includes="nativewindow.dll,nativewindow_awt.dll" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-linux-i586.jar" + basedir="${nativewindow.dist.dir}/nativewindow-linux/32" + includes="libnativewindow.so,libnativewindow_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-linux-amd64.jar" + basedir="${nativewindow.dist.dir}/nativewindow-linux/64" + includes="libnativewindow.so,libnativewindow_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-macosx-ppc.jar" + basedir="${nativewindow.dist.dir}/nativewindow-macosx/ppc" + includes="libnativewindow.jnilib,libnativewindow_awt.jnilib" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-macosx-universal.jar" + basedir="${nativewindow.dist.dir}/nativewindow-macosx/fat" + includes="libnativewindow.jnilib,libnativewindow_awt.jnilib" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-solaris-sparc.jar" + basedir="${nativewindow.dist.dir}/nativewindow-solsparc/32" + includes="libnativewindow.so,libnativewindow_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-solaris-sparcv9.jar" + basedir="${nativewindow.dist.dir}/nativewindow-solsparc/64" + includes="libnativewindow.so,libnativewindow_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-solaris-i586.jar" + basedir="${nativewindow.dist.dir}/nativewindow-solx86/32" + includes="libnativewindow.so,libnativewindow_awt.so" /> + <jar destfile="${nativewindow.dist.dir}/nativewindow-natives-solaris-amd64.jar" + basedir="${nativewindow.dist.dir}/nativewindow-solx86/64" + includes="libnativewindow.so,libnativewindow_awt.so" /> <!-- Copy gluegen-rt.jar from Linux build (arbitrary; this jar is platform-independent) --> - <copy file="${nwi.dist.dir}/nwi-linux/gluegen-rt.jar" todir="${nwi.dist.dir}" /> + <copy file="${nativewindow.dist.dir}/nativewindow-linux/gluegen-rt.jar" todir="${nativewindow.dist.dir}" /> <!-- Copy gluegen-rt native jars out of platform-specific subdirectories --> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-win/32" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-win/32" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-win/64" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-win/64" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-linux/32" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-linux/32" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-linux/64" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-linux/64" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-macosx/ppc" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-macosx/ppc" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-macosx/fat" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-macosx/fat" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-solsparc/32" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-solsparc/32" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-solsparc/64" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-solsparc/64" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-solx86/32" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-solx86/32" includes="gluegen-natives-*.jar" /> </copy> - <copy todir="${nwi.dist.dir}"> - <fileset dir="${nwi.dist.dir}/nwi-solx86/64" includes="gluegen-natives-*.jar" /> + <copy todir="${nativewindow.dist.dir}"> + <fileset dir="${nativewindow.dist.dir}/nativewindow-solx86/64" includes="gluegen-natives-*.jar" /> </copy> - <zip destfile="${nwi.dist.dir}/nwi-${tmp.version}-src.zip" + <zip destfile="${nativewindow.dist.dir}/nativewindow-${tmp.version}-src.zip" basedir="../.." - includes="jogl/*.txt,jogl/${rootrel.build.nwi}/gensrc/classes/javax/media/nwi/**,jogl/doc/**,jogl/make/**,jogl/src/nwi/**" + includes="jogl/*.txt,jogl/${rootrel.build.nativewindow}/gensrc/classes/javax/media/nativewindow/**,jogl/doc/**,jogl/make/**,jogl/src/nativewindow/**" excludes="**/*.class,**/*~" /> <!-- Create zip archives suitable for developers --> <!-- Unfortunately, we have to replicate the os/arch name combinations from gluegen-cpptasks.xml. The reason for this is that we can't generate these zip archives on the platform where the builds run; we have to run the dist - target in order to get the platform-independent nwi.jar. --> + target in order to get the platform-independent nativewindow.jar. --> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="linux-i586" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-linux/32" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-linux/32" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="linux-amd64" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-linux/64" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-linux/64" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="macosx-ppc" /> <param name="zip.so.suffix" value=".jnilib" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-macosx/ppc" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-macosx/ppc" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="macosx-universal" /> <param name="zip.so.suffix" value=".jnilib" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-macosx/fat" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-macosx/fat" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="solaris-i586" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-solx86/32" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-solx86/32" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="solaris-amd64" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-solx86/64" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-solx86/64" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="solaris-sparc" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-solsparc/32" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-solsparc/32" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="solaris-sparcv9" /> <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-solsparc/64" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-solsparc/64" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="windows-i586" /> <param name="zip.so.suffix" value=".dll" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-win/32" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-win/32" /> </antcall> <antcall target="dist.build.zip" inheritAll="true"> <param name="zip.os.arch" value="windows-amd64" /> <param name="zip.so.suffix" value=".dll" /> - <param name="zip.src.so.dir" value="${nwi.dist.dir}/nwi-win/64" /> + <param name="zip.src.so.dir" value="${nativewindow.dist.dir}/nativewindow-win/64" /> </antcall> <!-- Create one last zip archive by hand, this one containing all of the --> <!-- Java Web Start jar files (for easier redistribution) --> - <zip destfile="${nwi.dist.dir}/nwi-${tmp.version}-webstart.zip" - basedir="${nwi.dist.dir}" + <zip destfile="${nativewindow.dist.dir}/nativewindow-${tmp.version}-webstart.zip" + basedir="${nativewindow.dist.dir}" includes="*.jar" /> <!-- Create a version.txt file indicating which version we just built --> - <echo message="${tmp.version}" file="${nwi.dist.dir}/version.txt" /> + <echo message="${tmp.version}" file="${nativewindow.dist.dir}/version.txt" /> </target> <!-- ================================================================== --> @@ -1337,7 +1337,7 @@ <!-- - Build everything. --> - <target name="all" description="Build NWI JAR file(s) and native libraries." depends="load.user.properties,init,jar,c.build.nwi" /> + <target name="all" description="Build NativeWindow JAR file(s) and native libraries." depends="load.user.properties,init,jar,c.build.nativewindow" /> <!-- ================================================================== --> <!-- @@ -1345,10 +1345,10 @@ - indicate this is the Reference Implementation. --> <target name="RI"> - <!-- Set property for using the RI manifest file so nwi.jar is versioned + <!-- Set property for using the RI manifest file so nativewindow.jar is versioned - properly --> - <property name="RImanifestfile" value="nwiRIversion" /> + <property name="RImanifestfile" value="nativewindowRIversion" /> <antcall target="all" inheritRefs="true" /> </target> </project> diff --git a/make/build.xml b/make/build.xml index 2980d4139..2f141d216 100644 --- a/make/build.xml +++ b/make/build.xml @@ -11,35 +11,36 @@ <property name="build" value="${project.root}/${rootrel.build}" /> <property name="src" value="${project.root}/src" /> - <property name="nwi.make.dir" value="." /> - <property name="nwi.build.xml" value="${nwi.make.dir}/build-nwi.xml" /> + <property name="nativewindow.make.dir" value="." /> + <property name="nativewindow.build.xml" value="${nativewindow.make.dir}/build-nativewindow.xml" /> <property name="jogl.make.dir" value="." /> <property name="jogl.build.xml" value="${jogl.make.dir}/build-jogl.xml" /> <property name="newt.make.dir" value="." /> <property name="newt.build.xml" value="${newt.make.dir}/build-newt.xml" /> - <property name="all.srcj.path" value="${src}/nwi/classes;${src}/jogl/classes;${src}/newt/classes" /> - <property name="all.genj.path" value="${build}-nwi/gensrc/classes;${build}-jogl/gensrc/classes;${build}-newt/gensrc/classes" /> + <property name="all.srcj.path" value="${src}/nativewindow/classes;${src}/jogl/classes;${src}/newt/classes" /> + <property name="all.genj.path" value="${build}-nativewindow/gensrc/classes;${build}-jogl/gensrc/classes;${build}-newt/gensrc/classes" /> <!-- The javadoc dirs. --> - <property name="javadoc" value="${project.root}/javadoc_joglnwinewt_public" /> - <property name="javadoc.spec" value="${project.root}/javadoc_joglnwinewt_spec" /> - <property name="javadoc.dev" value="${project.root}/javadoc_joglnwinewt_dev" /> + <property name="javadoc" value="${project.root}/javadoc_public" /> + <property name="javadoc.spec" value="${project.root}/javadoc_spec" /> + <property name="javadoc.dev" value="${project.root}/javadoc_dev" /> <property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /> - <property name="javadoc.windowtitle" value="JOGL, NWI and NEWT API -- JSR-231 ${base_version} Specification" /> + <property name="javadoc.windowtitle" value="JOGL, NativeWindow and NEWT APIs" /> + <property name="javadoc.spec.windowtitle" value="JOGL and NativeWindow APIs -- JSR-231 ${base_version} Specification" /> <property name="javadoc.overview" value="spec-overview.html" /> - <property name="javadoc.spec.packagenames" value="javax.media.nwi.*, javax.media.opengl.*, com.sun.javafx.newt, com.sun.javafx.newt.opengl" /> - <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util.*" /> - <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.opengl.impl.*,com.sun.nwi.impl.*,com.sun.javafx.newt.*,com.sun.gluegen,com.sun.gluegen.runtime" /> + <property name="javadoc.spec.packagenames" value="javax.media.nativewindow.*, javax.media.opengl.*" /> + <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util.*,com.sun.javafx.newt, com.sun.javafx.newt.opengl" /> + <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.opengl.impl.*,com.sun.nativewindow.impl.*,com.sun.javafx.newt.*,com.sun.gluegen,com.sun.gluegen.runtime" /> <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="http://jcp.org/en/jsr/detail?id=231">license terms</a>." /> <property name="gluegen-rt.jar" value="../../gluegen/${rootrel.build}/gluegen-rt.jar" /> - <property name="nwi.all.jar" value="../${rootrel.build}-nwi/nwi.all.jar" /> + <property name="nativewindow.all.jar" value="../${rootrel.build}-nativewindow/nativewindow.all.jar" /> <property name="jogl.all.jar" value="../${rootrel.build}-jogl/jogl.all.jar" /> <property name="newt.all.jar" value="../${rootrel.build}-newt/newt.all.jar" /> <path id="all.classpath"> - <pathelement location="${nwi.all.jar}" /> + <pathelement location="${nativewindow.all.jar}" /> <pathelement location="${gluegen-rt.jar}" /> <pathelement location="${jogl.all.jar}" /> <pathelement location="${newt.all.jar}" /> @@ -47,8 +48,8 @@ </target> - <target name="build.nwi" depends="init"> - <ant antfile="${nwi.build.xml}" dir="${nwi.make.dir}" target="all" inheritAll="false"/> + <target name="build.nativewindow" depends="init"> + <ant antfile="${nativewindow.build.xml}" dir="${nativewindow.make.dir}" target="all" inheritAll="false"/> </target> <target name="build.jogl" depends="init"> @@ -59,10 +60,10 @@ <ant antfile="${newt.build.xml}" dir="${newt.make.dir}" target="all" inheritAll="false"/> </target> - <target name="all" description="Build nwi, jogl and newt projects" depends="init,build.nwi,build.jogl,build.newt" /> + <target name="all" description="Build nativewindow, jogl and newt projects" depends="init,build.nativewindow,build.jogl,build.newt" /> <target name="clean" depends="init"> - <ant antfile="${nwi.build.xml}" dir="${nwi.make.dir}" target="clean" inheritAll="false"/> + <ant antfile="${nativewindow.build.xml}" dir="${nativewindow.make.dir}" target="clean" inheritAll="false"/> <ant antfile="${jogl.build.xml}" dir="${jogl.make.dir}" target="clean" inheritAll="false"/> <ant antfile="${newt.build.xml}" dir="${newt.make.dir}" target="clean" inheritAll="false"/> </target> @@ -109,7 +110,7 @@ </javadoc> </target> - <target name="all.doc" description="Build NWI, JOGL and NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" /> + <target name="all.doc" description="Build NativeWindow, JOGL and NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" /> </project> diff --git a/make/config/nwi/jawt-CustomJavaCode.java b/make/config/nativewindow/jawt-CustomJavaCode.java index f1ef91075..f1ef91075 100755 --- a/make/config/nwi/jawt-CustomJavaCode.java +++ b/make/config/nativewindow/jawt-CustomJavaCode.java diff --git a/make/config/nwi/jawt-DrawingSurfaceInfo-CustomJavaCode.java b/make/config/nativewindow/jawt-DrawingSurfaceInfo-CustomJavaCode.java index 1cc13e7d8..1cc13e7d8 100755 --- a/make/config/nwi/jawt-DrawingSurfaceInfo-CustomJavaCode.java +++ b/make/config/nativewindow/jawt-DrawingSurfaceInfo-CustomJavaCode.java diff --git a/make/config/nwi/jawt-macosx.cfg b/make/config/nativewindow/jawt-macosx.cfg index 57cceb6a1..57cceb6a1 100644 --- a/make/config/nwi/jawt-macosx.cfg +++ b/make/config/nativewindow/jawt-macosx.cfg diff --git a/make/config/nwi/jawt-win32.cfg b/make/config/nativewindow/jawt-win32.cfg index 74aef8f75..74aef8f75 100644 --- a/make/config/nwi/jawt-win32.cfg +++ b/make/config/nativewindow/jawt-win32.cfg diff --git a/make/config/nwi/jawt-x11.cfg b/make/config/nativewindow/jawt-x11.cfg index fdcf16bdb..fdcf16bdb 100644 --- a/make/config/nwi/jawt-x11.cfg +++ b/make/config/nativewindow/jawt-x11.cfg diff --git a/make/config/nwi/x11-CustomCCode.c b/make/config/nativewindow/x11-CustomCCode.c index 793327c72..793327c72 100755 --- a/make/config/nwi/x11-CustomCCode.c +++ b/make/config/nativewindow/x11-CustomCCode.c diff --git a/make/config/nwi/x11-lib.cfg b/make/config/nativewindow/x11-lib.cfg index 1448e7783..1448e7783 100644 --- a/make/config/nwi/x11-lib.cfg +++ b/make/config/nativewindow/x11-lib.cfg diff --git a/make/nativewindowversion b/make/nativewindowversion index de3a10fda..0180d3368 100644 --- a/make/nativewindowversion +++ b/make/nativewindowversion @@ -4,5 +4,5 @@ Specification-Vendor: Sun Microsystems, Inc. Implementation-Title: Native Window Interface Runtime Environment Implementation-Version: @VERSION@ Implementation-Vendor: java.net JOGL community -Extension-Name: javax.media.nwi +Extension-Name: javax.media.nativewindow Implementation-Vendor-Id: com.sun diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/Debug.java b/src/nativewindow/classes/com/sun/nativewindow/impl/Debug.java index 73379e87b..5d53f88fd 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/Debug.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/Debug.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl; +package com.sun.nativewindow.impl; import java.security.*; @@ -49,13 +49,13 @@ public class Debug { private static boolean debugAll; static { - verbose = isPropertyDefined("nwi.verbose"); - debugAll = isPropertyDefined("nwi.debug"); + verbose = isPropertyDefined("nativewindow.verbose"); + debugAll = isPropertyDefined("nativewindow.debug"); if (verbose) { - Package p = Package.getPackage("javax.media.nwi"); - System.err.println("NWI specification version " + p.getSpecificationVersion()); - System.err.println("NWI implementation version " + p.getImplementationVersion()); - System.err.println("NWI implementation vendor " + p.getImplementationVendor()); + Package p = Package.getPackage("javax.media.nativewindow"); + System.err.println("NativeWindow specification version " + p.getSpecificationVersion()); + System.err.println("NativeWindow implementation version " + p.getImplementationVersion()); + System.err.println("NativeWindow implementation vendor " + p.getImplementationVendor()); } } @@ -88,6 +88,6 @@ public class Debug { } public static boolean debug(String subcomponent) { - return debugAll() || isPropertyDefined("nwi.debug." + subcomponent); + return debugAll() || isPropertyDefined("nativewindow.debug." + subcomponent); } } diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java index 51037af28..aec6e3175 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java @@ -34,10 +34,10 @@ * facility. */ -package com.sun.nwi.impl; +package com.sun.nativewindow.impl; import java.lang.reflect.*; -import javax.media.nwi.*; +import javax.media.nativewindow.*; public final class NWReflection { public static final boolean DEBUG = Debug.debug("NWReflection"); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NativeLibLoaderBase.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NativeLibLoaderBase.java index 9e072fec0..0be1f77d6 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NativeLibLoaderBase.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NativeLibLoaderBase.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl; +package com.sun.nativewindow.impl; // FIXME: refactor Java SE dependencies //import java.awt.Toolkit; @@ -104,10 +104,10 @@ public class NativeLibLoaderBase { } } - public static void loadNWI(final String ossuffix) { + public static void loadNativeWindow(final String ossuffix) { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - loadLibrary("nwi_"+ossuffix, null, false); + loadLibrary("nativewindow_"+ossuffix, null, false); return null; } }); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NativeWindowFactoryImpl.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NativeWindowFactoryImpl.java index ce164204c..6e8542181 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NativeWindowFactoryImpl.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NativeWindowFactoryImpl.java @@ -30,12 +30,12 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package com.sun.nwi.impl; +package com.sun.nativewindow.impl; import java.lang.reflect.*; import java.security.*; -import javax.media.nwi.*; +import javax.media.nativewindow.*; public class NativeWindowFactoryImpl extends NativeWindowFactory { protected static final boolean DEBUG = Debug.debug("NativeWindowFactoryImpl"); @@ -57,7 +57,7 @@ public class NativeWindowFactoryImpl extends NativeWindowFactory { throw new IllegalArgumentException("Target window object type " + winObj.getClass().getName() + " is unsupported; expected " + - "javax.media.nwi.NativeWindow or java.awt.Component"); + "javax.media.nativewindow.NativeWindow or java.awt.Component"); } private Constructor nativeWindowConstructor = null; @@ -73,12 +73,12 @@ public class NativeWindowFactoryImpl extends NativeWindowFactory { // make it easier to run this code on mobile devices if (osNameLowerCase.startsWith("wind")) { - windowClassName = "com.sun.nwi.impl.jawt.windows.WindowsJAWTWindow"; + windowClassName = "com.sun.nativewindow.impl.jawt.windows.WindowsJAWTWindow"; } else if (osNameLowerCase.startsWith("mac os x")) { - windowClassName = "com.sun.nwi.impl.jawt.macosx.MacOSXJAWTWindow"; + windowClassName = "com.sun.nativewindow.impl.jawt.macosx.MacOSXJAWTWindow"; } else { // Assume Linux, Solaris, etc. Should probably test for these explicitly. - windowClassName = "com.sun.nwi.impl.jawt.x11.X11JAWTWindow"; + windowClassName = "com.sun.nativewindow.impl.jawt.x11.X11JAWTWindow"; } if (windowClassName == null) { diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java index 727d3dd03..fe07b0f16 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NullWindow.java @@ -34,9 +34,9 @@ * facility. */ -package com.sun.nwi.impl; +package com.sun.nativewindow.impl; -import javax.media.nwi.*; +import javax.media.nativewindow.*; public class NullWindow implements NativeWindow { protected boolean locked; diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java index 064a85b65..4b5b57f04 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTNativeLibLoader.java @@ -37,9 +37,9 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl.jawt; +package com.sun.nativewindow.impl.jawt; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; import java.awt.Toolkit; import java.lang.reflect.InvocationTargetException; @@ -63,7 +63,7 @@ public class JAWTNativeLibLoader extends NativeLibLoaderBase { boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); String[] preload = { "jawt" }; - loadLibrary("nwi_awt", (isOSX)?null:preload, false); + loadLibrary("nativewindow_awt", (isOSX)?null:preload, false); return null; } }); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTUtil.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTUtil.java index 887513523..a996f9ea9 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTUtil.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTUtil.java @@ -34,17 +34,17 @@ * facility. */ -package com.sun.nwi.impl.jawt; +package com.sun.nativewindow.impl.jawt; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; -import javax.media.nwi.*; +import javax.media.nativewindow.*; import java.awt.GraphicsEnvironment; public class JAWTUtil { static { - NativeLibLoaderBase.loadNWI("awt"); + NativeLibLoaderBase.loadNativeWindow("awt"); } // See whether we're running in headless mode diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java index 1311f3b4b..c710a67bf 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWTWindow.java @@ -34,15 +34,14 @@ * facility. */ -package com.sun.nwi.impl.jawt; +package com.sun.nativewindow.impl.jawt; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; import java.awt.Component; import java.awt.GraphicsEnvironment; -import javax.media.nwi.*; -import javax.media.nwi.*; -import com.sun.nwi.impl.*; +import javax.media.nativewindow.*; +import com.sun.nativewindow.impl.*; public abstract class JAWTWindow implements NativeWindow { protected static final boolean DEBUG = Debug.debug("GLDrawable"); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWT_PlatformInfo.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWT_PlatformInfo.java index c71bdc918..cc6af7ea4 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWT_PlatformInfo.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/JAWT_PlatformInfo.java @@ -37,9 +37,9 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl.jawt; +package com.sun.nativewindow.impl.jawt; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; /** Marker class for all window system-specific JAWT data structures. */ diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java index 4d911da36..310f17f64 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/macosx/MacOSXJAWTWindow.java @@ -37,16 +37,15 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl.jawt.macosx; +package com.sun.nativewindow.impl.jawt.macosx; -import com.sun.nwi.impl.jawt.*; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.jawt.*; +import com.sun.nativewindow.impl.*; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; -import javax.media.nwi.*; -import javax.media.nwi.*; +import javax.media.nativewindow.*; import java.security.*; public class MacOSXJAWTWindow extends JAWTWindow { diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java index cf5c0f328..364ee9d32 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/windows/WindowsJAWTWindow.java @@ -37,12 +37,12 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl.jawt.windows; +package com.sun.nativewindow.impl.jawt.windows; -import com.sun.nwi.impl.jawt.*; +import com.sun.nativewindow.impl.*; +import com.sun.nativewindow.impl.jawt.*; -import javax.media.nwi.*; -import com.sun.nwi.impl.*; +import javax.media.nativewindow.*; public class WindowsJAWTWindow extends JAWTWindow { diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java index 16fcb6b57..60b68c0e8 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11JAWTWindow.java @@ -34,14 +34,13 @@ * facility. */ -package com.sun.nwi.impl.jawt.x11; +package com.sun.nativewindow.impl.jawt.x11; -import com.sun.nwi.impl.x11.*; -import com.sun.nwi.impl.jawt.*; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.x11.*; +import com.sun.nativewindow.impl.jawt.*; +import com.sun.nativewindow.impl.*; -import javax.media.nwi.*; -import javax.media.nwi.*; +import javax.media.nativewindow.*; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11SunJDKReflection.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11SunJDKReflection.java index d7d8daee4..f8c1624df 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11SunJDKReflection.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jawt/x11/X11SunJDKReflection.java @@ -37,9 +37,9 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.nwi.impl.jawt.x11; +package com.sun.nativewindow.impl.jawt.x11; -import com.sun.nwi.impl.x11.*; +import com.sun.nativewindow.impl.x11.*; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11Util.java b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11Util.java index b38dd5959..af3300ec8 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11Util.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/X11Util.java @@ -30,15 +30,15 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package com.sun.nwi.impl.x11; +package com.sun.nativewindow.impl.x11; -import javax.media.nwi.*; +import javax.media.nativewindow.*; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; public class X11Util { static { - NativeLibLoaderBase.loadNWI("x11"); + NativeLibLoaderBase.loadNativeWindow("x11"); } private static final boolean DEBUG = Debug.debug("X11Util"); diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/awt/X11AWTNativeWindowFactory.java b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/awt/X11AWTNativeWindowFactory.java index 87feb5f50..e3bf428cc 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/x11/awt/X11AWTNativeWindowFactory.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/x11/awt/X11AWTNativeWindowFactory.java @@ -30,17 +30,17 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package com.sun.nwi.impl.x11.awt; +package com.sun.nativewindow.impl.x11.awt; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; -import javax.media.nwi.*; +import javax.media.nativewindow.*; -import com.sun.nwi.impl.*; -import com.sun.nwi.impl.jawt.*; -import com.sun.nwi.impl.jawt.x11.*; -import com.sun.nwi.impl.x11.*; +import com.sun.nativewindow.impl.*; +import com.sun.nativewindow.impl.jawt.*; +import com.sun.nativewindow.impl.jawt.x11.*; +import com.sun.nativewindow.impl.x11.*; public class X11AWTNativeWindowFactory extends NativeWindowFactoryImpl { diff --git a/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsConfiguration.java b/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsConfiguration.java index a85aca41c..512ebf17c 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsConfiguration.java +++ b/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsConfiguration.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** A marker interface describing a graphics configuration, visual, or pixel format in a toolkit-independent manner. */ diff --git a/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsDevice.java b/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsDevice.java index 743210273..3bef97aaf 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsDevice.java +++ b/src/nativewindow/classes/javax/media/nativewindow/AbstractGraphicsDevice.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** A marker interface describing a graphics device in a toolkit-independent manner. */ diff --git a/src/nativewindow/classes/javax/media/nativewindow/DefaultNWCapabilitiesChooser.java b/src/nativewindow/classes/javax/media/nativewindow/DefaultNWCapabilitiesChooser.java index 1318ea419..0e18a301d 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/DefaultNWCapabilitiesChooser.java +++ b/src/nativewindow/classes/javax/media/nativewindow/DefaultNWCapabilitiesChooser.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** <P> The default implementation of the {@link NWCapabilitiesChooser} interface, which provides consistent visual diff --git a/src/nativewindow/classes/javax/media/nativewindow/NWCapabilities.java b/src/nativewindow/classes/javax/media/nativewindow/NWCapabilities.java index cc3ebb77c..0b0ee99f7 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NWCapabilities.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NWCapabilities.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** Specifies a set of OpenGL capabilities that a rendering context must support, such as color depth and whether stereo is enabled. diff --git a/src/nativewindow/classes/javax/media/nativewindow/NWCapabilitiesChooser.java b/src/nativewindow/classes/javax/media/nativewindow/NWCapabilitiesChooser.java index 12884c5e2..a980462f5 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NWCapabilitiesChooser.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NWCapabilitiesChooser.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** Provides a mechanism by which applications can customize the window type selection for a given {@link NWCapabilities}. diff --git a/src/nativewindow/classes/javax/media/nativewindow/NWException.java b/src/nativewindow/classes/javax/media/nativewindow/NWException.java index a9e5b054d..7d21277e6 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NWException.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NWException.java @@ -37,9 +37,9 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; -/** A generic exception for NWI errors used throughout the binding +/** A generic exception for errors used throughout the binding as a substitute for {@link RuntimeException}. */ public class NWException extends RuntimeException { diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java index f992c2231..99b301997 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindow.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** Provides the mechanism by which the Java / OpenGL binding interacts with windows. A window toolkit such as the AWT may diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowException.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowException.java index bc1a8ddef..593c1e7d6 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowException.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowException.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi; +package javax.media.nativewindow; /** A generic exception for OpenGL errors used throughout the binding as a substitute for {@link RuntimeException}. */ diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index 622dfc3a7..fc9235075 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -30,14 +30,14 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package javax.media.nwi; +package javax.media.nativewindow; -import javax.media.nwi.*; +import javax.media.nativewindow.*; import java.lang.reflect.*; import java.security.*; import java.util.*; -import com.sun.nwi.impl.*; +import com.sun.nativewindow.impl.*; /** Provides the link between the window toolkit and the Java binding to the OpenGL API. The NativeWindowFactory, and NativeWindow @@ -69,7 +69,7 @@ public abstract class NativeWindowFactory { // make it easier to run this code on mobile devices NativeWindowFactory factory = new NativeWindowFactoryImpl(); - nativeWindowClass = javax.media.nwi.NativeWindow.class; + nativeWindowClass = javax.media.nativewindow.NativeWindow.class; registerFactory(nativeWindowClass, factory); defaultFactory = factory; @@ -84,7 +84,7 @@ public abstract class NativeWindowFactory { // Assume X11 platform -- should probably test for these explicitly try { Constructor factoryConstructor = - NWReflection.getConstructor("com.sun.nwi.impl.x11.awt.X11AWTNativeWindowFactory", new Class[] {}); + NWReflection.getConstructor("com.sun.nativewindow.impl.x11.awt.X11AWTNativeWindowFactory", new Class[] {}); factory = (NativeWindowFactory) factoryConstructor.newInstance(null); } catch (Exception e) { } } diff --git a/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java b/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java index c9e2b4170..6b9d25190 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java +++ b/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java @@ -30,7 +30,7 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package javax.media.nwi; +package javax.media.nativewindow; /** Provides an interface for locking and unlocking the underlying window toolkit, where this is necessary in the OpenGL diff --git a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsConfiguration.java b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsConfiguration.java index 313654c05..389417615 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsConfiguration.java +++ b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsConfiguration.java @@ -37,10 +37,10 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi.awt; +package javax.media.nativewindow.awt; import java.awt.GraphicsConfiguration; -import javax.media.nwi.AbstractGraphicsConfiguration; +import javax.media.nativewindow.AbstractGraphicsConfiguration; /** A wrapper for an AWT GraphicsConfiguration allowing it to be handled in a toolkit-independent manner. */ diff --git a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsDevice.java b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsDevice.java index f6da16176..72c53f550 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsDevice.java +++ b/src/nativewindow/classes/javax/media/nativewindow/awt/AWTGraphicsDevice.java @@ -37,10 +37,10 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package javax.media.nwi.awt; +package javax.media.nativewindow.awt; import java.awt.GraphicsDevice; -import javax.media.nwi.AbstractGraphicsDevice; +import javax.media.nativewindow.AbstractGraphicsDevice; /** A wrapper for an AWT GraphicsDevice allowing it to be handled in a toolkit-independent manner. */ diff --git a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java index f18185fa7..c40f26a94 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java +++ b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsConfiguration.java @@ -30,9 +30,9 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package javax.media.nwi.x11; +package javax.media.nativewindow.x11; -import javax.media.nwi.*; +import javax.media.nativewindow.*; /** Encapsulates a graphics configuration, or OpenGL pixel format, on X11 platforms. Objects of this type are returned from {@link diff --git a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsDevice.java b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsDevice.java index 3288447d9..5a12e0e62 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsDevice.java +++ b/src/nativewindow/classes/javax/media/nativewindow/x11/X11GraphicsDevice.java @@ -30,9 +30,9 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package javax.media.nwi.x11; +package javax.media.nativewindow.x11; -import javax.media.nwi.*; +import javax.media.nativewindow.*; /** Encapsulates a graphics device, or screen, on X11 platforms. Objects of this type are passed to {@link diff --git a/src/nativewindow/native/JAWT_DrawingSurfaceInfo.c b/src/nativewindow/native/JAWT_DrawingSurfaceInfo.c index 0a6daace0..e4afbdb70 100644 --- a/src/nativewindow/native/JAWT_DrawingSurfaceInfo.c +++ b/src/nativewindow/native/JAWT_DrawingSurfaceInfo.c @@ -50,7 +50,7 @@ #endif JNIEXPORT jobject JNICALL -Java_com_sun_nwi_impl_jawt_JAWT_1DrawingSurfaceInfo_platformInfo0(JNIEnv* env, jobject unused, jobject jthis0) { +Java_com_sun_nativewindow_impl_jawt_JAWT_1DrawingSurfaceInfo_platformInfo0(JNIEnv* env, jobject unused, jobject jthis0) { JAWT_DrawingSurfaceInfo* dsi; dsi = (*env)->GetDirectBufferAddress(env, jthis0); if (dsi == NULL) { |