Changeset 19613

Show
Ignore:
Timestamp:
12/10/06 11:54:44 (2 years ago)
Author:
patrick
Message:

Added untested bindings for vrj::OpenSGApp so that PyJuggler? and PyOpenSG
can be combined. Rolled version to 1.1.9.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/trunk/ChangeLog

    r19440 r19613  
    11DATE        AUTHOR      CHANGE 
    22----------- ----------- ------------------------------------------------------- 
     3Dec-10-2006 patrick     Exposed vrj::OpenSGApp so that developers can combine 
     4                        PyJuggler and PyOpenSG. 
     5                        NEW VERSION: 1.1.9 
    36Nov-10-2006 patrick     Handle 64-bit installations of Open Scene Graph. 
    47Jul-14-2006 patrick     Use automatic linking for CppDOM and the Juggler 
  • PyJuggler/trunk/configure.ac

    r19610 r19613  
    5555            [  --with-osg=<PATH>       Open Scene Graph installation   [default=$OSGHOME then /usr/local]], 
    5656            [osg_base_dir="$withval"], [osg_base_dir=${OSGHOME-/usr/local}]) 
     57 
     58AC_ARG_WITH([opensg], 
     59            [  --with-opensg=<PATH>    OpenSG installation             [default=$OSGROOT then /usr/local]], 
     60            [opensg_base_dir="$withval"], 
     61            [opensg_base_dir=${OSGROOT-/usr/local}]) 
    5762 
    5863# Force the use of GCC as the compiler. 
     
    530535fi 
    531536 
     537HAVE_OPENSG='N' 
     538 
     539if test "x$opensg_base_dir" != "xno" ; then 
     540#   pyjsave_CFLAGS="$CFLAGS" 
     541#   pyjsave_CPPFLAGS="$CPPFLAGS" 
     542#   pyjsave_LDFLAGS="$LDFLAGS" 
     543#   pyjsave_LIBS="$LIBS" 
     544 
     545   AC_PATH_PROG(OPENSG_CONFIG, osg-config, no, [$opensg_base_dir/bin:$PATH]) 
     546   if test "x$OPENSG_CONFIG" != "xno" ; then 
     547      opensg_pkgs='Base System' 
     548      OPENSG_INCLUDES=`$OPENSG_CONFIG --opt --cflags $opensg_pkgs` 
     549      OPENSG_LDFLAGS=`$OPENSG_CONFIG --opt --lflags $opensg_pkgs` 
     550      OPENSG_LIBS=`$OPENSG_CONFIG --opt --libs $opensg_pkgs` 
     551      HAVE_OPENSG='Y' 
     552   fi 
     553 
     554#   CFLAGS="$pyjsave_CFLAGS" 
     555#   CPPFLAGS="$pyjsave_CPPFLAGS" 
     556#   LDFLAGS="$pyjsave_LDFLAGS" 
     557#   LIBS="$pyjsave_LIBS" 
     558fi 
     559 
    532560# ----------------------------------------------------------------------------- 
    533561# Miscellaneous checks. 
     
    568596AC_SUBST(OSG_LDFLAGS) 
    569597AC_SUBST(OSG_LIBS) 
     598 
     599AC_SUBST(HAVE_OPENSG) 
     600AC_SUBST(OPENSG_INCLUDES) 
     601AC_SUBST(OPENSG_LDFLAGS) 
     602AC_SUBST(OPENSG_LIBS) 
    570603 
    571604AC_SUBST(PYTHON_ROOT) 
     
    600633                 src/jccl/Makefile 
    601634                 src/osgapp/Makefile 
     635                 src/opensgapp/Makefile 
    602636                 src/snx/Makefile 
    603637                 src/vpr/Makefile 
  • PyJuggler/trunk/dist/__init__.py

    r19005 r19613  
    66__all__     = ["vrj", "cluster", "gadget", "snx", "jccl", "vpr"] 
    77__build__   = 1 
    8 __version__ = '1.1.8.%d' % __build__ 
     8__version__ = '1.1.9.%d' % __build__ 
    99__date__    = string.join(string.split('$Date$')[1:3], ' ') 
    1010__author__  = 'Patrick Hartling <patrick@infiscape.com>' 
  • PyJuggler/trunk/dist/vrj.py

    r18525 r19613  
    1515   pass 
    1616 
     17# Attempt to import everything from __opensgapp into our namespace. If it 
     18# fails, then OpenSG is not available for use. For people who don't want to 
     19# use vrj.OpenSGApp, this is fine. For those who do, they have to have OpenSG 
     20# and PyOpenSG installed. 
     21try: 
     22   from __opensgapp import * 
     23except: 
     24   pass 
     25 
    1726__doc__ = '''PyJuggler.vrj is a module that imports the symbols from 
    18 PyJuggler.__vrj and PyJuggler.__osgapp into its namespace.  PyJuggler.__osgapp 
    19 is an optional module, and importing it may fail if it was not compiled 
    20 or if the Open Scene Graph is not available at run time. 
     27PyJuggler.__vrj, PyJuggler.__osgapp, and PyJuggler.__opensgapp into its 
     28namespace. PyJuggler.__osgapp and PyJuggler.__opensgapp are optional modules, 
     29and importing one or both may fail if the module was not compiled or if the 
     30Open Scene Graph and/or OpenSG libraries are not available at run time. 
    2131 
    22 Refer to the PyJuggler.__vrj and PyJuggler.__osgapp modules for class 
    23 documentation. 
     32Refer to the PyJuggler.__vrj, PyJuggler.__osgapp, and PyJuggler.__opensgapp 
     33modules for class documentation. 
    2434''' 
  • PyJuggler/trunk/src/Makefile.in

    r18525 r19613  
    99ifeq (@HAVE_OSG@, Y) 
    1010DIRS+=  osgapp 
     11endif 
     12 
     13ifeq (@HAVE_OPENSG@, Y) 
     14DIRS+=  opensgapp 
    1115endif 
    1216