Hi all,

I have managed to update the latest java sources of poker-eval so that 
the java bindings can be built within the automake/autobuild process.

notable changes:
  - upgraded java code to java 5
  - removed dependency to jakarta oro
  - jni library is built by libtool
  - added the flag --enable-java to configure.ac which sets up all 
required java programs (javac, javah, javadoc,...) and target/host 
specific variables/flags
    if --enable-java is not set (or false) java will be skipped completely
  - added several .m4 files to config dir that actually check the java 
environment


yet there are some issues :-)

  - gcj or other is not supported -> req. Sun JDK 5 or later atm
  - currently the shared lib names are hard coded in java (probably fine 
for non-Windows systems; on Windows you finally need the compiled libs 
'libpoker-eval-1.dll' and 'libpokerjni-1.dll')
  - a corresponding 'Makefile.dos' is missing (how to create?)

  - as the license of JUnit (CPL) is not compatible with the GPL, i 
could replace it with...(?) maybe TestNG (Apache License 2.0, similar 
usage, easy to convert)
  - i'm not quite sure of the license note of 'config/ac_prog_javah.m4' 
(imo ok)


how to build and test:
  # ... (usual trunk prebuild: libtoolize, aclocal, autoconf,...)

  ./configure --enable-java
  make

  # java test:
  cd java
  make test
  make develtest

  # cd ..
  # make install

tested on Ubuntu and MinGW, I hope this will work for you too

check out the sources:
http://svn.gna.org/svn/pokersource/branches/poker-eval-java

this is a proposal, if you don't like the changes in configure.ac
i can create a separate build process for java

thanks a lot Loic for your help and support :-)
Sascha

_______________________________________________
Pokersource-users mailing list
Pokersource-users@gna.org
https://mail.gna.org/listinfo/pokersource-users

Reply via email to