summaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks.xml
Commit message (Collapse)AuthorAgeFilesLines
* Add 'asset' URLConnection; IOUtil uses URLConnection / incr. effeciency; ↵Sven Gothel2012-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android ClassLoaderUtil cleanup; - Add 'asset' URLConnection - Please read API doc 'PiggybackURLConnection' and 'AssetURLConnection' - Solves generic resource handling where platform locations may differ, ie ClassLoader lookup on Android in the 'assets/' subfolder. - New Android 'AssetDexClassLoader' uses 'assets/' folder for findResource(..) - aapt.signed (our APK ant task) - uses 'assets/' folder - adds the 'assetsdir' attribute allowing to copy other assets into the APK - IOUtil uses URLConnection / incr. effeciency - using URLConnection on all getResource(..) since URL is connected anyways for validation and URLConnection can be used by caller right away - String getRelativeOf(URL, String) -> URL getRelativeOf(URL, String) - preserves scheme, authority, etc - simple parentOf handling, more efficient - reusing new 'asset' protocol impl. - Android ClassLoaderUtil cleanup; - Use createClassLoader(..) impl for build-in static jogamp and user APKs, which removes code redundancy Tests: New code path, especially 'assets' are covered by new unit tests, no regressions on Linux.
* Fix rel GLUEGEN_CPPTASKS_FILE commit e617834dcabdb83f383a2d2a82fcd2d9d987c154Sven Gothel2012-03-101-5/+7
|
* Allow GLUEGEN_CPPTASKS_FILE to be relative to gluegen.root ; Load ↵Sven Gothel2012-03-101-9/+17
| | | | gluegen-cpptasks-base.xml in custom files w/ gluegen.root.abs-path.
* Introduce environment-var/property to disable unit tests (per node)Sven Gothel2012-02-241-4/+0
| | | | JUNIT_DISABLED -> junit.is.disabled
* minor: verbose outputSven Gothel2012-02-241-8/+2
|
* Exposing custom gluegen-cpptask.file for crosscompilation presets, adding ↵Sven Gothel2012-02-241-4/+8
| | | | | | gluegen-cpptasks-linux-armv7.xml Env: GLUEGEN_CPPTASKS_FILE -> property: gluegen-cpptasks.file
* http://jogamp.org/bugzilla/show_bug.cgi?id=393Sven Gothel2010-04-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed junit test: test1 - Create seperate native libraries to reflect a real world example: test1 - the library to bind to (no more declaring __stdcall @nn functions) BindingTest1p1 - the dynamic fixed linkage binding test1p1, references dynamic library test1 at linktime. BindingTest1p2 - the dynamic runtime linkage binding test1p2, loads dynamic library test1 at runtime. Generic: - gluegen-cpptasks-base.xml - target 'gluegen.cpptasks.detect.os' Set new property 'system.env.library.path' DYLD_LIBRARY_PATH (macosx) LD_LIBRARY_PATH (unix) PATH (windows) - target 'gluegen.cpptasks.striplibs' Strips the symbols out of the native libraries in case c.compiler.debug is false. Maybe configured with the properties: c.strip.tool, c.strip.args - Using system.env.library.path in junit call to find the test1 library in case of runtime linkage and lookup (test1p2). - Use gluegen.cpptasks.striplibs for all native libs .. - Added macosx32 in analogy to macosx64, both defaults to true now - com.jogamp.common.os.WindowsDynamicLinkerImpl:lookupSymbol() - Added lookup for __stdcall @nn (stepping alignment 4, max-args: 12) in case no undecorated __cdecl symbol is found. Fixed Windows platform: - Use proper path.seperator on Windows. - test1.dll needs proper soname inside for fixed linkage (test1p1) hence the output name must be test1.dll, not libtest1.so +++ http://jogamp.org/bugzilla/show_bug.cgi?id=394 Fix MacOsX platform: The commit of cpptasks.jar, git hash 129e783741d91e9ee5cd7da5d5c962c32ec96b0b, broke the universal binary build on MacOSX. The above change used cpptasks-1.05b with a few patches in regards to crosscompilation, but missed one, which accepts the '-arch' argument for GccLinker undecorated. The new cpptasks.jar is vanilla 1.05b + cpptasks-1.0b5-darwin-patch.diff, the latter a more refined one. This version accepts the '-arch' argument undecorated on the darwin platform. +++
* Use property.location for compatible absolute path compositionSven Gothel2010-03-261-3/+5
|
* Revert "Remove absolute path composing with basedir .."Michael Bien2010-03-261-1/+1
| | | | | looked fine but it did not work for all projects... This reverts commit 3793f181a21a38e8e4965eff073a5007c9c094a2.
* Remove absolute path composing with basedir ..Sven Gothel2010-03-261-1/+1
|
* Fix import/basedir bug (ant?) for hudson workspaceSven Gothel2010-03-261-1/+8
|
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=390Sven Gothel2010-03-251-802/+17
| | | | | | | | | | | | | | | | | Adding 'plain' junit tests. Plain stands for the simple processing of: ant.junit.compile: gluegen -> java/c files, javac/cc, jar ant.junit.run: junit batch run Avoiding 'black magic', ie kicking off gluegen and ant-compilation from within the junit tests. Same methodology as the JOGL junit tests, junit test sources are under 'src/junit' This way, the migration to other platform tests might be easier, as well as the we don't need to pass through ant properties (ant - junit - ant), see 3a32650d4229f9b4ad1f527d9e30c24ddb69bb3f.
* preparations for continuous builds and cross compilation (WIP).Michael Bien2009-11-201-1/+3
|
* Added quick hack to simplify crosscompilation with cpptasks.Michael Bien2009-11-171-3/+25
| | | | | | CppTasks uses a hardcoded command (compiler name) to invoke the specified compiler which makes crosscompilation with multiple versions of e.g gcc hard. Temporary disabled suncc compiler configuration since it does not work with cpptasks 1.0b5.
* added explicit -m32 and -m64 args to linux gcc compiler and linker configure ↵Michael Bien2009-11-131-0/+4
| | | | targets.
* Add custom config locations via properties 'gluegen.user.properties.file' ↵Sven Gothel2009-10-021-3/+13
| | | | and 'gluegen.user.compiler.file'
* MingW: Refince CC flagsSven Gothel2009-07-311-0/+3
|
* Proper gluegen.properties loading (2)sg2158892009-07-281-16/+2
|
* Proper gluegen.properties loadingsg2158892009-07-281-2/+6
|
* Verbose mac osx x64 and ppcsg2158892009-07-281-0/+2
|
* Add: Extended support for CVM crosscompile:sg2158892009-07-241-0/+3
| | | | | - Clean up X11 dependency - Adding 'noX11' property to avoid setting 'isX11'
* Build CDC named JARs for CVM in default build, no more specialized build ↵sg2158892009-07-151-3/+6
| | | | necessary. Fix PointerBuffer allocateDirect()
* Remove macosx.ppc build per default. Enable it via ant property macosppc=trueSven Gothel2009-07-041-4/+12
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@156 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Disable MSVC run-time assertion checking for non-debug builds (unlessKenneth Russel2009-06-171-3/+22
| | | | | | | the property c.compiler.debug is set to true) git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@149 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Copied JOGL_2_SANDBOX r145 on to trunk; JOGL_2_SANDBOX branch is now closedKenneth Russel2009-06-151-0/+755
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@147 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Deleted obsolete source code in preparation for copying JOGL_2_SANDBOXKenneth Russel2009-06-151-540/+0
| | | | | | | on to trunk git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@146 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Adding customized gluegen.cpptasks.configure.compiler target.Sven Gothel2008-05-271-2/+5
| | | | | | | | Specify your target in ${user.home}/gluegen.compiler.xml' The enables a user to specify the compiler and linker, including all options. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@78 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Modified gluegen-cpptasks, gluegen.properties and jogl.properties toKenneth Russel2008-02-091-0/+6
| | | | | | | support building 64-bit on Leopard git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@71 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Issue 322: Please add linker option for vc8 win32 build environment ↵Kenneth Russel2007-10-101-0/+1
| | | | | | | | | | when building gluegen. Added requested linker option. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@70 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed bug in OS/CPU detection on Windows/AMD64Kenneth Russel2006-12-081-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@53 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Removed native code for DRIHack and replaced it with code using theKenneth Russel2006-11-241-1/+5
| | | | | | | | | | | | | | | | | | | | | GlueGen runtime library (specifically the NativeLibrary class). Updated the build.xml, in particular the dist targets, to no longer build or copy this native library. Updated the NativeLibrary class to allow specification of the full path to the library. Removed the GlueGen runtime classes from jogl.jar; these are now expected to reside in gluegen-rt.jar and it is expected that developers will have this on their CLASSPATH. Updated the dist target to include the gluegen-rt native library and jar file. Updated the JOGLAppletLauncher to download and unpack the gluegen-rt-natives jar as well as the jogl-natives jar. Updated the HowToBuild, user guide, and JOGLAppletLauncher documentation for this restructuring. Fixed bug in gluegen-cpptasks.xml in detection of Solaris/SPARCv9 and refactored targets further. Tested on Solaris/x86 so far; further testing and debugging of the nightly builds and applet launcher, and update of the JOGL applet test, to follow. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@51 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Removed apparently illegal -xcode=32 argument from Kenneth Russel2006-09-031-1/+0
| | | | | | | compiler.cfg.solaris.sparcv9 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@46 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added more OS- and CPU-specific properties (i.e., isWindowsX86) and Kenneth Russel2006-08-271-1/+129
| | | | | | | | the os.and.arch and native.library.suffix properties to make building Java Web Start native library jar files easier git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@43 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Refactored initialization of C compilers via cpptasks into Kenneth Russel2006-08-121-0/+170
| | | | | | | | | | | gluegen-cpptasks.xml. Now JOGL and JOAL subclass these compiler and linker definitions where necessary, resulting in much more code sharing between the build.xml files. JOAL should now be ready to compile on more platforms as well. Tested so far on Windows; will test builds on other platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@40 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Changed isSolaris property detected by gluegen-cpptasks.xml to mean Kenneth Russel2006-08-011-11/+14
| | | | | | | | any of the 32- or 64-bit Solaris targets; added isSolaris32Bit property; revised dependent build.xml files git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@36 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Issue number:Travis Bryson2006-06-131-0/+9
| | | | | | | | | | | | | | | | | Obtained from: Submitted by: Travis Reviewed by: Add Solaris AMD64 detection. Put 64 bit JVM in your path before 32 bit for detection to occur properly. Modified Files: make/gluegen-cpptasks.xml git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@34 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Issue number:Travis Bryson2006-04-251-1/+16
| | | | | | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Add proper 64 bit Sparcv9 detection. These changes are necessary for 64 bit JOGL build on sparc solaris. Modified Files: make/gluegen-cpptasks.xml src/java/com/sun/gluegen/StructLayout.java src/java/com/sun/gluegen/runtime/CPU.java ---------------------------------------------------------------------- git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@30 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added patch from user mabraham on javagaming.org forums for building Kenneth Russel2006-04-141-0/+15
| | | | | | | on Windows 64-bit git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@28 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Support for building on HP/UX from user metasim on JOGL forumKenneth Russel2006-04-131-0/+5
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@25 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Patched isLinuxAMD64 computation based on feedback from cjbeyer on JOGL forumKenneth Russel2006-02-191-1/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@17 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed build breakage on Linux after recent build changesKenneth Russel2006-01-151-9/+13
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@4 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Moved GlueGen out of the JOGL workspace and into its own project. Kenneth Russel2006-01-151-0/+175
Restructured JOGL and JOAL build processes to separately invoke GlueGen's main build.xml before using it to generate their code. Refactored OS/CPU detection code into gluegen-cpptasks.xml build file in GlueGen workspace, which is now imported by both the JOGL and JOAL build processes. Unfortunately it seems to be somewhat difficult to completely factor out the C compiler configuration into the GlueGen workspace so this has been left for a later date. Added missed ALProcAddressLookup file to JOAL workspace. Updated JOGL and JOAL build documentation. More documentation for the GlueGen workspace is forthcoming. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@3 a78bb65f-1512-4460-ba86-f6dc96a7bf27