From 34b87617a677ae67078074fb37dce1cbc8080eec Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 14 Jan 2006 02:34:55 +0000 Subject: Revised JOGL's build.xml to look more like JOAL's with autodetection of OS and CPU. Added default "all" target. It is now no longer necessary to use the win32.vc6, etc. targets unless on Windows the jogl.properties file is old and does not contain the win32.c.compiler property. The nightly build setup will be adjusted for this and these now-unnecessary targets will be deleted in a subsequent checkin. Tested builds on Windows, Solaris and Mac OS X. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@540 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/build.xml | 503 ++++++++++++++++++++++++++++----------------------- make/jogl.properties | 16 +- 2 files changed, 289 insertions(+), 230 deletions(-) diff --git a/make/build.xml b/make/build.xml index ba85a0436..1bc19ecb1 100644 --- a/make/build.xml +++ b/make/build.xml @@ -17,21 +17,11 @@ - the "make" directory. This also means that this build.xml MUST - be run from the "make" directory. - - - All targets do the following: - - Build the ancillary Ant tasks. - - Generate the Java and C files. - - Compile all sources. - - Create the jogl.jar and platform library. - Public targets: - - linux - - macosx - - macosxfat (ppc & i386 - requires Intel Transition Development Kit or fat Mac OS X) - - solaris - - win32.vc6 - - win32.vc7 - - win32.mingw: build everything (jar, DSOs) for the current platform + - all: (default; autodetects OS and chooses C compiler from jogl.properties) - clean: clean all built - javadoc: create the standard developer Javadoc (recommended) + - (Note: should build all first - may be dependence in the future) - javadoc.spec: create the standard developer Javadoc but exclude com.sun.* classes - javadoc.dev.win32: - javadoc.dev.x11: @@ -39,6 +29,18 @@ - Java and C file generators. Note that it is only supported - to create the Javadoc for the platform on which you are - currently running. + - Optional targets (NOTE, FIXME, may be deleted in the future): + - freebsd + - linux + - linux.amd64 + - linux.ia64 + - macosx + - macosxfat (ppc & i386 - requires Intel Transition Development Kit or fat Mac OS X) + - solaris + - win32.vc6 + - win32.vc7 + - win32.vc8 + - win32.mingw: build everything (jar, DSOs) for the current platform - - Optional properties: - -Djogl.cg=1 when combined with the build or javadoc targets will cause @@ -48,25 +50,89 @@ - ANT build, including the GlueGen and StaticGLInfo tasks, the building of - the Java generated sources, the first and second phase Java compiles, and - the building of the jar file. Thanks to Alex Radeski for the bulk of the - - port to the ant-contrib CPPTask framework. + - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for + - the original OS detection code. --> - - - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -109,7 +205,7 @@ - + @@ -253,7 +349,31 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -275,27 +395,7 @@ - - - - - - - - - - - - - - - - - - - - - + @@ -316,79 +416,85 @@ - - - + + + + - - + + - - - + + + + - - + + - - - + + + + - - + + - - - - - - - + - - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + - - - - - + + - - + - + @@ -401,6 +507,8 @@ + + - - - + + + - - - + + + - - - + + + @@ -739,7 +847,7 @@ - + @@ -759,7 +867,7 @@ - + @@ -821,7 +929,7 @@ - + @@ -829,12 +937,12 @@ - + - + @@ -850,9 +958,10 @@ + - + @@ -860,7 +969,7 @@ - + @@ -874,38 +983,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -1158,7 +1239,7 @@ - + @@ -1173,126 +1254,100 @@ - - + + + -Use a platform specific target: linux, linux.amd64, linux.ia64, macosx, macosxfat (ppc and i386), solaris, win32.vc6, win32.vc7, win32.vc8, win32.mingw - - + + + + + + - - - - - - + + + - - - - - - + + + - - - - - - + + + - - - - - - + + + - - - - - - + + - - - - - - + + - - - - - - + + - - - - - - + + - - - - - - + + + - - + + - - - - - - + + diff --git a/make/jogl.properties b/make/jogl.properties index b5e14d47a..104d40092 100644 --- a/make/jogl.properties +++ b/make/jogl.properties @@ -24,12 +24,16 @@ # Solaris # antlr.jar=/export/kbr/ANTLR/antlr-2.7.2/antlr.jar -# -# Force the use of jikes in +E (emacs) mode -# NOTE: this is optional -# -#build.compiler=jikes -#build.compiler.emacs=true +# If you are building on Windows and have the Microsoft Visual C++ +# compilers installed, you can choose an alternate compiler with which +# to build the JOGL native code. Valid strings here are "vc6", "vc7", +# "vc8", and "mingw". +win32.c.compiler=vc6 + +# If you are building on a Mac OS X system supporting +# cross-compilation and want to generate fat (PPC and x86) binaries, +# uncomment the property below +# macosxfat=true # # If you are building the Cg binding (by specifying -Djogl.cg=1 to the -- cgit v1.2.3