You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(20) |
Feb
(11) |
Mar
(6) |
Apr
(5) |
May
(4) |
Jun
(7) |
Jul
(9) |
Aug
(11) |
Sep
|
Oct
(4) |
Nov
(13) |
Dec
(21) |
2010 |
Jan
(23) |
Feb
(32) |
Mar
(6) |
Apr
(2) |
May
(10) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(1) |
Dec
(16) |
2011 |
Jan
(1) |
Feb
(5) |
Mar
(19) |
Apr
(13) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
(4) |
Feb
(8) |
Mar
(2) |
Apr
(6) |
May
(13) |
Jun
(1) |
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(4) |
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(15) |
Apr
(2) |
May
(4) |
Jun
(17) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(6) |
Jun
(6) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
(1) |
May
(6) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <mar...@us...> - 2009-02-06 02:05:29
|
Revision: 41 http://simspark.svn.sourceforge.net/simspark/?rev=41&view=rev Author: marianbuchta Date: 2009-02-06 02:05:26 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Added paths to check for Windows libraries Added #define HAVE_IL_IL_H 1 Added include SDL header files because Windows version of SDL library has header files in "include" directory not in "SDL" directory Modified Paths: -------------- trunk/spark/cmake/FindDevIL.cmake trunk/spark/cmake/FindODE.cmake trunk/spark/plugin/inputsdl/inputdevicesdl.h trunk/spark/plugin/inputsdl/inputsystemsdl.cpp trunk/spark/plugin/inputsdl/inputsystemsdl.h trunk/spark/plugin/openglsyssdl/openglsystemsdl.cpp trunk/spark/test/fonttest/main.cpp trunk/spark/test/inputtest/main.cpp trunk/spark/test/scenetest/main.cpp trunk/spark/windows/sparkconfig.h Added Paths: ----------- trunk/spark/cmake/FindBoost.cmake trunk/spark/cmake/FindFreetype.cmake trunk/spark/cmake/FindRuby.cmake trunk/spark/cmake/FindSDL.cmake Added: trunk/spark/cmake/FindBoost.cmake =================================================================== --- trunk/spark/cmake/FindBoost.cmake (rev 0) +++ trunk/spark/cmake/FindBoost.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -0,0 +1,640 @@ +# - Try to find Boost include dirs and libraries +# Usage of this module as follows: +# +# SET(Boost_USE_STATIC_LIBS ON) +# SET(Boost_USE_MULTITHREAD OFF) +# FIND_PACKAGE( Boost 1.34.1 COMPONENTS date_time filesystem iostreams ... ) +# +# The Boost_ADDITIONAL_VERSIONS variable can be used to specify a list of +# boost version numbers that should be taken into account when searching +# for the libraries. Unfortunately boost puts the version number into the +# actual filename for the libraries, so this might be needed in the future +# when new Boost versions are released. +# +# Currently this module searches for the following version numbers: +# 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, 1.35, 1.35.0, 1.35.1, 1.36, +# 1.36.0, 1.36.1 +# +# The components list needs to be the actual names of boost libraries, that is +# the part of the actual library files that differ on different libraries. So +# its "date_time" for "libboost_date_time...". Anything else will result in +# errors +# +# You can provide a minimum version number that should be used. If you provide this +# version number and specify the REQUIRED attribute, this module will fail if it +# can't find the specified or a later version. If you specify a version number this is +# automatically put into the considered list of version numbers and thus doesn't need +# to be specified in the Boost_ADDITIONAL_VERSIONS variable +# +# Variables used by this module, they can change the default behaviour and need to be set +# before calling find_package: +# Boost_USE_MULTITHREAD Can be set to OFF to use the non-multithreaded +# boost libraries. Defaults to ON. +# Boost_USE_STATIC_LIBS Can be set to ON to force the use of the static +# boost libraries. Defaults to OFF. +# Boost_ADDITIONAL_VERSIONS A list of version numbers to use for searching +# the boost include directory. The default list +# of version numbers is: +# 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, +# 1.35, 1.35.0, 1.35.1, 1.36, 1.36.0, 1.36.1 +# If you want to look for an older or newer +# version set this variable to a list of +# strings, where each string contains a number, i.e. +# SET(Boost_ADDITIONAL_VERSIONS "0.99.0" "1.35.0") +# BOOST_ROOT or BOOSTROOT Preferred installation prefix for searching for Boost, +# set this if the module has problems finding the proper Boost installation +# BOOST_INCLUDEDIR Set this to the include directory of Boost, if the +# module has problems finding the proper Boost installation +# BOOST_LIBRARYDIR Set this to the lib directory of Boost, if the +# module has problems finding the proper Boost installation +# +# The last three variables are available also as environment variables +# +# +# Variables defined by this module: +# +# Boost_FOUND System has Boost, this means the include dir was found, +# as well as all the libraries specified in the COMPONENTS list +# Boost_INCLUDE_DIRS Boost include directories, not cached +# Boost_INCLUDE_DIR This is almost the same as above, but this one is cached and may be +# modified by advanced users +# Boost_LIBRARIES Link these to use the Boost libraries that you specified, not cached +# Boost_LIBRARY_DIRS The path to where the Boost library files are. +# Boost_VERSION The version number of the boost libraries that have been found, +# same as in version.hpp from Boost +# Boost_LIB_VERSION The version number in filename form as its appended to the library filenames +# Boost_MAJOR_VERSION major version number of boost +# Boost_MINOR_VERSION minor version number of boost +# Boost_SUBMINOR_VERSION subminor version number of boost +# Boost_LIB_DIAGNOSTIC_DEFINITIONS Only set on windows. Can be used with add_definitions +# to print diagnostic information about the automatic +# linking done on windows. + +# For each component you list the following variables are set. +# ATTENTION: The component names need to be in lower case, just as the boost +# library names however the cmake variables use upper case for the component +# part. So you'd get Boost_SERIALIZATION_FOUND for example. +# +# Boost_${COMPONENT}_FOUND True IF the Boost library "component" was found. +# Boost_${COMPONENT}_LIBRARY The absolute path of the Boost library "component". +# Boost_${COMPONENT}_LIBRARY_DEBUG The absolute path of the debug version of the +# Boost library "component". +# Boost_${COMPONENT}_LIBRARY_RELEASE The absolute path of the release version of the +# Boost library "component" +# +# Copyright (c) 2006-2008 Andreas Schneider <ma...@cy...> +# Copyright (c) 2007 Wengo +# Copyright (c) 2007 Mike Jackson +# Copyright (c) 2008 Andreas Pakulat <ap...@gm...> +# +# Redistribution AND use is allowed according to the terms of the New +# BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# +OPTION(Boost_USE_MULTITHREADED + "Use the multithreaded versions of the Boost libraries" ON) + +if (Boost_FIND_VERSION_EXACT) + if (Boost_FIND_VERSION_PATCH) + set( _boost_TEST_VERSIONS + "${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}.${Boost_FIND_VERSION_PATCH}") + else (Boost_FIND_VERSION_PATCH) + set( _boost_TEST_VERSIONS + "${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}.0" + "${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}") + endif (Boost_FIND_VERSION_PATCH) +else (Boost_FIND_VERSION_EXACT) + set( _boost_TEST_VERSIONS ${Boost_ADDITIONAL_VERSIONS} + "1.36.1" "1.36.0" "1.36" "1.35.1" "1.35.0" "1.35" "1.34.1" "1.34.0" + "1.34" "1.33.1" "1.33.0" "1.33" ) +endif (Boost_FIND_VERSION_EXACT) + +# The reason that we failed to find Boost. This will be set to a +# user-friendly message when we fail to find some necessary piece of +# Boost. +set(Boost_ERROR_REASON) + +############################################ +# +# Check the existence of the libraries. +# +############################################ +# This macro was taken directly from the FindQt4.cmake file that is included +# with the CMake distribution. This is NOT my work. All work was done by the +# original authors of the FindQt4.cmake file. Only minor modifications were +# made to remove references to Qt and make this file more generally applicable +######################################################################### + +MACRO (_Boost_ADJUST_LIB_VARS basename) + IF (Boost_INCLUDE_DIR ) + IF (Boost_${basename}_LIBRARY_DEBUG AND Boost_${basename}_LIBRARY_RELEASE) + # if the generator supports configuration types then set + # optimized and debug libraries, or if the CMAKE_BUILD_TYPE has a value + IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + SET(Boost_${basename}_LIBRARY optimized ${Boost_${basename}_LIBRARY_RELEASE} debug ${Boost_${basename}_LIBRARY_DEBUG}) + ELSE(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + # if there are no configuration types and CMAKE_BUILD_TYPE has no value + # then just use the release libraries + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_RELEASE} ) + ENDIF(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) + SET(Boost_${basename}_LIBRARIES optimized ${Boost_${basename}_LIBRARY_RELEASE} debug ${Boost_${basename}_LIBRARY_DEBUG}) + ENDIF (Boost_${basename}_LIBRARY_DEBUG AND Boost_${basename}_LIBRARY_RELEASE) + + # if only the release version was found, set the debug variable also to the release version + IF (Boost_${basename}_LIBRARY_RELEASE AND NOT Boost_${basename}_LIBRARY_DEBUG) + SET(Boost_${basename}_LIBRARY_DEBUG ${Boost_${basename}_LIBRARY_RELEASE}) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_RELEASE}) + SET(Boost_${basename}_LIBRARIES ${Boost_${basename}_LIBRARY_RELEASE}) + ENDIF (Boost_${basename}_LIBRARY_RELEASE AND NOT Boost_${basename}_LIBRARY_DEBUG) + + # if only the debug version was found, set the release variable also to the debug version + IF (Boost_${basename}_LIBRARY_DEBUG AND NOT Boost_${basename}_LIBRARY_RELEASE) + SET(Boost_${basename}_LIBRARY_RELEASE ${Boost_${basename}_LIBRARY_DEBUG}) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY_DEBUG}) + SET(Boost_${basename}_LIBRARIES ${Boost_${basename}_LIBRARY_DEBUG}) + ENDIF (Boost_${basename}_LIBRARY_DEBUG AND NOT Boost_${basename}_LIBRARY_RELEASE) + + IF (Boost_${basename}_LIBRARY) + SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library") + GET_FILENAME_COMPONENT(Boost_LIBRARY_DIRS "${Boost_${basename}_LIBRARY}" PATH) + SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE FILEPATH "Boost library directory") + SET(Boost_${basename}_FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found") + ENDIF (Boost_${basename}_LIBRARY) + + ENDIF (Boost_INCLUDE_DIR ) + # Make variables changeble to the advanced user + MARK_AS_ADVANCED( + Boost_${basename}_LIBRARY + Boost_${basename}_LIBRARY_RELEASE + Boost_${basename}_LIBRARY_DEBUG + ) +ENDMACRO (_Boost_ADJUST_LIB_VARS) + +#------------------------------------------------------------------------------- + + +SET( _boost_IN_CACHE TRUE) +IF(Boost_INCLUDE_DIR) + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} COMPONENT) + IF(NOT Boost_${COMPONENT}_FOUND) + SET( _boost_IN_CACHE FALSE) + ENDIF(NOT Boost_${COMPONENT}_FOUND) + ENDFOREACH(COMPONENT) +ELSE(Boost_INCLUDE_DIR) + SET( _boost_IN_CACHE FALSE) +ENDIF(Boost_INCLUDE_DIR) + +IF (_boost_IN_CACHE) + # in cache already + SET(Boost_FOUND TRUE) + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} COMPONENT) + _Boost_ADJUST_LIB_VARS( ${COMPONENT} ) + SET(Boost_LIBRARIES ${Boost_LIBRARIES} ${Boost_${COMPONENT}_LIBRARY}) + ENDFOREACH(COMPONENT) + SET(Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIR}) + IF(Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0") + MATH(EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000") + MATH(EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000") + MATH(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") + ENDIF(Boost_VERSION AND NOT "${Boost_VERSION}" STREQUAL "0") +ELSE (_boost_IN_CACHE) + # Need to search for boost + + IF(WIN32) + # In windows, automatic linking is performed, so you do not have + # to specify the libraries. If you are linking to a dynamic + # runtime, then you can choose to link to either a static or a + # dynamic Boost library, the default is to do a static link. You + # can alter this for a specific library "whatever" by defining + # BOOST_WHATEVER_DYN_LINK to force Boost library "whatever" to be + # linked dynamically. Alternatively you can force all Boost + # libraries to dynamic link by defining BOOST_ALL_DYN_LINK. + + # This feature can be disabled for Boost library "whatever" by + # defining BOOST_WHATEVER_NO_LIB, or for all of Boost by defining + # BOOST_ALL_NO_LIB. + + # If you want to observe which libraries are being linked against + # then defining BOOST_LIB_DIAGNOSTIC will cause the auto-linking + # code to emit a #pragma message each time a library is selected + # for linking. + SET(Boost_LIB_DIAGNOSTIC_DEFINITIONS + "-DBOOST_LIB_DIAGNOSTIC" CACHE STRING "Boost diagnostic define") + ENDIF(WIN32) + + SET(_boost_INCLUDE_SEARCH_DIRS + "$ENV{ProgramFiles}/boost/boost_${Boost_FIND_VERSION_MAJOR}_${Boost_FIND_VERSION_MINOR}_${Boost_FIND_VERSION_PATCH}" + "$ENV{ProgramFiles}/Boost" + C:/library/boost + "C:/Program Files/boost" + C:/boost + /sw/local/include + ) + + SET(_boost_LIBRARIES_SEARCH_DIRS + "$ENV{ProgramFiles}/boost/boost_${Boost_FIND_VERSION_MAJOR}_${Boost_FIND_VERSION_MINOR}_${Boost_FIND_VERSION_PATCH}/lib" + "$ENV{ProgramFiles}/Boost" + C:/library/boost/stage/lib + "C:/Program Files/boost/stage/lib" + C:/boost/lib + /sw/local/lib + ) + + # If BOOST_ROOT was defined in the environment, use it. + if (NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL "") + set(BOOST_ROOT $ENV{BOOST_ROOT}) + endif(NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL "") + + # If BOOSTROOT was defined in the environment, use it. + if (NOT BOOST_ROOT AND NOT $ENV{BOOSTROOT} STREQUAL "") + set(BOOST_ROOT $ENV{BOOSTROOT}) + endif(NOT BOOST_ROOT AND NOT $ENV{BOOSTROOT} STREQUAL "") + + # If BOOST_INCLUDEDIR was defined in the environment, use it. + IF( NOT $ENV{BOOST_INCLUDEDIR} STREQUAL "" ) + set(BOOST_INCLUDEDIR $ENV{BOOST_INCLUDEDIR}) + ENDIF( NOT $ENV{BOOST_INCLUDEDIR} STREQUAL "" ) + + # If BOOST_LIBRARYDIR was defined in the environment, use it. + IF( NOT $ENV{BOOST_LIBRARYDIR} STREQUAL "" ) + set(BOOST_LIBRARYDIR $ENV{BOOST_LIBRARYDIR}) + ENDIF( NOT $ENV{BOOST_LIBRARYDIR} STREQUAL "" ) + + IF( BOOST_ROOT ) + file(TO_CMAKE_PATH ${BOOST_ROOT} BOOST_ROOT) + SET(_boost_INCLUDE_SEARCH_DIRS + ${BOOST_ROOT}/include + ${BOOST_ROOT} + ${_boost_INCLUDE_SEARCH_DIRS}) + SET(_boost_LIBRARIES_SEARCH_DIRS + ${BOOST_ROOT}/lib + ${BOOST_ROOT}/stage/lib + ${_boost_LIBRARIES_SEARCH_DIRS}) + ENDIF( BOOST_ROOT ) + + IF( BOOST_INCLUDEDIR ) + file(TO_CMAKE_PATH ${BOOST_INCLUDEDIR} BOOST_INCLUDEDIR) + SET(_boost_INCLUDE_SEARCH_DIRS + ${BOOST_INCLUDEDIR} ${_boost_INCLUDE_SEARCH_DIRS}) + ENDIF( BOOST_INCLUDEDIR ) + + IF( BOOST_LIBRARYDIR ) + file(TO_CMAKE_PATH ${BOOST_LIBRARYDIR} BOOST_LIBRARYDIR) + SET(_boost_LIBRARIES_SEARCH_DIRS + ${BOOST_LIBRARYDIR} ${_boost_LIBRARIES_SEARCH_DIRS}) + ENDIF( BOOST_LIBRARYDIR ) + + # Try to find Boost by stepping backwards through the Boost versions + # we know about. + IF( NOT Boost_INCLUDE_DIR ) + # Build a list of path suffixes for each version. + SET(_boost_PATH_SUFFIXES) + FOREACH(_boost_VER ${_boost_TEST_VERSIONS}) + # Add in a path suffix, based on the required version, ideally + # we could read this from version.hpp, but for that to work we'd + # need to know the include dir already + if (WIN32 AND NOT CYGWIN) + set(_boost_PATH_SUFFIX boost_${_boost_VER}) + else (WIN32 AND NOT CYGWIN) + set(_boost_PATH_SUFFIX boost-${_boost_VER}) + endif (WIN32 AND NOT CYGWIN) + + IF(_boost_PATH_SUFFIX MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+") + STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3" + _boost_PATH_SUFFIX ${_boost_PATH_SUFFIX}) + ELSEIF(_boost_PATH_SUFFIX MATCHES "[0-9]+\\.[0-9]+") + STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2" + _boost_PATH_SUFFIX ${_boost_PATH_SUFFIX}) + ENDIF(_boost_PATH_SUFFIX MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+") + LIST(APPEND _boost_PATH_SUFFIXES "${_boost_PATH_SUFFIX}") + ENDFOREACH(_boost_VER) + + # Look for a standard boost header file. + FIND_PATH(Boost_INCLUDE_DIR + NAMES boost/config.hpp + HINTS ${_boost_INCLUDE_SEARCH_DIRS} + PATH_SUFFIXES ${_boost_PATH_SUFFIXES} + ) + ENDIF( NOT Boost_INCLUDE_DIR ) + + IF(Boost_INCLUDE_DIR) + # Extract Boost_VERSION and Boost_LIB_VERSION from version.hpp + # Read the whole file: + # + SET(BOOST_VERSION 0) + SET(BOOST_LIB_VERSION "") + FILE(READ "${Boost_INCLUDE_DIR}/boost/version.hpp" _boost_VERSION_HPP_CONTENTS) + + STRING(REGEX REPLACE ".*#define BOOST_VERSION ([0-9]+).*" "\\1" Boost_VERSION "${_boost_VERSION_HPP_CONTENTS}") + STRING(REGEX REPLACE ".*#define BOOST_LIB_VERSION \"([0-9_]+)\".*" "\\1" Boost_LIB_VERSION "${_boost_VERSION_HPP_CONTENTS}") + + SET(Boost_LIB_VERSION ${Boost_LIB_VERSION} CACHE INTERNAL "The library version string for boost libraries") + SET(Boost_VERSION ${Boost_VERSION} CACHE INTERNAL "The version number for boost libraries") + + IF(NOT "${Boost_VERSION}" STREQUAL "0") + MATH(EXPR Boost_MAJOR_VERSION "${Boost_VERSION} / 100000") + MATH(EXPR Boost_MINOR_VERSION "${Boost_VERSION} / 100 % 1000") + MATH(EXPR Boost_SUBMINOR_VERSION "${Boost_VERSION} % 100") + + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}\nBoost include path: ${Boost_INCLUDE_DIR}") + ENDIF(NOT "${Boost_VERSION}" STREQUAL "0") + ELSE(Boost_INCLUDE_DIR) + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers.") + ENDIF(Boost_INCLUDE_DIR) + + # Setting some more suffixes for the library + SET (Boost_LIB_PREFIX "") + IF ( WIN32 AND Boost_USE_STATIC_LIBS ) + SET (Boost_LIB_PREFIX "lib") + ENDIF ( WIN32 AND Boost_USE_STATIC_LIBS ) + SET (_boost_COMPILER "-gcc") + IF (MSVC90) + SET (_boost_COMPILER "-vc90") + ELSEIF (MSVC80) + SET (_boost_COMPILER "-vc80") + ELSEIF (MSVC71) + SET (_boost_COMPILER "-vc71") + ENDIF(MSVC90) + IF (MINGW) + EXEC_PROGRAM(${CMAKE_CXX_COMPILER} + ARGS -dumpversion + OUTPUT_VARIABLE _boost_COMPILER_VERSION + ) + STRING(REGEX REPLACE "([0-9])\\.([0-9])\\.[0-9]" "\\1\\2" + _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) + SET (_boost_COMPILER "-mgw${_boost_COMPILER_VERSION}") + ENDIF(MINGW) + IF (UNIX) + IF (NOT CMAKE_COMPILER_IS_GNUCC) + # We assume that we have the Intel compiler. + SET (_boost_COMPILER "-il") + ELSE (NOT CMAKE_COMPILER_IS_GNUCC) + # Determine which version of GCC we have. + EXEC_PROGRAM(${CMAKE_CXX_COMPILER} + ARGS -dumpversion + OUTPUT_VARIABLE _boost_COMPILER_VERSION + ) + STRING(REGEX REPLACE "([0-9])\\.([0-9])\\.[0-9]" "\\1\\2" + _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) + IF(APPLE) + IF(Boost_MINOR_VERSION) + IF(${Boost_MINOR_VERSION} GREATER 35) + # In Boost 1.36.0 and newer, the mangled compiler name used + # on Mac OS X/Darwin is "xgcc". + SET(_boost_COMPILER "-xgcc${_boost_COMPILER_VERSION}") + ELSE(${Boost_MINOR_VERSION} GREATER 35) + # In Boost <= 1.35.0, there is no mangled compiler name for + # the Mac OS X/Darwin version of GCC. + SET(_boost_COMPILER "") + ENDIF(${Boost_MINOR_VERSION} GREATER 35) + ELSE(Boost_MINOR_VERSION) + # We don't know the Boost version, so assume it's + # pre-1.36.0. + SET(_boost_COMPILER "") + ENDIF(Boost_MINOR_VERSION) + ELSE() + SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}") + ENDIF() + ENDIF (NOT CMAKE_COMPILER_IS_GNUCC) + ENDIF(UNIX) + + SET (_boost_MULTITHREADED "-mt") + + IF( NOT Boost_USE_MULTITHREADED ) + SET (_boost_MULTITHREADED "") + ENDIF( NOT Boost_USE_MULTITHREADED ) + + SET( _boost_STATIC_TAG "") + IF (WIN32) + IF(MSVC) + SET (_boost_ABI_TAG "g") + ENDIF(MSVC) + IF( Boost_USE_STATIC_LIBS ) + SET( _boost_STATIC_TAG "-s") + ENDIF( Boost_USE_STATIC_LIBS ) + ENDIF(WIN32) + SET (_boost_ABI_TAG "${_boost_ABI_TAG}d") + + # ------------------------------------------------------------------------ + # Begin finding boost libraries + # ------------------------------------------------------------------------ + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT) + SET( Boost_${UPPERCOMPONENT}_LIBRARY "Boost_${UPPERCOMPONENT}_LIBRARY-NOTFOUND" ) + SET( Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE "Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE-NOTFOUND" ) + SET( Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG "Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG-NOTFOUND") + + # Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES + IF( Boost_USE_STATIC_LIBS ) + SET( _boost_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) + IF(WIN32) + SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) + ELSE(WIN32) + SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) + ENDIF(WIN32) + ENDIF( Boost_USE_STATIC_LIBS ) + + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT} + HINTS ${_boost_LIBRARIES_SEARCH_DIRS} + ) + + FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG + NAMES ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG}-${Boost_LIB_VERSION} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}${_boost_ABI_TAG} + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_boost_ABI_TAG} + HINTS ${_boost_LIBRARIES_SEARCH_DIRS} + ) + + _Boost_ADJUST_LIB_VARS(${UPPERCOMPONENT}) + IF( Boost_USE_STATIC_LIBS ) + SET(CMAKE_FIND_LIBRARY_SUFFIXES ${_boost_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) + ENDIF( Boost_USE_STATIC_LIBS ) + ENDFOREACH(COMPONENT) + # ------------------------------------------------------------------------ + # End finding boost libraries + # ------------------------------------------------------------------------ + + SET(Boost_INCLUDE_DIRS + ${Boost_INCLUDE_DIR} + ) + + SET(Boost_FOUND FALSE) + IF(Boost_INCLUDE_DIR) + SET( Boost_FOUND TRUE ) + + # Check the version of Boost against the requested version. + if (Boost_FIND_VERSION AND NOT Boost_FIND_VERSION_MINOR) + message(SEND_ERROR "When requesting a specific version of Boost, you must provide at least the major and minor version numbers, e.g., 1.34") + endif (Boost_FIND_VERSION AND NOT Boost_FIND_VERSION_MINOR) + if(Boost_MAJOR_VERSION LESS "${Boost_FIND_VERSION_MAJOR}" ) + set( Boost_FOUND FALSE ) + set(_Boost_VERSION_AGE "old") + elseif(Boost_MAJOR_VERSION EQUAL "${Boost_FIND_VERSION_MAJOR}" ) + if(Boost_MINOR_VERSION LESS "${Boost_FIND_VERSION_MINOR}" ) + set( Boost_FOUND FALSE ) + set(_Boost_VERSION_AGE "old") + elseif(Boost_MINOR_VERSION EQUAL "${Boost_FIND_VERSION_MINOR}" ) + if( Boost_FIND_VERSION_PATCH AND Boost_SUBMINOR_VERSION LESS "${Boost_FIND_VERSION_PATCH}" ) + set( Boost_FOUND FALSE ) + set(_Boost_VERSION_AGE "old") + endif( Boost_FIND_VERSION_PATCH AND Boost_SUBMINOR_VERSION LESS "${Boost_FIND_VERSION_PATCH}" ) + endif( Boost_MINOR_VERSION LESS "${Boost_FIND_VERSION_MINOR}" ) + endif( Boost_MAJOR_VERSION LESS "${Boost_FIND_VERSION_MAJOR}" ) + + if (Boost_FOUND AND Boost_FIND_VERSION_EXACT) + # If the user requested an exact version of Boost, check + # that. We already know that the Boost version we have is >= the + # requested version. + set(_Boost_VERSION_AGE "new") + + # If the user didn't specify a patchlevel, it's 0. + if (NOT Boost_FIND_VERSION_PATCH) + set(Boost_FIND_VERSION_PATCH 0) + endif (NOT Boost_FIND_VERSION_PATCH) + + # We'll set Boost_FOUND true again if we have an exact version match. + set(Boost_FOUND FALSE) + if(Boost_MAJOR_VERSION EQUAL "${Boost_FIND_VERSION_MAJOR}" ) + if(Boost_MINOR_VERSION EQUAL "${Boost_FIND_VERSION_MINOR}" ) + if(Boost_SUBMINOR_VERSION EQUAL "${Boost_FIND_VERSION_PATCH}" ) + set( Boost_FOUND TRUE ) + endif(Boost_SUBMINOR_VERSION EQUAL "${Boost_FIND_VERSION_PATCH}" ) + endif( Boost_MINOR_VERSION EQUAL "${Boost_FIND_VERSION_MINOR}" ) + endif( Boost_MAJOR_VERSION EQUAL "${Boost_FIND_VERSION_MAJOR}" ) + endif (Boost_FOUND AND Boost_FIND_VERSION_EXACT) + + if(NOT Boost_FOUND) + # State that we found a version of Boost that is too new or too old. + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}\nDetected version of Boost is too ${_Boost_VERSION_AGE}. Requested version was ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}") + if (Boost_FIND_VERSION_PATCH) + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}.${Boost_FIND_VERSION_PATCH}") + endif (Boost_FIND_VERSION_PATCH) + if (NOT Boost_FIND_VERSION_EXACT) + set(Boost_ERROR_REASON "${Boost_ERROR_REASON} (or newer)") + endif (NOT Boost_FIND_VERSION_EXACT) + set(Boost_ERROR_REASON "${Boost_ERROR_REASON}.") + endif (NOT Boost_FOUND) + + if (Boost_FOUND) + set(_boost_CHECKED_COMPONENT FALSE) + set(_Boost_MISSING_COMPONENTS) + foreach(COMPONENT ${Boost_FIND_COMPONENTS}) + string(TOUPPER ${COMPONENT} COMPONENT) + set(_boost_CHECKED_COMPONENT TRUE) + if(NOT Boost_${COMPONENT}_FOUND) + string(TOLOWER ${COMPONENT} COMPONENT) + list(APPEND _Boost_MISSING_COMPONENTS ${COMPONENT}) + set( Boost_FOUND FALSE) + endif(NOT Boost_${COMPONENT}_FOUND) + endforeach(COMPONENT) + endif (Boost_FOUND) + + if (_Boost_MISSING_COMPONENTS) + # We were unable to find some libraries, so generate a sensible + # error message that lists the libraries we were unable to find. + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}\nThe following Boost libraries could not be found:\n") + foreach(COMPONENT ${_Boost_MISSING_COMPONENTS}) + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON} boost_${COMPONENT}\n") + endforeach(COMPONENT) + + list(LENGTH Boost_FIND_COMPONENTS Boost_NUM_COMPONENTS_WANTED) + list(LENGTH _Boost_MISSING_COMPONENTS Boost_NUM_MISSING_COMPONENTS) + if (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS}) + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") + else (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS}) + set(Boost_ERROR_REASON + "${Boost_ERROR_REASON}Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.") + endif (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS}) + endif (_Boost_MISSING_COMPONENTS) + + IF( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT ) + # Compatibility Code for backwards compatibility with CMake + # 2.4's FindBoost module. + + # Look for the boost library path. + # Note that the user may not have installed any libraries + # so it is quite possible the Boost_LIBRARY_PATH may not exist. + SET(_boost_LIB_DIR ${Boost_INCLUDE_DIR}) + + IF("${_boost_LIB_DIR}" MATCHES "boost-[0-9]+") + GET_FILENAME_COMPONENT(_boost_LIB_DIR ${_boost_LIB_DIR} PATH) + ENDIF ("${_boost_LIB_DIR}" MATCHES "boost-[0-9]+") + + IF("${_boost_LIB_DIR}" MATCHES "/include$") + # Strip off the trailing "/include" in the path. + GET_FILENAME_COMPONENT(_boost_LIB_DIR ${_boost_LIB_DIR} PATH) + ENDIF("${_boost_LIB_DIR}" MATCHES "/include$") + + IF(EXISTS "${_boost_LIB_DIR}/lib") + SET (_boost_LIB_DIR ${_boost_LIB_DIR}/lib) + ELSE(EXISTS "${_boost_LIB_DIR}/lib") + IF(EXISTS "${_boost_LIB_DIR}/stage/lib") + SET(_boost_LIB_DIR ${_boost_LIB_DIR}/stage/lib) + ELSE(EXISTS "${_boost_LIB_DIR}/stage/lib") + SET(_boost_LIB_DIR "") + ENDIF(EXISTS "${_boost_LIB_DIR}/stage/lib") + ENDIF(EXISTS "${_boost_LIB_DIR}/lib") + + IF(_boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}") + SET(Boost_LIBRARY_DIRS ${_boost_LIB_DIR} CACHE FILEPATH "Boost library directory") + ENDIF(_boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}") + + ENDIF( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT ) + + ELSE(Boost_INCLUDE_DIR) + SET( Boost_FOUND FALSE) + ENDIF(Boost_INCLUDE_DIR) + + IF (Boost_FOUND) + IF (NOT Boost_FIND_QUIETLY) + MESSAGE(STATUS "Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}") + ENDIF(NOT Boost_FIND_QUIETLY) + IF (NOT Boost_FIND_QUIETLY) + MESSAGE(STATUS "Found the following Boost libraries:") + ENDIF(NOT Boost_FIND_QUIETLY) + FOREACH ( COMPONENT ${Boost_FIND_COMPONENTS} ) + STRING( TOUPPER ${COMPONENT} UPPERCOMPONENT ) + IF ( Boost_${UPPERCOMPONENT}_FOUND ) + IF (NOT Boost_FIND_QUIETLY) + MESSAGE (STATUS " ${COMPONENT}") + ENDIF(NOT Boost_FIND_QUIETLY) + SET(Boost_LIBRARIES ${Boost_LIBRARIES} ${Boost_${UPPERCOMPONENT}_LIBRARY}) + ENDIF ( Boost_${UPPERCOMPONENT}_FOUND ) + ENDFOREACH(COMPONENT) + ELSE (Boost_FOUND) + IF (Boost_FIND_REQUIRED) + message(SEND_ERROR "Unable to find the requested Boost libraries.\n${Boost_ERROR_REASON}") + ENDIF(Boost_FIND_REQUIRED) + ENDIF(Boost_FOUND) + + # Under Windows, automatic linking is performed, so no need to specify the libraries. + IF (WIN32) + IF (NOT MINGW) + SET(Boost_LIBRARIES "") + ENDIF (NOT MINGW) + ENDIF(WIN32) + + # show the Boost_INCLUDE_DIRS AND Boost_LIBRARIES variables only in the advanced view + MARK_AS_ADVANCED(Boost_INCLUDE_DIR + Boost_INCLUDE_DIRS + Boost_LIBRARY_DIRS + Boost_USE_MULTITHREADED + ) +ENDIF(_boost_IN_CACHE) + Modified: trunk/spark/cmake/FindDevIL.cmake =================================================================== --- trunk/spark/cmake/FindDevIL.cmake 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/cmake/FindDevIL.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -31,6 +31,9 @@ /usr/ /opt/net/gcc41/DevIL /opt/net/gcc33/DevIL + C:/library/DevIL + "C:/Program Files/DevIL" + C:/DevIL ) # appended @@ -40,7 +43,7 @@ SET(DevIL_POSSIBLE_LIBDIR_SUFFIXES lib lib64 - DevIL/lib ) + ) Added: trunk/spark/cmake/FindFreetype.cmake =================================================================== --- trunk/spark/cmake/FindFreetype.cmake (rev 0) +++ trunk/spark/cmake/FindFreetype.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -0,0 +1,91 @@ +# - Locate FreeType library +# This module defines +# FREETYPE_LIBRARIES, the library to link against +# FREETYPE_FOUND, if false, do not try to link to FREETYPE +# FREETYPE_INCLUDE_DIRS, where to find headers. +# This is the concatenation of the paths: +# FREETYPE_INCLUDE_DIR_ft2build +# FREETYPE_INCLUDE_DIR_freetype2 +# +# $FREETYPE_DIR is an environment variable that would +# correspond to the ./configure --prefix=$FREETYPE_DIR +# used in building FREETYPE. + +# Created by Eric Wing. +# Modifications by Alexander Neundorf. +# This file has been renamed to "FindFreetype.cmake" instead of the correct +# "FindFreeType.cmake" in order to be compatible with the one from KDE4, Alex. + +# Ugh, FreeType seems to use some #include trickery which +# makes this harder than it should be. It looks like they +# put ft2build.h in a common/easier-to-find location which +# then contains a #include to a more specific header in a +# more specific location (#include <freetype/config/ftheader.h>). +# Then from there, they need to set a bunch of #define's +# so you can do something like: +# #include FT_FREETYPE_H +# Unfortunately, using CMake's mechanisms like INCLUDE_DIRECTORIES() +# wants explicit full paths and this trickery doesn't work too well. +# I'm going to attempt to cut out the middleman and hope +# everything still works. +FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h + HINTS + $ENV{FREETYPE_DIR} + PATH_SUFFIXES include + PATHS + /usr/local/X11R6/include + /usr/local/X11/include + /usr/X11/include + /sw/include + /opt/local/include + /usr/freeware/include + C:/library/GnuWin32/include + "C:/Program Files/GnuWin32/include" + C:/GnuWin32/include +) + +FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h + HINTS + $ENV{FREETYPE_DIR}/include/freetype2 + PATHS + /usr/local/X11R6/include + /usr/local/X11/include + /usr/X11/include + /sw/include + /opt/local/include + /usr/freeware/include + C:/library/GnuWin32/include/freetype2 + "C:/Program Files/GnuWin32/include/freetype2" + C:/GnuWin32/include/freetype2 + PATH_SUFFIXES freetype2 +) + +FIND_LIBRARY(FREETYPE_LIBRARY + NAMES freetype libfreetype freetype219 + HINTS + $ENV{FREETYPE_DIR} + PATH_SUFFIXES lib64 lib + PATHS + /usr/local/X11R6 + /usr/local/X11 + /usr/X11 + /sw + /usr/freeware + C:/library/GnuWin32/lib + "C:/Program Files/GnuWin32/lib" + C:/GnuWin32/lib +) + +# set the user variables +IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) + SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}") +ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2) +SET(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}") + +# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Freetype DEFAULT_MSG FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) + + +MARK_AS_ADVANCED(FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR_freetype2 FREETYPE_INCLUDE_DIR_ft2build) \ No newline at end of file Modified: trunk/spark/cmake/FindODE.cmake =================================================================== --- trunk/spark/cmake/FindODE.cmake 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/cmake/FindODE.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -12,6 +12,9 @@ /usr/local/include $ENV{OGRE_HOME}/include # OGRE SDK on WIN32 $ENV{INCLUDE} + C:/library/ode/include + "C:/Program Files/ode/include" + C:/ode/include ) FIND_LIBRARY(ODE_LIBRARY NAMES ode @@ -20,6 +23,9 @@ /usr/lib64 /usr/local/lib $ENV{OGRE_HOME}/lib # OGRE SDK on WIN32 + C:/library/ode/lib/releaselib + "C:/Program Files/ode/lib/releaselib" + C:/ode/lib/releaselib ) IF(ODE_INCLUDE_DIR) Added: trunk/spark/cmake/FindRuby.cmake =================================================================== --- trunk/spark/cmake/FindRuby.cmake (rev 0) +++ trunk/spark/cmake/FindRuby.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -0,0 +1,111 @@ +# - Find Ruby +# This module finds if Ruby is installed and determines where the include files +# and libraries are. It also determines what the name of the library is. This +# code sets the following variables: +# +# RUBY_INCLUDE_PATH = path to where ruby.h can be found +# RUBY_EXECUTABLE = full path to the ruby binary +# RUBY_LIBRARY = full path to the ruby library + +# Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. +# See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. + + +# RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'` +# RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'` +# RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'` +# RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'` +# RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'` + +FIND_PROGRAM(RUBY_EXECUTABLE NAMES ruby ruby1.8 ruby18 ruby1.9 ruby19) + + +IF(RUBY_EXECUTABLE AND NOT RUBY_ARCH_DIR) + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['archdir']" + OUTPUT_VARIABLE RUBY_ARCH_DIR) + + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['libdir']" + OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_DIR) + + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']" + OUTPUT_VARIABLE RUBY_RUBY_LIB_DIR) + + # site_ruby + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['sitearchdir']" + OUTPUT_VARIABLE RUBY_SITEARCH_DIR) + + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['sitelibdir']" + OUTPUT_VARIABLE RUBY_SITELIB_DIR) + + # vendor_ruby available ? + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'" + OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET) + + IF(RUBY_HAS_VENDOR_RUBY) + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['vendorlibdir']" + OUTPUT_VARIABLE RUBY_VENDORLIB_DIR) + + EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['vendorarchdir']" + OUTPUT_VARIABLE RUBY_VENDORARCH_DIR) + ENDIF(RUBY_HAS_VENDOR_RUBY) + + # save the results in the cache so we don't have to run ruby the next time again + SET(RUBY_ARCH_DIR ${RUBY_ARCH_DIR} CACHE PATH "The Ruby arch dir") + SET(RUBY_POSSIBLE_LIB_DIR ${RUBY_POSSIBLE_LIB_DIR} CACHE PATH "The Ruby lib dir") + SET(RUBY_RUBY_LIB_DIR ${RUBY_RUBY_LIB_DIR} CACHE PATH "The Ruby ruby-lib dir") + SET(RUBY_SITEARCH_DIR ${RUBY_SITEARCH_DIR} CACHE PATH "The Ruby site arch dir") + SET(RUBY_SITELIB_DIR ${RUBY_SITELIB_DIR} CACHE PATH "The Ruby site lib dir") + SET(RUBY_HAS_VENDOR_RUBY ${RUBY_HAS_VENDOR_RUBY} CACHE BOOL "Vendor Ruby is available") + SET(RUBY_VENDORARCH_DIR ${RUBY_VENDORARCH_DIR} CACHE PATH "The Ruby vendor arch dir") + SET(RUBY_VENDORLIB_DIR ${RUBY_VENDORLIB_DIR} CACHE PATH "The Ruby vendor lib dir") + +ENDIF(RUBY_EXECUTABLE AND NOT RUBY_ARCH_DIR) + +# for compatibility +SET(RUBY_POSSIBLE_LIB_PATH ${RUBY_POSSIBLE_LIB_DIR}) +SET(RUBY_RUBY_LIB_PATH ${RUBY_RUBY_LIB_DIR}) + + +FIND_PATH(RUBY_INCLUDE_PATH + NAMES ruby.h + PATHS + ${RUBY_ARCH_DIR} + /usr/lib/ruby/1.8/i586-linux-gnu/ + # for ruby 1.8 + c:/library/ruby/lib/ruby/1.8/i386-mswin32 + "c:/Program Files/ruby/lib/ruby/1.8/i386-mswin32" + c:/ruby/lib/ruby/1.8/i386-mswin32 + + # for ruby 1.9 + c:/library/ruby/include/ruby-1.9.1 + "c:/Program Files/ruby/include/ruby-1.9.1" + c:/ruby/include/ruby-1.9.1 + c:/library/ruby/include/ruby-1.9.1/i386-mswin32 + "c:/Program Files/ruby/include/ruby-1.9.1/i386-mswin32" + c:/ruby/include/ruby-1.9.1/i386-mswin32 + + ) + +# search the ruby library, the version for MSVC can have the "msvc" prefix and the "static" suffix +FIND_LIBRARY(RUBY_LIBRARY + NAMES ruby ruby1.8 ruby1.9 + msvcrt-ruby18 msvcrt-ruby19 msvcrt-ruby18-static msvcrt-ruby19-static + PATHS ${RUBY_POSSIBLE_LIB_DIR} + c:/library/ruby/lib/ + "c:/Program Files/ruby/lib/" + c:/ruby/lib/ + ) + +MARK_AS_ADVANCED( + RUBY_EXECUTABLE + RUBY_LIBRARY + RUBY_INCLUDE_PATH + RUBY_ARCH_DIR + RUBY_POSSIBLE_LIB_DIR + RUBY_RUBY_LIB_DIR + RUBY_SITEARCH_DIR + RUBY_SITELIB_DIR + RUBY_HAS_VENDOR_RUBY + RUBY_VENDORARCH_DIR + RUBY_VENDORLIB_DIR + ) Added: trunk/spark/cmake/FindSDL.cmake =================================================================== --- trunk/spark/cmake/FindSDL.cmake (rev 0) +++ trunk/spark/cmake/FindSDL.cmake 2009-02-06 02:05:26 UTC (rev 41) @@ -0,0 +1,185 @@ +# Locate SDL library +# This module defines +# SDL_LIBRARY, the name of the library to link against +# SDL_FOUND, if false, do not try to link to SDL +# SDL_INCLUDE_DIR, where to find SDL.h +# +# This module responds to the the flag: +# SDL_BUILDING_LIBRARY +# If this is defined, then no SDL_main will be linked in because +# only applications need main(). +# Otherwise, it is assumed you are building an application and this +# module will attempt to locate and set the the proper link flags +# as part of the returned SDL_LIBRARY variable. +# +# Don't forget to include SDLmain.h and SDLmain.m your project for the +# OS X framework based version. (Other versions link to -lSDLmain which +# this module will try to find on your behalf.) Also for OS X, this +# module will automatically add the -framework Cocoa on your behalf. +# +# +# Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration +# and no SDL_LIBRARY, it means CMake did not find your SDL library +# (SDL.dll, libsdl.so, SDL.framework, etc). +# Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again. +# Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value +# as appropriate. These values are used to generate the final SDL_LIBRARY +# variable, but when these values are unset, SDL_LIBRARY does not get created. +# +# +# $SDLDIR is an environment variable that would +# correspond to the ./configure --prefix=$SDLDIR +# used in building SDL. +# l.e.galup 9-20-02 +# +# Modified by Eric Wing. +# Added code to assist with automated building by using environmental variables +# and providing a more controlled/consistent search behavior. +# Added new modifications to recognize OS X frameworks and +# additional Unix paths (FreeBSD, etc). +# Also corrected the header search path to follow "proper" SDL guidelines. +# Added a search for SDLmain which is needed by some platforms. +# Added a search for threads which is needed by some platforms. +# Added needed compile switches for MinGW. +# +# On OSX, this will prefer the Framework version (if found) over others. +# People will have to manually change the cache values of +# SDL_LIBRARY to override this selection or set the CMake environment +# CMAKE_INCLUDE_PATH to modify the search paths. +# +# Note that the header path has changed from SDL/SDL.h to just SDL.h +# This needed to change because "proper" SDL convention +# is #include "SDL.h", not <SDL/SDL.h>. This is done for portability +# reasons because not all systems place things in SDL/ (see FreeBSD). + +FIND_PATH(SDL_INCLUDE_DIR SDL.h + HINTS + $ENV{SDLDIR} + PATH_SUFFIXES include + PATHS + ~/Library/Frameworks + /Library/Frameworks + /usr/local/include/SDL + /usr/include/SDL + /usr/local/include/SDL12 + /usr/local/include/SDL11 # FreeBSD ports + /usr/include/SDL12 + /usr/include/SDL11 + /usr/local/include + /usr/include + /sw/include/SDL # Fink + /sw/include + /opt/local/include/SDL # DarwinPorts + /opt/local/include + /opt/csw/include/SDL # Blastwave + /opt/csw/include + /opt/include/SDL + /opt/include + C:/library/SDL/include + "C:/Program Files/SDL/include" + C:/SDL/include +) +#MESSAGE("SDL_INCLUDE_DIR is ${SDL_INCLUDE_DIR}") + +# SDL-1.1 is the name used by FreeBSD ports... +# don't confuse it for the version number. +FIND_LIBRARY(SDL_LIBRARY_TEMP + NAMES SDL SDL-1.1 + HINTS + $ENV{SDLDIR} + PATH_SUFFIXES lib64 lib + PATHS + /usr/local + /usr + /sw + /opt/local + /opt/csw + /opt + C:/library/SDL/lib + "C:/Program Files/SDL/lib" + C:/SDL/lib +) + +#MESSAGE("SDL_LIBRARY_TEMP is ${SDL_LIBRARY_TEMP}") + +IF(NOT SDL_BUILDING_LIBRARY) + IF(NOT ${SDL_INCLUDE_DIR} MATCHES ".framework") + # Non-OS X framework versions expect you to also dynamically link to + # SDLmain. This is mainly for Windows and OS X. Other (Unix) platforms + # seem to provide SDLmain for compatibility even though they don't + # necessarily need it. + FIND_LIBRARY(SDLMAIN_LIBRARY + NAMES SDLmain SDLmain-1.1 + HINTS + $ENV{SDLDIR} + PATH_SUFFIXES lib64 lib + PATHS + /usr/local + /usr + /sw + /opt/local + /opt/csw + /opt + C:/library/SDL + "C:/Program Files/SDL" + C:/SDL + ) + ENDIF(NOT ${SDL_INCLUDE_DIR} MATCHES ".framework") +ENDIF(NOT SDL_BUILDING_LIBRARY) + +# SDL may require threads on your system. +# The Apple build may not need an explicit flag because one of the +# frameworks may already provide it. +# But for non-OSX systems, I will use the CMake Threads package. +IF(NOT APPLE) + FIND_PACKAGE(Threads) +ENDIF(NOT APPLE) + +# MinGW needs an additional library, mwindows +# It's total link flags should look like -lmingw32 -lSDLmain -lSDL -lmwindows +# (Actually on second look, I think it only needs one of the m* libraries.) +IF(MINGW) + SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW") +ENDIF(MINGW) + +SET(SDL_FOUND "NO") +IF(SDL_LIBRARY_TEMP) + # For SDLmain + IF(NOT SDL_BUILDING_LIBRARY) + IF(SDLMAIN_LIBRARY) + SET(SDL_LIBRARY_TEMP ${SDLMAIN_LIBRARY} ${SDL_LIBRARY_TEMP}) + ENDIF(SDLMAIN_LIBRARY) + ENDIF(NOT SDL_BUILDING_LIBRARY) + + # For OS X, SDL uses Cocoa as a backend so it must link to Cocoa. + # CMake doesn't display the -framework Cocoa string in the UI even + # though it actually is there if I modify a pre-used variable. + # I think it has something to do with the CACHE STRING. + # So I use a temporary variable until the end so I can set the + # "real" variable in one-shot. + IF(APPLE) + SET(SDL_LIBRARY_TEMP ${SDL_LIBRARY_TEMP} "-framework Cocoa") + ENDIF(APPLE) + + # For threads, as mentioned Apple doesn't need this. + # In fact, there seems to be a problem if I used the Threads package + # and try using this line, so I'm just skipping it entirely for OS X. + IF(NOT APPLE) + SET(SDL_LIBRARY_TEMP ${SDL_LIBRARY_TEMP} ${CMAKE_THREAD_LIBS_INIT}) + ENDIF(NOT APPLE) + + # For MinGW library + IF(MINGW) + SET(SDL_LIBRARY_TEMP ${MINGW32_LIBRARY} ${SDL_LIBRARY_TEMP}) + ENDIF(MINGW) + + # Set the final string here so the GUI reflects the final state. + SET(SDL_LIBRARY ${SDL_LIBRARY_TEMP} CACHE STRING "Where the SDL Library can be found") + # Set the temp variable to INTERNAL so it is not seen in the CMake GUI + SET(SDL_LIBRARY_TEMP "${SDL_LIBRARY_TEMP}" CACHE INTERNAL "") + + SET(SDL_FOUND "YES") +ENDIF(SDL_LIBRARY_TEMP) + +#MESSAGE("SDL_LIBRARY is ${SDL_LIBRARY}") + Modified: trunk/spark/plugin/inputsdl/inputdevicesdl.h =================================================================== --- trunk/spark/plugin/inputsdl/inputdevicesdl.h 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/plugin/inputsdl/inputdevicesdl.h 2009-02-06 02:05:26 UTC (rev 41) @@ -29,7 +29,12 @@ #include <kerosin/inputserver/inputdevice.h> #include <kerosin/inputserver/inputserver.h> + +#ifndef WIN32 #include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif /** \class InputDeviceSDL This class introduces SDL-specific callback functions for the event filtering. Modified: trunk/spark/plugin/inputsdl/inputsystemsdl.cpp =================================================================== --- trunk/spark/plugin/inputsdl/inputsystemsdl.cpp 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/plugin/inputsdl/inputsystemsdl.cpp 2009-02-06 02:05:26 UTC (rev 41) @@ -24,8 +24,14 @@ #include "inputdevicesdl.h" #include <kerosin/inputserver/inputserver.h> #include <zeitgeist/logserver/logserver.h> +#ifndef WIN32 #include <SDL/SDL_thread.h> #include <SDL/SDL_syswm.h> +#else +#include <include/SDL_thread.h> +#include <include/SDL_syswm.h> +#endif + #include "timersdl.h" using namespace boost; Modified: trunk/spark/plugin/inputsdl/inputsystemsdl.h =================================================================== --- trunk/spark/plugin/inputsdl/inputsystemsdl.h 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/plugin/inputsdl/inputsystemsdl.h 2009-02-06 02:05:26 UTC (rev 41) @@ -30,7 +30,12 @@ #include <kerosin/inputserver/inputsystem.h> #include <kerosin/inputserver/inputserver.h> #include <kerosin/openglserver/openglserver.h> + +#ifndef WIN32 #include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif struct SDL_mutex; Modified: trunk/spark/plugin/openglsyssdl/openglsystemsdl.cpp =================================================================== --- trunk/spark/plugin/openglsyssdl/openglsystemsdl.cpp 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/plugin/openglsyssdl/openglsystemsdl.cpp 2009-02-06 02:05:26 UTC (rev 41) @@ -24,7 +24,11 @@ #include <zeitgeist/logserver/logserver.h> #include <zeitgeist/scriptserver/scriptserver.h> #include <kerosin/openglserver/openglwrapper.h> +#ifndef WIN32 #include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif using namespace std; using namespace boost; Modified: trunk/spark/test/fonttest/main.cpp =================================================================== --- trunk/spark/test/fonttest/main.cpp 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/test/fonttest/main.cpp 2009-02-06 02:05:26 UTC (rev 41) @@ -1,6 +1,10 @@ #include <zeitgeist/zeitgeist.h> #include <kerosin/kerosin.h> -#include <SDL.h> +#ifndef WIN32 +#include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif #ifdef _WIN32 #include <windows.h> #endif Modified: trunk/spark/test/inputtest/main.cpp =================================================================== --- trunk/spark/test/inputtest/main.cpp 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/test/inputtest/main.cpp 2009-02-06 02:05:26 UTC (rev 41) @@ -1,6 +1,10 @@ #include <zeitgeist/zeitgeist.h> #include <kerosin/kerosin.h> -#include <SDL.h> +#ifndef WIN32 +#include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif #ifdef _WIN32 #include <windows.h> #endif Modified: trunk/spark/test/scenetest/main.cpp =================================================================== --- trunk/spark/test/scenetest/main.cpp 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/test/scenetest/main.cpp 2009-02-06 02:05:26 UTC (rev 41) @@ -1,7 +1,11 @@ #include <zeitgeist/zeitgeist.h> #include <kerosin/kerosin.h> #include <oxygen/oxygen.h> -#include <SDL.h> +#ifndef WIN32 +#include <SDL/SDL.h> +#else +#include <include/SDL.h> +#endif #include <zeitgeist/fileserver/fileserver.h> using namespace boost; Modified: trunk/spark/windows/sparkconfig.h =================================================================== --- trunk/spark/windows/sparkconfig.h 2009-01-31 19:34:48 UTC (rev 40) +++ trunk/spark/windows/sparkconfig.h 2009-02-06 02:05:26 UTC (rev 41) @@ -8,3 +8,4 @@ #define HAVE_WINSOCK2_H 1 #define HAVE_SOCKET 1 #define HAVE_SOCKETTYPE 1 +#define HAVE_IL_IL_H 1 \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-31 19:35:12
|
Revision: 40 http://simspark.svn.sourceforge.net/simspark/?rev=40&view=rev Author: hedayat Date: 2009-01-31 19:34:48 +0000 (Sat, 31 Jan 2009) Log Message: ----------- Fixed source package ignore list, so that .obj files won't be eliminated!! Modified Paths: -------------- trunk/rcssserver3d/CMakeLists.txt trunk/rsgedit/CMakeLists.txt trunk/simspark-utilities/CMakeLists.txt trunk/spark/CMakeLists.txt Modified: trunk/rcssserver3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/CMakeLists.txt 2009-01-31 14:12:28 UTC (rev 39) +++ trunk/rcssserver3d/CMakeLists.txt 2009-01-31 19:34:48 UTC (rev 40) @@ -76,8 +76,8 @@ ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES - /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE - /rpm.am /msi.am) + /CVS/ /[.]svn/ /.*[.]o$ /.*[.]o/ /autom4te[.]cache/ /[.].* /bootstrap + /RELEASE /rpm.am /msi.am) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) Modified: trunk/rsgedit/CMakeLists.txt =================================================================== --- trunk/rsgedit/CMakeLists.txt 2009-01-31 14:12:28 UTC (rev 39) +++ trunk/rsgedit/CMakeLists.txt 2009-01-31 19:34:48 UTC (rev 40) @@ -68,8 +68,8 @@ ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES - /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE - /rpm.am /msi.am) + /CVS/ /[.]svn/ /.*[.]o$ /.*[.]o/ /autom4te[.]cache/ /[.].* /bootstrap + /RELEASE /rpm.am /msi.am) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) Modified: trunk/simspark-utilities/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/CMakeLists.txt 2009-01-31 14:12:28 UTC (rev 39) +++ trunk/simspark-utilities/CMakeLists.txt 2009-01-31 19:34:48 UTC (rev 40) @@ -51,7 +51,7 @@ ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) -set(CPACK_SOURCE_IGNORE_FILES /CVS/ /[.]svn/ /.*[.]o /[.].*) +set(CPACK_SOURCE_IGNORE_FILES /CVS/ /[.]svn/ /.*[.]o$ /.*[.]o/ /[.].*) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-31 14:12:28 UTC (rev 39) +++ trunk/spark/CMakeLists.txt 2009-01-31 19:34:48 UTC (rev 40) @@ -155,8 +155,8 @@ ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES - /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE - /styles/ /papers/ /rpm.am /msi.am /codingstyle.txt) + /CVS/ /[.]svn/ /.*[.]o$ /.*[.]o/ /autom4te[.]cache/ /[.].* /bootstrap + /RELEASE /styles/ /papers/ /rpm.am /msi.am /codingstyle.txt) set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-31 14:12:52
|
Revision: 39 http://simspark.svn.sourceforge.net/simspark/?rev=39&view=rev Author: hedayat Date: 2009-01-31 14:12:28 +0000 (Sat, 31 Jan 2009) Log Message: ----------- Added some documentation for the first (test) release of these packages. Please improve it! Modified Paths: -------------- trunk/rcssserver3d/CMakeLists.txt trunk/rcssserver3d/NEWS trunk/rcssserver3d/RELEASE trunk/spark/NEWS trunk/spark/RELEASE Modified: trunk/rcssserver3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/CMakeLists.txt 2009-01-29 08:26:31 UTC (rev 38) +++ trunk/rcssserver3d/CMakeLists.txt 2009-01-31 14:12:28 UTC (rev 39) @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) project(rcssserver3d CXX C) -set(PACKAGE_VERSION "0.6") +set(PACKAGE_VERSION "0.6.1") ########## check for headerfiles/libraries ########## include(CheckIncludeFile) Modified: trunk/rcssserver3d/NEWS =================================================================== --- trunk/rcssserver3d/NEWS 2009-01-29 08:26:31 UTC (rev 38) +++ trunk/rcssserver3d/NEWS 2009-01-31 14:12:28 UTC (rev 39) @@ -1,3 +1,23 @@ +[0.6.1] +This is the first release of the simulator after RoboCup 2008 competitions, +and the first release of rcssserver3d package as a separate package which +uses simspark package to implement a hunamoid soccer simulation environment. +In this version of the simulator, restricted vision perceptor is enabled again, +and is going to be used in 2009 competitions. You can read more about this +perceptor in 0.5.9 NEWS section. +Finally, we do not use autotools for our build system anymore. You should use +CMake (version 2.6) to build the package. See INSTALL for further installation +instructions. + +* Restricted Vision: + - restricted vision perceptor is installed on Nao. + +* New requirements for building the pacakge: + - You'll need CMake 2.6 to configure and build the package + - this package depends on simspark package, so you should install it first + +* Some small enhancements and bug fixes + [0.6] This release is the final version for RoboCup 2008 in Suzhou China. It is little different from version 0.5.9 in simulation, excepting some Modified: trunk/rcssserver3d/RELEASE =================================================================== --- trunk/rcssserver3d/RELEASE 2009-01-29 08:26:31 UTC (rev 38) +++ trunk/rcssserver3d/RELEASE 2009-01-31 14:12:28 UTC (rev 39) @@ -1,37 +1,27 @@ -RELEASE News of rcssserver3d-0.6 +RELEASE News of rcssserver3d-0.6.1 -This release is the final version for RoboCup 2008 in Suzhou China. It -is little different from version 0.5.9 in simulation, excepting some -changes for the rule of RoboCup 2008, including the vision perceptor. -And also, the eye-catching sky and goal are added. The monitor -protocol is improved due to the team requirement. +This is the first release of the simulator after RoboCup 2008 competitions, +and the first release of rcssserver3d package as a separate package which +uses simspark package to implement a hunamoid soccer simulation environment. +In this version of the simulator, restricted vision perceptor is enabled again, +and is going to be used in 2009 competitions. You can read more about this +perceptor in 0.5.9 NEWS section. +Finally, we do not use autotools for our build system anymore. You should use +CMake (version 2.6) to build the package. See INSTALL for further installation +instructions. -* Physics: - - set ball angluar drag to 0.00005 +* Restricted Vision: + - restricted vision perceptor is installed on Nao. -* Vision perceptor: - The old vision perceptor (just the same as last year) is used for - both Nao and soccerbot058. +* New requirements for building the pacakge: + - You'll need CMake 2.6 to configure and build the package + - this package depends on simspark package, so you should install it first -* Eye-Catcher: - - the sky box is added - - the goal with net is added +* Some small enhancements and bug fixes -* Monitor Protocol ( Thanks Carlos from Borregos3D): - - Add 'move' command for setting the agent's position and rotation. - The whole command may like this: - (agent (team $teamname)(unum $id)(move $x $y $z $dir)) - where, ($x, $y, $z) is the desired position, and $dir is the - desired face direction of the robot. - - Fix bug in set ball command. +For details have a look into the ChangeLog coming with the package. (But some +changes are not documented in the new ChangeLog file, you can investigate the +old ChangeLog file in sserver CVS repository for more information). -* Rule bug fix: - - fix bug of the goal kick position - - fix bug of the size of penalty - -For details have a look into the ChangeLog coming with the package. - -You can get the package on the Soccer Simulator page on SourceForge -at http://sourceforge.net/projects/sserver/ - - +You can get the package on the Simspark page on SourceForge +at http://sourceforge.net/projects/simspark/ Modified: trunk/spark/NEWS =================================================================== --- trunk/spark/NEWS 2009-01-29 08:26:31 UTC (rev 38) +++ trunk/spark/NEWS 2009-01-31 14:12:28 UTC (rev 39) @@ -0,0 +1,14 @@ +[0.1] +This is the first release of the simulator after RoboCup 2008 competitions, +and the first release of simspark core simulation package as a separate +package. +In this release, MaxStepsPerCycle have been reduced to 1, so the simulation +time spent in each cycle is fixed. As a result, the performance of the agents +should not depend on the simulator speed, and they should be able to sense/act +in fixed simulation time steps. +This package provides a generic simulation framework and does not contain any +soccer features. To use the soccer simulator, you should install rcssserver3d +package which depends on this package. +Also, we do not use autotools for our build system anymore. You should use +CMake (version 2.6) to build the package. See INSTALL for further installation +instructions. Modified: trunk/spark/RELEASE =================================================================== --- trunk/spark/RELEASE 2009-01-29 08:26:31 UTC (rev 38) +++ trunk/spark/RELEASE 2009-01-31 14:12:28 UTC (rev 39) @@ -0,0 +1,18 @@ +RELEASE News of simspark-0.1 + +This is the first release of the simulator after RoboCup 2008 competitions, +and the first release of simspark core simulation package as a separate +package. +In this release, MaxStepsPerCycle have been reduced to 1, so the simulation +time spent in each cycle is fixed. As a result, the performance of the agents +should not depend on the simulator speed, and they should be able to sense/act +in fixed simulation time steps. +This package provides a generic simulation framework and does not contain any +soccer features. To use the soccer simulator, you should install rcssserver3d +package which depends on this package. +Also, we do not use autotools for our build system anymore. You should use +CMake (version 2.6) to build the package. See INSTALL for further installation +instructions. + +You can get the package on the Simspark page on SourceForge +at http://sourceforge.net/projects/simspark/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-29 08:26:38
|
Revision: 38 http://simspark.svn.sourceforge.net/simspark/?rev=38&view=rev Author: hedayat Date: 2009-01-29 08:26:31 +0000 (Thu, 29 Jan 2009) Log Message: ----------- Some whitespace changes README updates Added installation requirements to INSTALL Fixed CMake files to use our compiler flags! Modified Paths: -------------- trunk/rcssserver3d/CMakeLists.txt trunk/rcssserver3d/ChangeLog trunk/rcssserver3d/INSTALL trunk/rcssserver3d/README trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg trunk/rsgedit/CMakeLists.txt trunk/simspark-utilities/CMakeLists.txt trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/INSTALL trunk/spark/README Modified: trunk/rcssserver3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/CMakeLists.txt 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rcssserver3d/CMakeLists.txt 2009-01-29 08:26:31 UTC (rev 38) @@ -14,13 +14,15 @@ find_package(Freetype REQUIRED) ########## add extra flags ########## -set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") add_definitions(-DHAVE_CONFIG_H) include_directories(${CMAKE_BINARY_DIR}) if (UNIX) - set(CMAKE_CXX_FLAGS "-Wno-deprecated") - set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") + set(CMAKE_CXX_FLAGS "-Wno-deprecated" CACHE + STRING "Common C++ compiler flags" FORCE) + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual" CACHE + STRING "C++ compiler flags for Debug builds" FORCE) + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE + STRING "C++ compiler flags for Release builds" FORCE) endif (UNIX) set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") Modified: trunk/rcssserver3d/ChangeLog =================================================================== --- trunk/rcssserver3d/ChangeLog 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rcssserver3d/ChangeLog 2009-01-29 08:26:31 UTC (rev 38) @@ -1,3 +1,11 @@ +2009-01-29 Hedayat Vatankhah <he...@gr...> + + * INSTALL: + - added requirements + + * README: + - updated with the recent changes + 2009-01-28 Hedayat Vatankhah <he...@gr...> * INSTALL: @@ -9,7 +17,8 @@ * data/rsg/agent/nao/naoneckhead.rsg: * data/rsg/agent/nao/naoleg.rsg: * data/rsg/agent/nao/naoarm.rsg: - - enabled RestrictedVisionPerceptor and ObjectState nodes + - enabled RestrictedVisionPerceptor and ObjectState nodes + - some whitespace fix 2009-01-24 Hedayat Vatankhah <he...@gr...> Modified: trunk/rcssserver3d/INSTALL =================================================================== --- trunk/rcssserver3d/INSTALL 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rcssserver3d/INSTALL 2009-01-29 08:26:31 UTC (rev 38) @@ -6,6 +6,17 @@ files, Visual Studio project files). You can generate build files using CMake command-line or GUI interfaces. +Requirements +============ +CMake version 2.6 or higher +Simspark Library +Boost C++ Libraries +FreeType + +The following packages are optional: +Latex (pdflatex): to generate developers manual +Doxygen: to generate API documentation + Basic Installation Using CMake Command-line Interface ===================================================== 1. Unpack the distribution and change directory to the top level source tree. Modified: trunk/rcssserver3d/README =================================================================== --- trunk/rcssserver3d/README 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rcssserver3d/README 2009-01-29 08:26:31 UTC (rev 38) @@ -2,45 +2,18 @@ Please see doc/users/user-manual.pdf and NEWS. -*Note* The README is somewhat outdated and should be fixed after the - competition in Atlanta. The main difference is that the SimSpark - (app/simspark) simulator is now used for the official competitions. Also, - SPADES is currently not used anymore. The general directory structure and - concepts are still applicable though. - General Information -rcssserver3D is a physical simulation system. The primary purpose of -this system is to provide a *generic* simulator for different kinds -of simulations. In these simulations, agents can participate as -external processes. To create specific simulations, important parts -of the simulator are build as plugins that can be replaced for -different simulations. The plugins can be exchanged at runtime. -Things designed as plugins are for example parts of agents: agents -can be using different actuators or perceptors. Other plugins are -responsible for the simulator protocol or also for the rules of -specific simulations. -Simulations for this simulator can be constructed to a great part by -changing text files with no further recompilation. The soccer -simulation makes not yet use of this feature, but changes towards -this are already planned. - -The simulation system was created with a specific simulation in mind, +rcssserver3d is a 3D soccer simulation server running on top of simspark +simulation system. +The simspark simulation system was created with a specific simulation in mind, that is a 3D physical soccer simulation for RoboCup Simulation league. To this end, this distribution contains a set of plugins for RoboCup Soccer Simulation League. The soccer simulator can be found -in the ./app/simulator/ subdirectory. The basic simulator concept was -presented on the 2003 RoboCup Symposium in Padova [1]. +in the ./simspark subdirectory. -For scientific simulations, it is useful to be able to keep track of -the time used by different agents for thinking. A special plugin -makes it possible to use the simulator together with SPADES, a -middleware system for agent based simulations. SPADES was presented -on the 2002 RoboCup Symposium in Fukuoka [2] (SPADES itself is not -part of this package). - If you installed rcssserver3D-0.x before, make sure to clean -the ~/.rcssserver3D/ directory prior to using the new version. Also +the ~/.rcssserver3d/ directory prior to using the new version. Also better remove the old installed libraries in /usr/local/lib/ rcssserver3D manually. Sorry for this inconvenience. @@ -49,82 +22,17 @@ The different parts of this package are organized in different directories as follows: -./app/ Different applications. These applications are - mostly tests of different subsystems of the - simulator. Additionaly, there is -./app/simulator/ The soccer simulator. -./app/ A simple monitor that displays agents connected to -rcssmonitor3d/ the simulator. -./app/agenttest/ A 'hello world' agent (does nothing very useful, - kick and run soccer). -./lib/ The main simulator parts as libraries. The - simulator consists of these parts: -./lib/salt/ This library provides a collection of useful - general purpose classes. It contains mostly - math-and system-related functionality, such as a 3D - Vector class, a Matrix class, a file I/O wrapper - and an abstraction for loading/accessing shared - libraries. -./lib/zeitgeist/ The Zeitgeist library provides two major features. - It implements a mechanism to work with class - objects in C++. A class object is just a factory of - class instances. In addition to this mechanism, it - also implements an object hierarchy. This hierarchy - is essentially a virtual file system, where the - 'directories' and 'files' are instances of C++ - classes. These two concepts are quite intertwined - with each other, as class objects can also live - inside the object hierarchy. Objects within the - hierarchy are identified with a unique name. On top - of these two features, the Zeitgeist library also - provides three very important 'built-in' services. - Each basic service is usually represented by a - 'server' class in our terminology. An instance of - such a class provides the service to other parts of - the system. The three services built into the - Zeitgeist library are the LogServer, the - FileServer, and the ScriptServer. -./lib/oxygen/ Oxygen is the actual engine which is used for the - simulation. It is implemented on top of the - Zeitgeist framework and provides a multitude of - different services to a client application. It - handles the physics aspect (PhysicsServer), the - geometry aspect (PhysicsServer) and the agent - aspect (AgentAspect, ControlAspect). Another - important part of this library is performing the - world simulation (SceneServer). -./lib/kerosin/ Kerosin handles the visualization aspect - (ImageServer, FontServer, OpenGLServer, - TextureServer, MaterialServer). The classes in the - library also provide basic interfaces for receiving - input in interactive simulations (InputServer) and - for playing sounds (SoundServer). Currently, it is - not used for the simulator. -./plugins/ directory containing plugins to extend the - simulator +./simspark The soccer simulator. +./rcssmonitor3d A simple monitor that displays agents connected to + the simulator. +./rcssagent3d A 'hello world' agent (does nothing very useful, + moves some parts of its body). +./plugin directory containing plugins to extend the + simulator with soccer related features +./data contains data files needed by the above applications -Known Problems: - - * if during linking the compiler complains that it cannot find - -lslang, set a symbolic link /usr/lib/libslang.so linking to /usr - /lib/libslang.so.1 - -Literature: - -[1] Marco Kögler and Oliver Obst. Simulation League: The Next Generation. - In Daniel Polani, Andrea Bonarini, Brett Browning, and Kazuo - Yoshida, editors, RoboCup 2003: Robot Soccer World Cup VII, - Lecture Notes in Artificial Intelligence, Springer, Berlin, - Heidelberg, New York, 2004. - -[2] Patrick Riley. MPADES: Middleware for Parallel Agent Discrete - Event Simulation. In Gal A. Kaminka, Pedro U. Lima, and Raul - Rojas, editors, RoboCup-2002: Robot Soccer World Cup VI, Lecture - Notes in Artificial Intelligence, pp. 162-178, Springer Verlag, - Berlin, 2003. - --------------------------------------------------------------------- Oliver Obst -Last modified: Mo Feb 12 16:27:09 CEST 2007 +Last modified: Thu Jan 29 00:51 IRDT 2009 (By Hedayat Vatankhah) Modified: trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg =================================================================== --- trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg 2009-01-29 08:26:31 UTC (rev 38) @@ -91,9 +91,9 @@ (nd RestrictedVisionPerceptor (setViewCones 120 120) (setSenseMyPos false) - (setStaticSenseAxis false) + (setStaticSenseAxis false) (addNoise true) - (setInterval 3) + (setInterval 3) ) (nd ObjectState Modified: trunk/rsgedit/CMakeLists.txt =================================================================== --- trunk/rsgedit/CMakeLists.txt 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/rsgedit/CMakeLists.txt 2009-01-29 08:26:31 UTC (rev 38) @@ -9,13 +9,15 @@ find_package(wxWidgets REQUIRED gl base core adv) ########## add extra flags ########## -set(CMAKE_BUILD_TYPE Release CACHE STRING "Release or Debug build type") add_definitions(-DHAVE_CONFIG_H) include_directories(${CMAKE_BINARY_DIR}) if (UNIX) - set(CMAKE_CXX_FLAGS "-Wno-deprecated") - set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") + set(CMAKE_CXX_FLAGS "-Wno-deprecated" CACHE + STRING "Common C++ compiler flags" FORCE) + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual" CACHE + STRING "C++ compiler flags for Debug builds" FORCE) + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE + STRING "C++ compiler flags for Release builds" FORCE) endif (UNIX) set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") Modified: trunk/simspark-utilities/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/CMakeLists.txt 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/simspark-utilities/CMakeLists.txt 2009-01-29 08:26:31 UTC (rev 38) @@ -9,12 +9,14 @@ find_package(Boost REQUIRED) ########## add extra flags ########## -set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") add_definitions(-DHAVE_CONFIG_H) if (UNIX) - set(CMAKE_CXX_FLAGS "-Wno-deprecated") - set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") + set(CMAKE_CXX_FLAGS "-Wno-deprecated" CACHE + STRING "Common C++ compiler flags" FORCE) + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual" CACHE + STRING "C++ compiler flags for Debug builds" FORCE) + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE + STRING "C++ compiler flags for Release builds" FORCE) endif (UNIX) set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/spark/CMakeLists.txt 2009-01-29 08:26:31 UTC (rev 38) @@ -73,13 +73,15 @@ ########## add extra flags ########## -set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") add_definitions(-DHAVE_CONFIG_H) include_directories(${CMAKE_BINARY_DIR}) if (UNIX) - set(CMAKE_CXX_FLAGS "-Wno-deprecated") - set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") + set(CMAKE_CXX_FLAGS "-Wno-deprecated" CACHE + STRING "Common C++ compiler flags" FORCE) + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual" CACHE + STRING "C++ compiler flags for Debug builds" FORCE) + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE + STRING "C++ compiler flags for Release builds" FORCE) endif (UNIX) set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/spark/ChangeLog 2009-01-29 08:26:31 UTC (rev 38) @@ -1,3 +1,11 @@ +2009-01-29 Hedayat Vatankhah <he...@gr...> + + * README: + - updated README file + + * INSTALL: + - added requirements + 2009-01-28 Hedayat Vatankhah <he...@gr...> * INSTALL: Modified: trunk/spark/INSTALL =================================================================== --- trunk/spark/INSTALL 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/spark/INSTALL 2009-01-29 08:26:31 UTC (rev 38) @@ -6,6 +6,24 @@ files, Visual Studio project files). You can generate build files using CMake command-line or GUI interfaces. +Requirements +============ +CMake version 2.6 or higher +Ruby 1.8 +Boost C++ Libraries +Open Dynamics Engine (ODE) +FreeType +Developer Image Library (DevIL) +OpenGL +SDL + +The following packages are optional: +wxWidgets: for inputwx plugin (e.g. required if you want to build rsgedit) +FMOD: to buid fmod sound system plugin +Latex (pdflatex): to generate developers manual +Doxygen: to generate API documentation + + Basic Installation Using CMake Command-line Interface ===================================================== 1. Unpack the distribution and change directory to the top level source tree. Modified: trunk/spark/README =================================================================== --- trunk/spark/README 2009-01-28 17:24:13 UTC (rev 37) +++ trunk/spark/README 2009-01-29 08:26:31 UTC (rev 38) @@ -0,0 +1,104 @@ +simspark library README + +Please see NEWS. + +General Information + +simspark is a physical simulation system. The primary purpose of +this system is to provide a *generic* simulator for different kinds +of simulations. In these simulations, agents can participate as +external processes. To create specific simulations, important parts +of the simulator are build as plugins that can be replaced for +different simulations. The plugins can be exchanged at runtime. +Things designed as plugins are for example parts of agents: agents +can be using different actuators or perceptors. Other plugins are +responsible for the simulator protocol or also for the rules of +specific simulations. +Simulations for this simulator can be constructed to a great part by +changing text files with no further recompilation. The basic simulator +concept was presented on the 2003 RoboCup Symposium in Padova [1]. + +If you installed simspark-0.x before, make sure to clean +the ~/.simspark/ directory prior to using the new version. Also +better remove the old installed libraries in /usr/local/lib/ +simspark manually. Sorry for this inconvenience. + +For scientific simulations, it is useful to be able to keep track of +the time used by different agents for thinking. A special plugin +makes it possible to use the simulator together with SPADES, a +middleware system for agent based simulations. SPADES was presented +on the 2002 RoboCup Symposium in Fukuoka [2] (SPADES itself is not +part of this package). + +Package Overview + +The different parts of this package are organized in different +directories as follows: + +./lib The main simulator parts as libraries. The + simulator consists of these parts: +./lib/salt This library provides a collection of useful + general purpose classes. It contains mostly + math-and system-related functionality, such as a 3D + Vector class, a Matrix class, a file I/O wrapper + and an abstraction for loading/accessing shared + libraries. +./lib/zeitgeist The Zeitgeist library provides two major features. + It implements a mechanism to work with class + objects in C++. A class object is just a factory of + class instances. In addition to this mechanism, it + also implements an object hierarchy. This hierarchy + is essentially a virtual file system, where the + 'directories' and 'files' are instances of C++ + classes. These two concepts are quite intertwined + with each other, as class objects can also live + inside the object hierarchy. Objects within the + hierarchy are identified with a unique name. On top + of these two features, the Zeitgeist library also + provides three very important 'built-in' services. + Each basic service is usually represented by a + 'server' class in our terminology. An instance of + such a class provides the service to other parts of + the system. The three services built into the + Zeitgeist library are the LogServer, the + FileServer, and the ScriptServer. +./lib/oxygen Oxygen is the actual engine which is used for the + simulation. It is implemented on top of the + Zeitgeist framework and provides a multitude of + different services to a client application. It + handles the physics aspect (PhysicsServer), the + geometry aspect (PhysicsServer) and the agent + aspect (AgentAspect, ControlAspect). Another + important part of this library is performing the + world simulation (SceneServer). +./lib/kerosin Kerosin handles the visualization aspect + (ImageServer, FontServer, OpenGLServer, + TextureServer, MaterialServer). The classes in the + library also provide basic interfaces for receiving + input in interactive simulations (InputServer) and + for playing sounds (SoundServer). Currently, it is + not used for the simulator. +./plugin directory containing plugins to extend the simulator +./data contains some common data files which can be used + for creating simulations using simspark +./test applications for testing different subsystems of the + simulator. + +Literature: + +[1] Marco Kögler and Oliver Obst. Simulation League: The Next Generation. + In Daniel Polani, Andrea Bonarini, Brett Browning, and Kazuo + Yoshida, editors, RoboCup 2003: Robot Soccer World Cup VII, + Lecture Notes in Artificial Intelligence, Springer, Berlin, + Heidelberg, New York, 2004. + +[2] Patrick Riley. MPADES: Middleware for Parallel Agent Discrete + Event Simulation. In Gal A. Kaminka, Pedro U. Lima, and Raul + Rojas, editors, RoboCup-2002: Robot Soccer World Cup VI, Lecture + Notes in Artificial Intelligence, pp. 162-178, Springer Verlag, + Berlin, 2003. + +--------------------------------------------------------------------- + +Oliver Obst +Last modified: Thu Jan 29 10:57 IRDT 2009 (By Hedayat Vatankhah) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-28 17:24:42
|
Revision: 37 http://simspark.svn.sourceforge.net/simspark/?rev=37&view=rev Author: hedayat Date: 2009-01-28 17:24:13 +0000 (Wed, 28 Jan 2009) Log Message: ----------- Removed autotools support in spark: changed MaxStepsPerCycle from 3 to 1 (TC decision) in rcssserver3d: enabled RestrictedVisionPerceptor (TC decision) and ObjectStates (Is it OK?!) Modified Paths: -------------- trunk/rcssserver3d/ChangeLog trunk/rcssserver3d/data/rsg/agent/nao/nao.rsg trunk/rcssserver3d/data/rsg/agent/nao/naoarm.rsg trunk/rcssserver3d/data/rsg/agent/nao/naoleg.rsg trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg trunk/spark/ChangeLog trunk/spark/spark/spark.rb Added Paths: ----------- trunk/rcssserver3d/INSTALL trunk/rsgedit/INSTALL trunk/simspark-utilities/INSTALL trunk/spark/INSTALL Removed Paths: ------------- trunk/rcssserver3d/INSTALL trunk/rcssserver3d/Makefile.am trunk/rcssserver3d/acinclude.m4 trunk/rcssserver3d/bootstrap trunk/rcssserver3d/config.aux/ trunk/rcssserver3d/configure.ac trunk/rcssserver3d/data/Makefile.am trunk/rcssserver3d/doc/Makefile.am trunk/rcssserver3d/doc/users/Makefile.am trunk/rcssserver3d/plugin/Makefile.am trunk/rcssserver3d/plugin/soccer/Makefile.am trunk/rcssserver3d/plugin/soccermonitor/Makefile.am trunk/rcssserver3d/rcssagent3d/Makefile.am trunk/rcssserver3d/rcssmonitor3d/Makefile.am trunk/rcssserver3d/simspark/Makefile.am trunk/rsgedit/INSTALL trunk/rsgedit/Makefile.am trunk/rsgedit/acinclude.m4 trunk/rsgedit/bootstrap trunk/rsgedit/config.aux/ trunk/rsgedit/configure.ac trunk/rsgedit/res/Makefile.am trunk/rsgedit/src/Makefile.am trunk/rsgedit/wxutil/Makefile.am trunk/spark/INSTALL trunk/spark/Makefile.am trunk/spark/acinclude.m4 trunk/spark/bootstrap trunk/spark/config.aux/ trunk/spark/configure.ac trunk/spark/data/Makefile.am trunk/spark/doc/Makefile.am trunk/spark/doc/devel/Makefile.am trunk/spark/doc/devel/howtos/Makefile.am trunk/spark/doc/papers/proposal/Makefile.am trunk/spark/lib/Makefile.am trunk/spark/lib/kerosin/Makefile.am trunk/spark/lib/oxygen/Makefile.am trunk/spark/lib/salt/Makefile.am trunk/spark/lib/zeitgeist/Makefile.am trunk/spark/plugin/Makefile.am trunk/spark/plugin/collisionperceptor/Makefile.am trunk/spark/plugin/filesystemrar/Makefile.am trunk/spark/plugin/filesystemstd/Makefile.am trunk/spark/plugin/filesystemzip/Makefile.am trunk/spark/plugin/forceeffector/Makefile.am trunk/spark/plugin/gyrorateperceptor/Makefile.am trunk/spark/plugin/imageperceptor/Makefile.am trunk/spark/plugin/inputsdl/Makefile.am trunk/spark/plugin/inputwx/Makefile.am trunk/spark/plugin/objimporter/Makefile.am trunk/spark/plugin/openglsyssdl/Makefile.am trunk/spark/plugin/openglsyswx/Makefile.am trunk/spark/plugin/perfectvisionperceptor/Makefile.am trunk/spark/plugin/rosimporter/Makefile.am trunk/spark/plugin/rubysceneimporter/Makefile.am trunk/spark/plugin/sceneeffector/Makefile.am trunk/spark/plugin/sexpparser/Makefile.am trunk/spark/plugin/soundsystembass/Makefile.am trunk/spark/plugin/soundsystemfmod/Makefile.am trunk/spark/plugin/sparkagent/Makefile.am trunk/spark/plugin/sparkmonitor/Makefile.am trunk/spark/spark/Makefile.am trunk/spark/test/Makefile.am trunk/spark/test/coretest/Makefile.am trunk/spark/test/fonttest/Makefile.am trunk/spark/test/inputtest/Makefile.am trunk/spark/test/scenetest/Makefile.am trunk/spark/test/zeitgeisttest/Makefile.am trunk/spark/utility/Makefile.am trunk/spark/utility/libobj/Makefile.am trunk/spark/utility/rcssnet/Makefile.am trunk/spark/utility/sfsexp/Makefile.am trunk/spark/utility/tinyxml/Makefile.am Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Added: svn:ignore + .project Modified: trunk/rcssserver3d/ChangeLog =================================================================== --- trunk/rcssserver3d/ChangeLog 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/ChangeLog 2009-01-28 17:24:13 UTC (rev 37) @@ -1,3 +1,16 @@ +2009-01-28 Hedayat Vatankhah <he...@gr...> + + * INSTALL: + - added new installation instructions (cmake oriented) + + * data/rsg/agent/nao/nao.rsg: + - disable VisionPerceptor + + * data/rsg/agent/nao/naoneckhead.rsg: + * data/rsg/agent/nao/naoleg.rsg: + * data/rsg/agent/nao/naoarm.rsg: + - enabled RestrictedVisionPerceptor and ObjectState nodes + 2009-01-24 Hedayat Vatankhah <he...@gr...> * CMakeLists.txt: Deleted: trunk/rcssserver3d/INSTALL =================================================================== --- trunk/rcssserver3d/INSTALL 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/INSTALL 2009-01-28 17:24:13 UTC (rev 37) @@ -1,236 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses -PREFIX as the prefix for installing programs and libraries. -Documentation and other data files still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - Added: trunk/rcssserver3d/INSTALL =================================================================== --- trunk/rcssserver3d/INSTALL (rev 0) +++ trunk/rcssserver3d/INSTALL 2009-01-28 17:24:13 UTC (rev 37) @@ -0,0 +1,29 @@ +Installation Instructions +========================== +You can build this package using CMake build system (version 2.6 or higher +should be installed on your system). CMake can generate different kinds of +native build files for your system (e.g. Unix Makefiles, Eclipse CDT 4.0 project +files, Visual Studio project files). You can generate build files using CMake +command-line or GUI interfaces. + +Basic Installation Using CMake Command-line Interface +===================================================== +1. Unpack the distribution and change directory to the top level source tree. +2. (Recommended) Create a directory to hold your build files (e.g. 'mkdir build') +3. Change directory to the directory you created in the previous step (for the +above example, you can use 'cd build') +4. Run 'cmake ..' to configure the package and generate build files. On Linux, +it'll generate Makefiles for the package +5. Optionally, you can run 'ccmake .' to edit the build settings (for example +the installation directory). +6. Considering that you've generated Makefiles using cmake, you can run 'make' +to build the package. +7. Run 'make install' to install the package. + +Also, you can run 'make uninstall' to uninstall the package. + +Documentation +============= +After creating build files, there will be two extra targets (if you have their +requirements): doc and pdf. If you want to create API documentation (using +doxygen) you can run 'make doc'. To create PDF documentation, run 'make pdf'. \ No newline at end of file Deleted: trunk/rcssserver3d/Makefile.am =================================================================== --- trunk/rcssserver3d/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,38 +0,0 @@ -### utility subdir has to be made first -SUBDIRS = data doc plugin rcssagent3d rcssmonitor3d simspark - -pkginclude_HEADERS = \ -rcssserver3d_config.h - -doc: doc-recursive -doc-recursive: - cd doc && $(MAKE) $(AM_MAKEFLAGS) doc - -CLEANFILES = - -DISTCLEANFILES = $(top_builddir)/macosX/SDLMain.o $(top_builddir)/macosX/libSDLmain.a -EXTRA_DIST = macosX/fwcopy macosX/mkapp macosX/plugincopy \ - macosX/SDLMain.h macosX/SDLMain.m \ - windows/rcssserver3d_config.h windows/simspark.iss windows/spark.ico -dist_doc_DATA = AUTHORS ChangeLog COPYING NEWS README THANKS TODO - -EXTRA_SRC_DISTS = -EXTRA_BIN_DISTS = -include $(top_srcdir)/config.aux/dist.am - -UPLOAD_BIN = -UPLOAD_SRC = upload-gzip upload-bzip2 upload-zip -UPLOAD_TARGETS = \ -{gzip=>@PACKAGE@-@VERSION@.tar.gz} \ -{bzip2=>@PACKAGE@-@VERSION@.tar.bz2} \ -{zip=>@PACKAGE@-@VERSION@.zip} -include $(top_srcdir)/config.aux/sf.am - - -include $(top_srcdir)/config.aux/cvs.am - -#MSI_SETUP_FILE=Setup/Release/@PAC...@Se...i -#include $(top_srcdir)/config.aux/msi.am - -#include $(top_srcdir)/config.aux/rpm.am - Deleted: trunk/rcssserver3d/acinclude.m4 =================================================================== --- trunk/rcssserver3d/acinclude.m4 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/acinclude.m4 2009-01-28 17:24:13 UTC (rev 37) @@ -1,140 +0,0 @@ -# SPARK_LIB_SALT -# Substitutes: @SALT_LDFLAGS@ -# @SALT_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_SALT], [ - # check for the salt-config script - AC_PATH_PROG(SALT,[salt-config],[no]) - if test $SALT = "no"; then - AC_MSG_ERROR([salt-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libsalt libs file]) - - spark_salt_libflags=`$SALT --libs` - AC_MSG_RESULT([$spark_salt_libflags]) - AC_SUBST(SALT_LDFLAGS, [$spark_salt_libflags]) - - spark_salt_cppflags=`$SALT --cflags` - AC_MSG_RESULT([$spark_salt_cppflags]) - AC_SUBST(SALT_CPPFLAGS, [$spark_salt_cppflags]) -]) # SPARK_LIB_SALT - -# SPARK_LIB_ZEITGEIST -# Substitutes: @ZEITGEIST_LDFLAGS@ -# @ZEITGEIST_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_ZEITGEIST], [ - # check for the zeitgeist-config script - AC_PATH_PROG(ZEITGEIST,[zeitgeist-config],[no]) - if test $ZEITGEIST = "no"; then - AC_MSG_ERROR([zeitgeist-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libzeitgeist libs file]) - - spark_zeitgeist_libflags=`$ZEITGEIST --libs` - AC_MSG_RESULT([$spark_zeitgeist_libflags]) - AC_SUBST(ZEITGEIST_LDFLAGS, [$spark_zeitgeist_libflags]) - - spark_zeitgeist_cppflags=`$ZEITGEIST --cflags` - AC_MSG_RESULT([$spark_zeitgeist_cppflags]) - AC_SUBST(ZEITGEIST_CPPFLAGS, [$spark_zeitgeist_cppflags]) -]) # SPARK_LIB_ZEITGEIST - -# SPARK_LIB_OXYGEN -# Substitutes: @OXYGEN_LDFLAGS@ -# @OXYGEN_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_OXYGEN], [ - # check for the oxygen-config script - AC_PATH_PROG(OXYGEN,[oxygen-config],[no]) - if test $OXYGEN = "no"; then - AC_MSG_ERROR([oxygen-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([liboxygen libs file]) - - spark_oxygen_libflags=`$OXYGEN --libs` - AC_MSG_RESULT([$spark_oxygen_libflags]) - AC_SUBST(OXYGEN_LDFLAGS, [$spark_oxygen_libflags]) - - spark_oxygen_cppflags=`$OXYGEN --cflags` - AC_MSG_RESULT([$spark_oxygen_cppflags]) - AC_SUBST(OXYGEN_CPPFLAGS, [$spark_oxygen_cppflags]) -]) # SPARK_LIB_OXYGEN - -# SPARK_LIB_KEROSIN -# Substitutes: @KEROSIN_LDFLAGS@ -# @KEROSIN_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_KEROSIN], [ - # check for the kerosin-config script - AC_PATH_PROG(KEROSIN,[kerosin-config],[no]) - if test $KEROSIN = "no"; then - AC_MSG_ERROR([kerosin-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libkerosin libs file]) - - spark_kerosin_libflags=`$KEROSIN --libs` - AC_MSG_RESULT([$spark_kerosin_libflags]) - AC_SUBST(KEROSIN_LDFLAGS, [$spark_kerosin_libflags]) - - spark_kerosin_cppflags=`$KEROSIN --cflags` - AC_MSG_RESULT([$spark_kerosin_cppflags]) - AC_SUBST(KEROSIN_CPPFLAGS, [$spark_kerosin_cppflags]) - - AC_DEFINE(HAVE_KEROSIN_KEROSIN_H, 1, [Define to 1 if using the kerosin header]) -]) # SPARK_LIB_KEROSIN - -# SPARK_LIB_SPARK -# Substitutes: @SPARK_LDFLAGS@ -# @SPARK_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_SPARK], [ - # check for the spark-config script - AC_PATH_PROG(SPARK,[spark-config],[no]) - if test $SPARK = "no"; then - AC_MSG_ERROR([spark-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libspark libs file]) - - spark_libflags=`$SPARK --libs` - AC_MSG_RESULT([$spark_libflags]) - AC_SUBST(SPARK_LDFLAGS, [$spark_libflags]) - - spark_cppflags=`$SPARK --cflags` - AC_MSG_RESULT([$spark_cppflags]) - AC_SUBST(SPARK_CPPFLAGS, [$spark_cppflags]) -]) # SPARK_LIB_SPARK - -# RCSS_PATH_FREETYPE -# Substitutes: @FREETYPE_CPPFLAGS@ -# @FREETYPE_LDFLAGS@ -# -#----------------------------------------------------------------------------- -AC_DEFUN([RCSS_PATH_FREETYPE], [ - # --with-freetype=PATH - AC_ARG_WITH(freetype, - AC_HELP_STRING([--with-freetype=PATH], - [path to freetype-config (default is freetype-config)]), - [freetype="$withval"], - [freetype="freetype-config"] - ) - AC_PATH_PROGS(FREETYPE,[$freetype freetype-config],no) - if test $FREETYPE = "no"; then - AC_MSG_ERROR([need freetype2 devel library to compile libkerosin]) - else - rcss_freetype_cppflags=`$FREETYPE --cflags` - rcss_freetype_libadd=`$FREETYPE --libs` - AC_MSG_CHECKING([freetype include flags]) - AC_MSG_RESULT([$rcss_freetype_cppflags]) - AC_SUBST(FREETYPE_CPPFLAGS, [$rcss_freetype_cppflags]) - AC_MSG_CHECKING([freetype libs file]) - AC_MSG_RESULT([$rcss_freetype_libadd]) - AC_SUBST(FREETYPE_LDFLAGS, [$rcss_freetype_libadd]) - fi -]) # RCSS_PATH_FREETYPE - Deleted: trunk/rcssserver3d/bootstrap =================================================================== --- trunk/rcssserver3d/bootstrap 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/bootstrap 2009-01-28 17:24:13 UTC (rev 37) @@ -1,11 +0,0 @@ -#! /bin/sh - -force="" -if test "$1" = "--force"; then force="$1"; fi - -aclocal -libtoolize --copy $force -aclocal -autoheader $force -autoconf $force -automake --add-missing --copy $force Deleted: trunk/rcssserver3d/configure.ac =================================================================== --- trunk/rcssserver3d/configure.ac 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/configure.ac 2009-01-28 17:24:13 UTC (rev 37) @@ -1,85 +0,0 @@ -# Process this file with autoconf to produce a configure script. -AC_INIT([rcssserver3d], 0.6, [sim...@li...]) -AC_CONFIG_SRCDIR([simspark/main.cpp]) -AC_CONFIG_HEADER([rcssserver3d_config.h]) -AC_CONFIG_AUX_DIR([config.aux]) - -AM_INIT_AUTOMAKE([gnu subdir-objects 1.7]) -AC_LANG([C++]) -AM_ENABLE_SHARED(yes) -AM_ENABLE_STATIC(no) - -# Checks for programs. -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_INSTALL -AC_LIBTOOL_DLOPEN -AC_PROG_LIBTOOL -AC_CHECK_PROG([DOXYGEN], [doxygen], [yes], [no]) -AC_CHECK_PROG([PDFLATEX], [pdflatex], [yes]) -AM_CONDITIONAL(DOXYGEN, test x$DOXYGEN = xyes ) -AM_CONDITIONAL(COND_PDFLATEX, test x$PDFLATEX != x) - -# Checks for simspark libraries. -SPARK_LIB_SALT -SPARK_LIB_ZEITGEIST -SPARK_LIB_OXYGEN -SPARK_LIB_KEROSIN -SPARK_LIB_SPARK - -# Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS([float.h limits.h malloc.h memory.h stdlib.h string.h]) -AC_CHECK_HEADERS([execinfo.h]) -AC_CHECK_HEADERS([CoreFoundation/CoreFoundation.h]) - -AC_CHECK_HEADER([boost/version.hpp],, - AC_MSG_ERROR([boost library not found. Please specify the location -of the boost header directory using the CPPFLAGS environment variable])) -AC_CHECK_HEADERS([backward/hash_map hash_map],break, - AC_MSG_NOTICE(['hash_map' will be substituted by 'map'. If you need hash_map install stlport])) - -AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) - -# Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_C_INLINE -AC_TYPE_SIZE_T - -# Checks for library functions. - -## checks for system services - -# check if we want to build the debug version -AC_ARG_ENABLE([debug], - AS_HELP_STRING([--enable-debug], [Turn on debugging (default is YES)]), - [case "${enableval}" in - yes) debug=true && AC_DEFINE(RCSS_DEBUG, 1, [Define to 1 if we are building a debug version]) ;; - no) debug=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; - esac],[debug=true && AC_DEFINE(RCSS_DEBUG, 1, [Define to 1 if we are building a debug version]) ]) -AC_SUBST(debug, [$debug]) -AM_CONDITIONAL(DEBUG, test x$debug = xtrue) - -# check if we want to build without hardcoding library path using rpath -AC_ARG_ENABLE([rpath], - AS_HELP_STRING([--disable-rpath], [disable using --rpath to hardcode library path in the executables]), - [],[enable_rpath=yes]) -AM_CONDITIONAL(NO_RPATH, test x$enable_rpath = xno) - -RCSS_PATH_FREETYPE - -# create Makefiles and other configuration files -AC_CONFIG_FILES([Makefile \ - rcssagent3d/Makefile \ - rcssmonitor3d/Makefile \ - simspark/Makefile \ - plugin/Makefile \ - plugin/soccer/Makefile \ - plugin/soccermonitor/Makefile \ - data/Makefile \ - doc/Makefile \ - doc/users/Makefile \ - doc/Doxyfile ]) -AC_OUTPUT Deleted: trunk/rcssserver3d/data/Makefile.am =================================================================== --- trunk/rcssserver3d/data/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/data/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,128 +0,0 @@ -nobase_dist_pkgdata_DATA = \ - models/llowerarm.obj \ - models/rfoot.obj \ - models/naohead.obj \ - models/rlowerarm.obj \ - models/leftgoal.obj \ - models/naosoccerfield.obj \ - models/lupperarm.obj \ - models/soccerbottorso.obj \ - models/rshank.obj \ - models/lshank.obj \ - models/lfoot.obj \ - models/soccerball.obj \ - models/lthigh.obj \ - models/rightgoal.obj \ - models/naobody.obj \ - models/rthigh.obj \ - models/skybox.obj \ - models/rupperarm.obj \ - scripts/rcs-materials-textures.rb \ - scripts/rsgedit-materials.rb \ - scripts/bindings.rb \ - scripts/rcs-materials.rb \ - textures/rcs-grass.png \ - textures/rcs-unum02.png \ - textures/naogoalnet.png \ - textures/skyrender0004.jpg \ - textures/rcs-unum10.png \ - textures/skyrender0006.jpg \ - textures/num11.png \ - textures/rcs-naofield.png \ - textures/rcs-unum06.png \ - textures/rcs-torso-11.png \ - textures/rcs-unum04.png \ - textures/rcs-torso-07.png \ - textures/rcs-torso-10.png \ - textures/rcs-grass-w-lines.tga \ - textures/rcs-unum08.png \ - textures/rcs-torso-02.png \ - textures/skyrender0001.jpg \ - textures/num3.png \ - textures/rcs-torso-09.png \ - textures/rcs-torso-01.png \ - textures/rcs-torso-04.png \ - textures/num4.png \ - textures/skyrender0003.jpg \ - textures/rcs-unum01.png \ - textures/rcs-unum05.png \ - textures/skyrender0005.jpg \ - textures/rcs-unum09.png \ - textures/rcs-soccerball.png \ - textures/rcs-soccerball.tga \ - textures/rcs-grass3.png \ - textures/rcs-torso-03.png \ - textures/num10.png \ - textures/rcs-unum03.png \ - textures/num7.png \ - textures/num9.png \ - textures/rcs-torso-06.png \ - textures/rcs-unum07.png \ - textures/num1.png \ - textures/skyrender0002.jpg \ - textures/num8.png \ - textures/num2.png \ - textures/num5.png \ - textures/num6.png \ - textures/rcs-torso-05.png \ - textures/rcs-unum11.png \ - textures/rcs-torso-08.png \ - materials/soccerball.mtl \ - materials/soccerbottorso.mtl \ - materials/naosoccerfield.mtl \ - materials/rightgoal.mtl \ - materials/leftgoal.mtl \ - materials/nao.mtl \ - materials/skybox.mtl \ - rsg/agent/flag_left2.rsg \ - rsg/agent/flag_right1.rsg \ - rsg/agent/soccerbot056.rsg \ - rsg/agent/ball.rsg \ - rsg/agent/soccerbot058/box_with_uj.rsg \ - rsg/agent/soccerbot058/box.rsg \ - rsg/agent/soccerbot058/head.rsg \ - rsg/agent/soccerbot058/contactjointhandler.rsg \ - rsg/agent/soccerbot058/lowerarm_body.rsg \ - rsg/agent/soccerbot058/foot.rsg \ - rsg/agent/soccerbot058/soccerbottorso.rsg \ - rsg/agent/soccerbot058/box_with_hj_with_ccylinder.rsg \ - rsg/agent/soccerbot058/lowerarm.rsg \ - rsg/agent/soccerbot058/soccerbot.rsg \ - rsg/agent/soccerbot058/box_with_handler.rsg \ - rsg/agent/soccerbot058/box_with_hj.rsg \ - rsg/agent/soccerbotrightlowerarmcomp.rsg \ - rsg/agent/flag_left.rsg \ - rsg/agent/soccer.rsg \ - rsg/agent/soccerbotleftlowerarmcomp.rsg \ - rsg/agent/soccerbottorso.rsg \ - rsg/agent/flag.rsg \ - rsg/agent/flag_no_viz.rsg \ - rsg/agent/soccerbotcomp.rsg \ - rsg/agent/soccerplayer.rsg \ - rsg/agent/soccerbottorsocomp.rsg \ - rsg/agent/flag_right.rsg \ - rsg/agent/flag_left1.rsg \ - rsg/agent/nao/naoarm.rsg \ - rsg/agent/nao/sphere_appearance.rsg \ - rsg/agent/nao/goal.rsg \ - rsg/agent/nao/hingejoint.rsg \ - rsg/agent/nao/naoleg.rsg \ - rsg/agent/nao/box_physics.rsg \ - rsg/agent/nao/naoneckhead.rsg \ - rsg/agent/nao/sphere_physics_nocollider.rsg \ - rsg/agent/nao/contactjointhandler.rsg \ - rsg/agent/nao/soccer.rsg \ - rsg/agent/nao/dragcontroller.rsg \ - rsg/agent/nao/sphere_physics.rsg \ - rsg/agent/nao/touchperceptorhandler.rsg \ - rsg/agent/nao/ccylinder_physics_nocollider.rsg \ - rsg/agent/nao/ccylinder_appearance.rsg \ - rsg/agent/nao/box_appearance.rsg \ - rsg/agent/nao/universaljoint.rsg \ - rsg/agent/nao/box_physics_nocollider.rsg \ - rsg/agent/nao/box_physics_with_handler.rsg \ - rsg/agent/nao/nao.rsg \ - rsg/agent/nao/ccylinder_physics.rsg \ - rsg/agent/hoap2.rsg \ - rsg/agent/flag_right2.rsg \ - rsg/agent/soccerbot055.rsg Modified: trunk/rcssserver3d/data/rsg/agent/nao/nao.rsg =================================================================== --- trunk/rcssserver3d/data/rsg/agent/nao/nao.rsg 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/data/rsg/agent/nao/nao.rsg 2009-01-28 17:24:13 UTC (rev 37) @@ -76,10 +76,10 @@ (nd SayEffector) - (nd VisionPerceptor - (setSenseMyPos false) - (setStaticSenseAxis false) - (addNoise false)) + ;(nd VisionPerceptor + ; (setSenseMyPos false) + ; (setStaticSenseAxis false) + ; (addNoise false)) );end of AgentAspect Modified: trunk/rcssserver3d/data/rsg/agent/nao/naoarm.rsg =================================================================== --- trunk/rcssserver3d/data/rsg/agent/nao/naoarm.rsg 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/data/rsg/agent/nao/naoarm.rsg 2009-01-28 17:24:13 UTC (rev 37) @@ -227,9 +227,9 @@ 0 0 1 ;2 -1 -1 $aj4_min $aj4_max) - ;(nd ObjectState - ; (setID $LowerarmName) - ; ) + (nd ObjectState + (setID $LowerarmName) + ) ) ) Modified: trunk/rcssserver3d/data/rsg/agent/nao/naoleg.rsg =================================================================== --- trunk/rcssserver3d/data/rsg/agent/nao/naoleg.rsg 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/data/rsg/agent/nao/naoleg.rsg 2009-01-28 17:24:13 UTC (rev 37) @@ -342,9 +342,9 @@ 0 1 0 ;1 -1 -1 $lj6_min $lj6_max) - ;(nd ObjectState - ; (setID $FootName) - ; ) + (nd ObjectState + (setID $FootName) + ) ) Modified: trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg =================================================================== --- trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/data/rsg/agent/nao/naoneckhead.rsg 2009-01-28 17:24:13 UTC (rev 37) @@ -88,16 +88,16 @@ ;(nd Camera) - ;(nd RestrictedVisionPerceptor - ; (setViewCones 120 120) - ; (setSenseMyPos false) - ; (setStaticSenseAxis false) - ; (addNoise true) - ; (setInterval 3) - ;) + (nd RestrictedVisionPerceptor + (setViewCones 120 120) + (setSenseMyPos false) + (setStaticSenseAxis false) + (addNoise true) + (setInterval 3) + ) - ;(nd ObjectState - ; (setID head) - ;) + (nd ObjectState + (setID head) + ) ) ) Deleted: trunk/rcssserver3d/doc/Makefile.am =================================================================== --- trunk/rcssserver3d/doc/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/doc/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,24 +0,0 @@ -SUBDIRS = users - -all-local: -if DOXYGEN - @echo "***" - @echo "*** To (re-)build the Doxygen API documentation, use 'make doc'" - @echo "***" -endif - -doc: Doxyfile - rm -rf $(srcdir)/api/developers - mkdir -p $(srcdir)/api/developers - cp $(srcdir)/devel/howtos/*.* $(srcdir)/api/developers/ -if DOXYGEN - doxygen Doxyfile -else - touch $(srcdir)/api/index.html -endif - -maintainer-clean-local: - rm -rf api - rm -rf *~ - -EXTRA_DIST = TEXT_INSTEAD_OF_A_MANUAL.txt Deleted: trunk/rcssserver3d/doc/users/Makefile.am =================================================================== --- trunk/rcssserver3d/doc/users/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/doc/users/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,20 +0,0 @@ -if COND_PDFLATEX -%.toc: %.tex - touch $@ - pdflatex $< - -%.pdf: %.tex %.toc - pdflatex $< - -all-local: - @if test -f user-manual.tex; then \ - $(MAKE) $(AM_MAKEFLAGS) user-manual.pdf ; \ - else \ - echo "***" ;\ - echo "*** The user's manual (PDF) can be found in doc/users." ; \ - echo "***" ; \ - fi - -EXTRA_DIST = user-manual.pdf -CLEANFILES = user-manual.log user-manual.pdf user-manual.aux user-manual.toc -endif \ No newline at end of file Deleted: trunk/rcssserver3d/plugin/Makefile.am =================================================================== --- trunk/rcssserver3d/plugin/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/plugin/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1 +0,0 @@ -SUBDIRS = soccer soccermonitor Deleted: trunk/rcssserver3d/plugin/soccer/Makefile.am =================================================================== --- trunk/rcssserver3d/plugin/soccer/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/plugin/soccer/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,117 +0,0 @@ -pkglib_LTLIBRARIES = soccer.la - -soccer_la_SOURCES = export.cpp \ -agentstate/agentstate.cpp \ -agentstate/agentstate_c.cpp \ -agentstateperceptor/agentstateperceptor.cpp \ -agentstateperceptor/agentstateperceptor_c.cpp \ -ball/ball.cpp ball/ball_c.cpp \ -ballstateaspect/ballstateaspect.cpp \ -ballstateaspect/ballstateaspect_c.cpp \ -beameffector/beameffector.cpp \ -beameffector/beameffector_c.cpp \ -catcheffector/catcheffector.cpp \ -catcheffector/catcheffector_c.cpp \ -createeffector/createeffector.cpp \ -createeffector/createeffector_c.cpp \ -driveeffector/driveeffector.cpp \ -driveeffector/driveeffector_c.cpp \ -fieldflag/fieldflag_c.cpp \ -gamestateaspect/gamestateaspect.cpp \ -gamestateaspect/gamestateaspect_c.cpp \ -gamestateaspect/gamestateitem.cpp \ -gamestateaspect/gamestateitem_c.cpp \ -gamestateperceptor/gamestateperceptor.cpp \ -gamestateperceptor/gamestateperceptor_c.cpp \ -hearperceptor/hearperceptor.cpp \ -hearperceptor/hearperceptor_c.cpp \ -initeffector/initeffector.cpp \ -initeffector/initeffector_c.cpp \ -initeffector/singlematiniteffector.cpp \ -initeffector/singlematiniteffector_c.cpp \ -initeffector/staticmeshiniteffector.cpp \ -initeffector/staticmeshiniteffector_c.cpp \ -kickeffector/kickeffector.cpp \ -kickeffector/kickeffector_c.cpp \ -objectstate/objectstate.cpp \ -objectstate/objectstate_c.cpp \ -pantilteffector/pantilteffector.cpp \ -pantilteffector/pantilteffector_c.cpp \ -restrictedvisionperceptor/restrictedvisionperceptor.cpp \ -restrictedvisionperceptor/restrictedvisionperceptor_c.cpp \ -sayeffector/sayeffector.cpp \ -sayeffector/sayeffector_c.cpp \ -sexpmonitor/sexpmonitor.cpp \ -sexpmonitor/sexpmonitor_c.cpp \ -internalsoccermonitor/internalsoccerrender.cpp \ -internalsoccermonitor/internalsoccerrender_c.cpp \ -internalsoccermonitor/internalsoccerinput.cpp \ -internalsoccermonitor/internalsoccerinput_c.cpp \ -soccerbase/soccerbase.cpp \ -soccercontrolaspect/soccercontrolaspect.cpp \ -soccercontrolaspect/soccercontrolaspect_c.cpp \ -soccernode/soccernode.cpp \ -soccernode/soccernode_c.cpp \ -soccerruleaspect/soccerruleaspect.cpp \ -soccerruleaspect/soccerruleaspect_c.cpp \ -trainercommandparser/trainercommandparser.cpp \ -trainercommandparser/trainercommandparser_c.cpp \ -visionperceptor/visionperceptor.cpp \ -visionperceptor/visionperceptor_c.cpp \ -gametimeperceptor/gametimeperceptor.cpp \ -gametimeperceptor/gametimeperceptor_c.cpp \ -agentintegration/soccerbotbehavior.cpp \ -agentintegration/soccerbotbehavior_c.cpp - -nobase_libpkginclude_HEADERS = \ -soccertypes.h \ -agentstate/agentstate.h \ -agentstateperceptor/agentstateperceptor.h \ -ball/ball.h \ -ballstateaspect/ballstateaspect.h \ -beameffector/beamaction.h \ -beameffector/beameffector.h \ -catcheffector/catchaction.h \ -catcheffector/catcheffector.h \ -createeffector/createaction.h \ -createeffector/createeffector.h \ -driveeffector/driveaction.h \ -driveeffector/driveeffector.h \ -fieldflag/fieldflag.h \ -gamestateaspect/gamestateaspect.h \ -gamestateaspect/gamestateitem.h \ -gamestateperceptor/gamestateperceptor.h \ -hearperceptor/hearperceptor.h \ -initeffector/initaction.h \ -initeffector/initeffector.h \ -initeffector/singlematiniteffector.h \ -initeffector/staticmeshiniteffector.h \ -kickeffector/kickaction.h \ -kickeffector/kickeffector.h \ -objectstate/objectstate.h \ -pantilteffector/pantiltaction.h \ -pantilteffector/pantilteffector.h \ -restrictedvisionperceptor/restrictedvisionperceptor.h \ -sayeffector/sayaction.h \ -sayeffector/sayeffector.h \ -sexpmonitor/sexpmonitor.h \ -internalsoccermonitor/internalsoccerrender.h \ -internalsoccermonitor/internalsoccerinput.h \ -soccerbase/soccerbase.h \ -soccercontrolaspect/soccercontrolaspect.h \ -soccernode/soccernode.h \ -soccerruleaspect/soccerruleaspect.h \ -trainercommandparser/trainercommandparser.h \ -gametimeperceptor/gametimeperceptor.h \ -visionperceptor/visionperceptor.h \ -agentintegration/soccerbotbehavior.h - -## define include directory local to the pkgincludedir -libpkgincludedir = $(includedir)/@PACKAGE@/soccer - -# -module tells automake we're not building a library but a loadable module -# so we don't need the "lib" prefix in the module name -soccer_la_LDFLAGS = -module -version-info 1:0:0 - -AM_CPPFLAGS = @SALT_CPPFLAGS@ @SPARK_CPPFLAGS@ @ZEITGEIST_CPPFLAGS@ \ - @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ @FREETYPE_CPPFLAGS@ Deleted: trunk/rcssserver3d/plugin/soccermonitor/Makefile.am =================================================================== --- trunk/rcssserver3d/plugin/soccermonitor/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/plugin/soccermonitor/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,28 +0,0 @@ -pkglib_LTLIBRARIES = soccermonitor.la - -soccermonitor_la_SOURCES = export.cpp \ - soccermonitor.cpp \ - soccermonitor_c.cpp \ - soccerrender.cpp \ - soccerrender_c.cpp \ - soccerinput.cpp \ - soccerinput_c.cpp \ - soccerinputlogplayer.cpp \ - soccerinputlogplayer_c.cpp - -nobase_libpkginclude_HEADERS = \ - soccermonitor.h \ - soccerrender.h \ - soccerinput.h \ - soccerinputlogplayer.h - -## define include directory local to the pkgincludedir -libpkgincludedir = $(includedir)/@PACKAGE@/soccermonitor - -# -module tells automake we're not building a library but a loadable module -# so we don't need the "lib" prefix in the module name -soccermonitor_la_LDFLAGS = -module -version-info 1:0:0 - -AM_CPPFLAGS = -I${top_srcdir}/plugin @SALT_CPPFLAGS@ @SPARK_CPPFLAGS@ \ - @ZEITGEIST_CPPFLAGS@ @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ \ - @FREETYPE_CPPFLAGS@ Deleted: trunk/rcssserver3d/rcssagent3d/Makefile.am =================================================================== --- trunk/rcssserver3d/rcssagent3d/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/rcssagent3d/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,30 +0,0 @@ -bin_PROGRAMS = rcssagent3d - -LDADD = -lpthread - -if DEBUG -rcssagent3d_CXXFLAGS = -O -g -W -Wall -else -rcssagent3d_CXXFLAGS = -O2 -endif - -AM_CPPFLAGS = @SALT_CPPFLAGS@ \ - @SPARK_CPPFLAGS@ @ZEITGEIST_CPPFLAGS@ \ - @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ - -AM_LDFLAGS = @SALT_LDFLAGS@ \ - @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ - @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ - - -rcssagent3d_SOURCES = main.cpp \ - behavior.h \ - soccerbehavior.h \ - soccerbehavior.cpp \ - soccerbotbehavior.h \ - soccerbotbehavior.cpp \ - hoap2behavior.h \ - hoap2behavior.cpp \ - naobehavior.h \ - naobehavior.cpp - Deleted: trunk/rcssserver3d/rcssmonitor3d/Makefile.am =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/rcssmonitor3d/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,32 +0,0 @@ -bin_PROGRAMS = rcssmonitor3d - -LDADD = -lpthread - -if DEBUG -rcssmonitor3d_CXXFLAGS = -O -g -W -Wall -else -rcssmonitor3d_CXXFLAGS = -O2 -endif - -AM_CPPFLAGS = @SALT_CPPFLAGS@ \ - @SPARK_CPPFLAGS@ @ZEITGEIST_CPPFLAGS@ \ - @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ - -if NO_RPATH -AM_LDFLAGS = @SALT_LDFLAGS@ \ - @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ - @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -else -AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ - @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ - @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -endif - -rcssmonitor3d_SOURCES = \ - main.cpp - -dist_pkgdata_DATA = \ - soccersim-monitor.rb \ - rcssmonitor3d.rb \ - soccerbindings.rb - Deleted: trunk/rcssserver3d/simspark/Makefile.am =================================================================== --- trunk/rcssserver3d/simspark/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rcssserver3d/simspark/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,35 +0,0 @@ -bin_PROGRAMS = simspark - -LDADD = -lpthread - -if DEBUG -agentspark_CXXFLAGS = -O -g -W -Wall -else -agentspark_CXXFLAGS = -O2 -endif - -AM_CPPFLAGS = @SALT_CPPFLAGS@ \ - @SPARK_CPPFLAGS@ @ZEITGEIST_CPPFLAGS@ \ - @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ - -if NO_RPATH -AM_LDFLAGS = @SALT_LDFLAGS@ \ - @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ - @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -else -AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ - @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ - @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -endif - - - -simspark_SOURCES = \ - main.cpp - -dist_pkgdata_DATA = \ - simspark.rb \ - soccersim.rb \ - naosoccersim.rb \ - internalsoccermonitor.rb \ - internalsoccerbindings.rb Deleted: trunk/rsgedit/INSTALL =================================================================== --- trunk/rsgedit/INSTALL 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rsgedit/INSTALL 2009-01-28 17:24:13 UTC (rev 37) @@ -1,236 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses -PREFIX as the prefix for installing programs and libraries. -Documentation and other data files still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - Added: trunk/rsgedit/INSTALL =================================================================== --- trunk/rsgedit/INSTALL (rev 0) +++ trunk/rsgedit/INSTALL 2009-01-28 17:24:13 UTC (rev 37) @@ -0,0 +1,23 @@ +Installation Instructions +========================== +You can build this package using CMake build system (version 2.6 or higher +should be installed on your system). CMake can generate different kinds of +native build files for your system (e.g. Unix Makefiles, Eclipse CDT 4.0 project +files, Visual Studio project files). You can generate build files using CMake +command-line or GUI interfaces. + +Basic Installation Using CMake Command-line Interface +===================================================== +1. Unpack the distribution and change directory to the top level source tree. +2. (Recommended) Create a directory to hold your build files (e.g. 'mkdir build') +3. Change directory to the directory you created in the previous step (for the +above example, you can use 'cd build') +4. Run 'cmake ..' to configure the package and generate build files. On Linux, +it'll generate Makefiles for the package +5. Optionally, you can run 'ccmake .' to edit the build settings (for example +the installation directory). +6. Considering that you've generated Makefiles using cmake, you can run 'make' +to build the package. +7. Run 'make install' to install the package. + +Also, you can run 'make uninstall' to uninstall the package. Deleted: trunk/rsgedit/Makefile.am =================================================================== --- trunk/rsgedit/Makefile.am 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rsgedit/Makefile.am 2009-01-28 17:24:13 UTC (rev 37) @@ -1,26 +0,0 @@ -### utility subdir has to be made first -SUBDIRS = wxutil src res - -pkginclude_HEADERS = rsgedit_config.h - -CLEANFILES = -dist_doc_DATA = doc/rsgedit.txt AUTHORS ChangeLog COPYING NEWS README TODO - -include $(top_srcdir)/config.aux/dist.am - -UPLOAD_BIN = -UPLOAD_SRC = upload-gzip upload-bzip2 upload-zip -UPLOAD_TARGETS = \ -{gzip=>@PACKAGE@-@VERSION@.tar.gz} \ -{bzip2=>@PACKAGE@-@VERSION@.tar.bz2} \ -{zip=>@PACKAGE@-@VERSION@.zip} -include $(top_srcdir)/config.aux/sf.am - - -include $(top_srcdir)/config.aux/cvs.am - -#MSI_SETUP_FILE=Setup/Release/@PAC...@Se...i -#include $(top_srcdir)/config.aux/msi.am - -#include $(top_srcdir)/config.aux/rpm.am - Deleted: trunk/rsgedit/acinclude.m4 =================================================================== --- trunk/rsgedit/acinclude.m4 2009-01-27 10:18:01 UTC (rev 36) +++ trunk/rsgedit/acinclude.m4 2009-01-28 17:24:13 UTC (rev 37) @@ -1,301 +0,0 @@ -# SPARK_LIB_SALT -# Substitutes: @SALT_LDFLAGS@ -# @SALT_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_SALT], [ - # check for the salt-config script - AC_PATH_PROG(SALT,[salt-config],[no]) - if test $SALT = "no"; then - AC_MSG_ERROR([salt-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libsalt libs file]) - - spark_salt_libflags=`$SALT --libs` - AC_MSG_RESULT([$spark_salt_libflags]) - AC_SUBST(SALT_LDFLAGS, [$spark_salt_libflags]) - - spark_salt_cppflags=`$SALT --cflags` - AC_MSG_RESULT([$spark_salt_cppflags]) - AC_SUBST(SALT_CPPFLAGS, [$spark_salt_cppflags]) -]) # SPARK_LIB_SALT - -# SPARK_LIB_ZEITGEIST -# Substitutes: @ZEITGEIST_LDFLAGS@ -# @ZEITGEIST_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_ZEITGEIST], [ - # check for the zeitgeist-config script - AC_PATH_PROG(ZEITGEIST,[zeitgeist-config],[no]) - if test $ZEITGEIST = "no"; then - AC_MSG_ERROR([zeitgeist-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libzeitgeist libs file]) - - spark_zeitgeist_libflags=`$ZEITGEIST --libs` - AC_MSG_RESULT([$spark_zeitgeist_libflags]) - AC_SUBST(ZEITGEIST_LDFLAGS, [$spark_zeitgeist_libflags]) - - spark_zeitgeist_cppflags=`$ZEITGEIST --cflags` - AC_MSG_RESULT([$spark_zeitgeist_cppflags]) - AC_SUBST(ZEITGEIST_CPPFLAGS, [$spark_zeitgeist_cppflags]) -]) # SPARK_LIB_ZEITGEIST - -# SPARK_LIB_OXYGEN -# Substitutes: @OXYGEN_LDFLAGS@ -# @OXYGEN_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_OXYGEN], [ - # check for the oxygen-config script - AC_PATH_PROG(OXYGEN,[oxygen-config],[no]) - if test $OXYGEN = "no"; then - AC_MSG_ERROR([oxygen-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([liboxygen libs file]) - - spark_oxygen_libflags=`$OXYGEN --libs` - AC_MSG_RESULT([$spark_oxygen_libflags]) - AC_SUBST(OXYGEN_LDFLAGS, [$spark_oxygen_libflags]) - - spark_oxygen_cppflags=`$OXYGEN --cflags` - AC_MSG_RESULT([$spark_oxygen_cppflags]) - AC_SUBST(OXYGEN_CPPFLAGS, [$spark_oxygen_cppflags]) -]) # SPARK_LIB_OXYGEN - -# SPARK_LIB_KEROSIN -# Substitutes: @KEROSIN_LDFLAGS@ -# @KEROSIN_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_KEROSIN], [ - # check for the kerosin-config script - AC_PATH_PROG(KEROSIN,[kerosin-config],[no]) - if test $KEROSIN = "no"; then - AC_MSG_ERROR([kerosin-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libkerosin libs file]) - - spark_kerosin_libflags=`$KEROSIN --libs` - AC_MSG_RESULT([$spark_kerosin_libflags]) - AC_SUBST(KEROSIN_LDFLAGS, [$spark_kerosin_libflags]) - - spark_kerosin_cppflags=`$KEROSIN --cflags` - AC_MSG_RESULT([$spark_kerosin_cppflags]) - AC_SUBST(KEROSIN_CPPFLAGS, [$spark_kerosin_cppflags]) - - AC_DEFINE(HAVE_KEROSIN_KEROSIN_H, 1, [Define to 1 if using the kerosin header]) -]) # SPARK_LIB_KEROSIN - -# SPARK_LIB_SPARK -# Substitutes: @SPARK_LDFLAGS@ -# @SPARK_CPPFLAGS@ -#----------------------------------------------------------------------------- -AC_DEFUN([SPARK_LIB_SPARK], [ - # check for the spark-config script - AC_PATH_PROG(SPARK,[spark-config],[no]) - if test $SPARK = "no"; then - AC_MSG_ERROR([spark-config not found]) - fi - # get the libs file - AC_MSG_CHECKING([libspark libs file]) - - spark_libflags=`$SPARK --libs` - AC_MSG_RESULT([$spark_libflags]) - AC_SUBST(SPARK_LDFLAGS, [$spark_libflags]) - - spark_cppflags=`$SPARK --cflags` - AC_MSG_RESULT([$spark_cppflags]) - AC_SUBST(SPARK_CPPFLAGS, [$spark_cppflags]) -]) # SPARK_LIB_SPARK - -dnl --------------------------------------------------------------------------- -dnl the wxWidgets macros were copied and adapted fr... [truncated message content] |
From: <yx...@us...> - 2009-01-27 10:18:09
|
Revision: 36 http://simspark.svn.sourceforge.net/simspark/?rev=36&view=rev Author: yxu Date: 2009-01-27 10:18:01 +0000 (Tue, 27 Jan 2009) Log Message: ----------- * lib/oxygen/physicsserver/space.cpp: remove assertation which may break rsgedit at the startup time * lib/kerosin/renderserver/renderserver.cpp: reset camera while reloading the scene Modified Paths: -------------- trunk/spark/lib/kerosin/renderserver/renderserver.cpp trunk/spark/lib/oxygen/physicsserver/space.cpp Modified: trunk/spark/lib/kerosin/renderserver/renderserver.cpp =================================================================== --- trunk/spark/lib/kerosin/renderserver/renderserver.cpp 2009-01-24 14:33:54 UTC (rev 35) +++ trunk/spark/lib/kerosin/renderserver/renderserver.cpp 2009-01-27 10:18:01 UTC (rev 36) @@ -354,6 +354,7 @@ void RenderServer::UpdateCached() { mActiveScene.reset(); + mCamera.reset(); } void RenderServer::DisablePicking() Modified: trunk/spark/lib/oxygen/physicsserver/space.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/space.cpp 2009-01-24 14:33:54 UTC (rev 35) +++ trunk/spark/lib/oxygen/physicsserver/space.cpp 2009-01-27 10:18:01 UTC (rev 36) @@ -296,7 +296,7 @@ { if (mODESpace == 0) { - assert(false); + //assert(false); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-24 14:34:04
|
Revision: 35 http://simspark.svn.sourceforge.net/simspark/?rev=35&view=rev Author: hedayat Date: 2009-01-24 14:33:54 +0000 (Sat, 24 Jan 2009) Log Message: ----------- Added 'make uninstall' support Do not build documentation by default. (needs using 'make pdf' and 'make doc') Modified Paths: -------------- trunk/rcssserver3d/CMakeLists.txt trunk/rcssserver3d/ChangeLog trunk/rcssserver3d/cmake/UseLATEX.cmake trunk/rcssserver3d/doc/users/CMakeLists.txt trunk/rsgedit/CMakeLists.txt trunk/simspark-utilities/CMakeLists.txt trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/cmake/UseLATEX.cmake trunk/spark/doc/devel/CMakeLists.txt Added Paths: ----------- trunk/rcssserver3d/cmake_uninstall.cmake.in trunk/rsgedit/cmake_uninstall.cmake.in trunk/simspark-utilities/cmake_uninstall.cmake.in trunk/spark/cmake_uninstall.cmake.in Modified: trunk/rcssserver3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/rcssserver3d/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -62,6 +62,15 @@ install(FILES ${CMAKE_BINARY_DIR}/rcssserver3d_config.h DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) +########### uninstall support ############ +CONFIGURE_FILE( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + +ADD_CUSTOM_TARGET(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") + ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES Modified: trunk/rcssserver3d/ChangeLog =================================================================== --- trunk/rcssserver3d/ChangeLog 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/rcssserver3d/ChangeLog 2009-01-24 14:33:54 UTC (rev 35) @@ -1,3 +1,14 @@ +2009-01-24 Hedayat Vatankhah <he...@gr...> + + * CMakeLists.txt: + * cmake_uninstall.cmake.in: + - added 'make uninstall' support + + * doc/users/CMakeLists.txt: + * cmake/UseLATEX.cmake: + - do not build users-manual.pdf by default. can be built using 'make pdf' + - add an output to tell the user how it can build the manual + 2009-01-20 Hedayat Vatankhah <he...@gr...> * rcssmonitor3d/Makefile.am: Modified: trunk/rcssserver3d/cmake/UseLATEX.cmake =================================================================== --- trunk/rcssserver3d/cmake/UseLATEX.cmake 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/rcssserver3d/cmake/UseLATEX.cmake 2009-01-24 14:33:54 UTC (rev 35) @@ -681,7 +681,7 @@ IF (PDFLATEX_COMPILER) IF (LATEX_DEFAULT_PDF) - ADD_CUSTOM_TARGET(${pdf_target} ALL ${make_pdf_command} + ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} DEPENDS ${make_pdf_depends}) ELSE (LATEX_DEFAULT_PDF) ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} Added: trunk/rcssserver3d/cmake_uninstall.cmake.in =================================================================== --- trunk/rcssserver3d/cmake_uninstall.cmake.in (rev 0) +++ trunk/rcssserver3d/cmake_uninstall.cmake.in 2009-01-24 14:33:54 UTC (rev 35) @@ -0,0 +1,22 @@ +IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +STRING(REGEX REPLACE "\n" ";" files "${files}") +FOREACH(file ${files}) + MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + IF(EXISTS "$ENV{DESTDIR}${file}") + EXEC_PROGRAM( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + IF(NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + ENDIF(NOT "${rm_retval}" STREQUAL 0) + ELSE(EXISTS "$ENV{DESTDIR}${file}") + MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + ENDIF(EXISTS "$ENV{DESTDIR}${file}") +ENDFOREACH(file) + Modified: trunk/rcssserver3d/doc/users/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/doc/users/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/rcssserver3d/doc/users/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -8,6 +8,9 @@ overview.tex simulations.tex definitions.tex resources.tex user-manual.tex BIBFILES references.bib IMAGE_DIRS fig DEFAULT_PDF) endif (PDFLATEX_COMPILER) + add_custom_target(pdfcomment ALL echo '***' + COMMAND echo '*** To \(re-\)build the users manual, use \"make pdf\"' + COMMAND echo '***') else (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) add_custom_target(comment2 ALL echo '***' COMMAND echo '*** The users manual \(PDF\) can be found in doc/users.' Modified: trunk/rsgedit/CMakeLists.txt =================================================================== --- trunk/rsgedit/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/rsgedit/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -54,6 +54,15 @@ install(FILES ${CMAKE_BINARY_DIR}/rsgedit_config.h DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) +########### uninstall support ############ +CONFIGURE_FILE( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + +ADD_CUSTOM_TARGET(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") + ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES Added: trunk/rsgedit/cmake_uninstall.cmake.in =================================================================== --- trunk/rsgedit/cmake_uninstall.cmake.in (rev 0) +++ trunk/rsgedit/cmake_uninstall.cmake.in 2009-01-24 14:33:54 UTC (rev 35) @@ -0,0 +1,22 @@ +IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +STRING(REGEX REPLACE "\n" ";" files "${files}") +FOREACH(file ${files}) + MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + IF(EXISTS "$ENV{DESTDIR}${file}") + EXEC_PROGRAM( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + IF(NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + ENDIF(NOT "${rm_retval}" STREQUAL 0) + ELSE(EXISTS "$ENV{DESTDIR}${file}") + MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + ENDIF(EXISTS "$ENV{DESTDIR}${file}") +ENDFOREACH(file) + Modified: trunk/simspark-utilities/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/simspark-utilities/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -38,6 +38,15 @@ install(FILES AUTHORS ChangeLog COPYING README DESTINATION ${DATADIR}/doc/${CMAKE_PROJECT_NAME}) +########### uninstall support ############ +CONFIGURE_FILE( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + +ADD_CUSTOM_TARGET(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") + ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES /CVS/ /[.]svn/ /.*[.]o /[.].*) Added: trunk/simspark-utilities/cmake_uninstall.cmake.in =================================================================== --- trunk/simspark-utilities/cmake_uninstall.cmake.in (rev 0) +++ trunk/simspark-utilities/cmake_uninstall.cmake.in 2009-01-24 14:33:54 UTC (rev 35) @@ -0,0 +1,22 @@ +IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +STRING(REGEX REPLACE "\n" ";" files "${files}") +FOREACH(file ${files}) + MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + IF(EXISTS "$ENV{DESTDIR}${file}") + EXEC_PROGRAM( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + IF(NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + ENDIF(NOT "${rm_retval}" STREQUAL 0) + ELSE(EXISTS "$ENV{DESTDIR}${file}") + MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + ENDIF(EXISTS "$ENV{DESTDIR}${file}") +ENDFOREACH(file) + Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/spark/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -141,6 +141,15 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sparkconfig.h DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) +########### uninstall support ############ +CONFIGURE_FILE( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + +ADD_CUSTOM_TARGET(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") + ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/spark/ChangeLog 2009-01-24 14:33:54 UTC (rev 35) @@ -1,3 +1,14 @@ +2009-01-24 Hedayat Vatankhah <he...@gr...> + + * cmake_uninstall.cmake.in: + * CMakeLists.txt: + - added 'make uninstall' support + + * cmake/UseLATEX.cmake: + * doc/devel/CMakeLists.txt: + - do not build manual.pdf by default. can be built using 'make pdf' + - add an output to tell the user how it can build the manual + 2009-01-21 Hedayat Vatankhah <he...@gr...> * CMakeLists.txt: Modified: trunk/spark/cmake/UseLATEX.cmake =================================================================== --- trunk/spark/cmake/UseLATEX.cmake 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/spark/cmake/UseLATEX.cmake 2009-01-24 14:33:54 UTC (rev 35) @@ -681,7 +681,7 @@ IF (PDFLATEX_COMPILER) IF (LATEX_DEFAULT_PDF) - ADD_CUSTOM_TARGET(${pdf_target} ALL ${make_pdf_command} + ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} DEPENDS ${make_pdf_depends}) ELSE (LATEX_DEFAULT_PDF) ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} Added: trunk/spark/cmake_uninstall.cmake.in =================================================================== --- trunk/spark/cmake_uninstall.cmake.in (rev 0) +++ trunk/spark/cmake_uninstall.cmake.in 2009-01-24 14:33:54 UTC (rev 35) @@ -0,0 +1,22 @@ +IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +STRING(REGEX REPLACE "\n" ";" files "${files}") +FOREACH(file ${files}) + MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + IF(EXISTS "$ENV{DESTDIR}${file}") + EXEC_PROGRAM( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + IF(NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + ENDIF(NOT "${rm_retval}" STREQUAL 0) + ELSE(EXISTS "$ENV{DESTDIR}${file}") + MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + ENDIF(EXISTS "$ENV{DESTDIR}${file}") +ENDFOREACH(file) + Modified: trunk/spark/doc/devel/CMakeLists.txt =================================================================== --- trunk/spark/doc/devel/CMakeLists.txt 2009-01-22 19:23:39 UTC (rev 34) +++ trunk/spark/doc/devel/CMakeLists.txt 2009-01-24 14:33:54 UTC (rev 35) @@ -8,3 +8,7 @@ set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "definitions.aux;manual.log;manual.pdf;manual.aux;manual.out;manual.toc") + +add_custom_target(pdfcomment ALL echo '***' + COMMAND echo '*** To \(re-\)build the developers manual, use \"make pdf\"' + COMMAND echo '***') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-22 19:23:45
|
Revision: 34 http://simspark.svn.sourceforge.net/simspark/?rev=34&view=rev Author: hedayat Date: 2009-01-22 19:23:39 +0000 (Thu, 22 Jan 2009) Log Message: ----------- Set $Id keyword on new files Removed Makefile.in Removed Paths: ------------- trunk/spark/plugin/imageperceptor/Makefile.in Property Changed: ---------------- trunk/spark/plugin/imageperceptor/ trunk/spark/plugin/imageperceptor/export.cpp trunk/spark/plugin/imageperceptor/imageperceptor.cpp trunk/spark/plugin/imageperceptor/imageperceptor.h trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp Property changes on: trunk/spark/plugin/imageperceptor ___________________________________________________________________ Added: svn:ignore + Makefile.in .deps .libs Makefile Deleted: trunk/spark/plugin/imageperceptor/Makefile.in =================================================================== --- trunk/spark/plugin/imageperceptor/Makefile.in 2009-01-22 17:15:41 UTC (rev 33) +++ trunk/spark/plugin/imageperceptor/Makefile.in 2009-01-22 19:23:39 UTC (rev 34) @@ -1,543 +0,0 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = plugin/imageperceptor -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/sparkconfig.h -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(pkglibdir)" -pkglibLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(pkglib_LTLIBRARIES) -imageperceptor_la_LIBADD = -am_imageperceptor_la_OBJECTS = export.lo imageperceptor.lo \ - imageperceptor_c.lo -imageperceptor_la_OBJECTS = $(am_imageperceptor_la_OBJECTS) -imageperceptor_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(imageperceptor_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/config.aux/depcomp -am__depfiles_maybe = depfiles -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(imageperceptor_la_SOURCES) -DIST_SOURCES = $(imageperceptor_la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALLOCA = @ALLOCA@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BOOST_THREADS_LIB = @BOOST_THREADS_LIB@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DEVIL = @DEVIL@ -DOXYGEN = @DOXYGEN@ -DSYMUTIL = @DSYMUTIL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FREETYPE = @FREETYPE@ -FREETYPE_CPPFLAGS = @FREETYPE_CPPFLAGS@ -FREETYPE_LIBADD = @FREETYPE_LIBADD@ -GLDIR = @GLDIR@ -GLTARGET = @GLTARGET@ -GL_LDFLAGS = @GL_LDFLAGS@ -GL_LIBADD = @GL_LIBADD@ -GREP = @GREP@ -HAVE_DOT = @HAVE_DOT@ -IL_LDFLAGS = @IL_LDFLAGS@ -IL_LIBADD = @IL_LIBADD@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -NET_LIBS = @NET_LIBS@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -ODE = @ODE@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PDFLATEX = @PDFLATEX@ -PERL = @PERL@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -RUBY_CPPFLAGS = @RUBY_CPPFLAGS@ -RUBY_LDADD = @RUBY_LDADD@ -RUBY_LDFLAGS = @RUBY_LDFLAGS@ -SALT_LIBADD = @SALT_LIBADD@ -SDL = @SDL@ -SDLCONFIG = @SDLCONFIG@ -SDL_CPPFLAGS = @SDL_CPPFLAGS@ -SDL_LDFLAGS = @SDL_LDFLAGS@ -SDL_LIBADD = @SDL_LIBADD@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SPADES = @SPADES@ -STRIP = @STRIP@ -VERSION = @VERSION@ -WX_CFLAGS = @WX_CFLAGS@ -WX_CFLAGS_ONLY = @WX_CFLAGS_ONLY@ -WX_CONFIG_PATH = @WX_CONFIG_PATH@ -WX_CPPFLAGS = @WX_CPPFLAGS@ -WX_CXXFLAGS = @WX_CXXFLAGS@ -WX_CXXFLAGS_ONLY = @WX_CXXFLAGS_ONLY@ -WX_LIBS = @WX_LIBS@ -WX_LIBS_STATIC = @WX_LIBS_STATIC@ -WX_VERSION = @WX_VERSION@ -XMKMF = @XMKMF@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -bundle_support = @bundle_support@ -datadir = @datadir@ -datarootdir = @datarootdir@ -debug = @debug@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -kerosin_version = @kerosin_version@ -kerosin_version_info = @kerosin_version_info@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -oxygen_version = @oxygen_version@ -oxygen_version_info = @oxygen_version_info@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -rcssnet3D_version = @rcssnet3D_version@ -rcssnet3D_version_info = @rcssnet3D_version_info@ -salt_version = @salt_version@ -salt_version_info = @salt_version_info@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -spark_version = @spark_version@ -spark_version_info = @spark_version_info@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -zeitgeist_version = @zeitgeist_version@ -zeitgeist_version_info = @zeitgeist_version_info@ -pkglib_LTLIBRARIES = imageperceptor.la -imageperceptor_la_SOURCES = export.cpp \ - imageperceptor.h \ - imageperceptor.cpp \ - imageperceptor_c.cpp - - -# -module tells automake we're not building a library but a loadable module -# so we don't need the "lib" prefix in the module name -imageperceptor_la_LDFLAGS = -module -version-info 0:0:0 -AM_CPPFLAGS = -I${top_srcdir}/lib @RUBY_CPPFLAGS@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .cpp .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugin/imageperceptor/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu plugin/imageperceptor/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ - else :; fi; \ - done - -uninstall-pkglibLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ - done - -clean-pkglibLTLIBRARIES: - -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -imageperceptor.la: $(imageperceptor_la_OBJECTS) $(imageperceptor_la_DEPENDENCIES) - $(imageperceptor_la_LINK) -rpath $(pkglibdir) $(imageperceptor_la_OBJECTS) $(imageperceptor_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/export.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imageperceptor.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imageperceptor_c.Plo@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(pkglibdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-pkglibLTLIBRARIES - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pkglibLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-pkglibLTLIBRARIES \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: Property changes on: trunk/spark/plugin/imageperceptor/export.cpp ___________________________________________________________________ Added: svn:keywords + Id Property changes on: trunk/spark/plugin/imageperceptor/imageperceptor.cpp ___________________________________________________________________ Added: svn:keywords + Id Property changes on: trunk/spark/plugin/imageperceptor/imageperceptor.h ___________________________________________________________________ Added: svn:keywords + Id Property changes on: trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp ___________________________________________________________________ Added: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-22 17:16:03
|
Revision: 33 http://simspark.svn.sourceforge.net/simspark/?rev=33&view=rev Author: hedayat Date: 2009-01-22 17:15:41 +0000 (Thu, 22 Jan 2009) Log Message: ----------- Committing simspark-utilities NOTICE: 1. there is no autoconf support in this package. 2. samplesim and monitorspark currently do not work. They need work, I just committed them to make the structure available; also anybody interested can work on them! Added Paths: ----------- trunk/simspark-utilities/ trunk/simspark-utilities/AUTHORS trunk/simspark-utilities/CMakeLists.txt trunk/simspark-utilities/COPYING trunk/simspark-utilities/ChangeLog trunk/simspark-utilities/README trunk/simspark-utilities/cmake/ trunk/simspark-utilities/cmake/FindSpark.cmake trunk/simspark-utilities/data/ trunk/simspark-utilities/data/CMakeLists.txt trunk/simspark-utilities/data/bindings.rb trunk/simspark-utilities/data/rsg/ trunk/simspark-utilities/data/rsg/agent/ trunk/simspark-utilities/data/rsg/agent/ball.rsg trunk/simspark-utilities/data/rsg/agent/buggy.rsg trunk/simspark-utilities/data/rsg/agent/leggedsphere.rsg trunk/simspark-utilities/data/rsg/agent/samplesim.rsg trunk/simspark-utilities/gendot/ trunk/simspark-utilities/gendot/CMakeLists.txt trunk/simspark-utilities/gendot/gendot.rb trunk/simspark-utilities/gendot/include.dot trunk/simspark-utilities/gendot/main.cpp trunk/simspark-utilities/monitorspark/ trunk/simspark-utilities/monitorspark/CMakeLists.txt trunk/simspark-utilities/monitorspark/main.cpp trunk/simspark-utilities/monitorspark/monitorspark.rb trunk/simspark-utilities/sampleagent/ trunk/simspark-utilities/sampleagent/CMakeLists.txt trunk/simspark-utilities/sampleagent/behavior.h trunk/simspark-utilities/sampleagent/carbehavior.cpp trunk/simspark-utilities/sampleagent/carbehavior.h trunk/simspark-utilities/sampleagent/leggedspherebehavior.cpp trunk/simspark-utilities/sampleagent/leggedspherebehavior.h trunk/simspark-utilities/sampleagent/main.cpp trunk/simspark-utilities/samplesim/ trunk/simspark-utilities/samplesim/CMakeLists.txt trunk/simspark-utilities/samplesim/main.cpp trunk/simspark-utilities/samplesim/samplesim.rb Added: trunk/simspark-utilities/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/CMakeLists.txt (rev 0) +++ trunk/simspark-utilities/CMakeLists.txt 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,48 @@ +cmake_minimum_required(VERSION 2.6) + +project(simspark-utilities CXX C) +set(PACKAGE_VERSION "0.1") + +########## check for headerfiles/libraries ########## +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) +find_package(Spark REQUIRED) +find_package(Boost REQUIRED) + +########## add extra flags ########## +set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") +add_definitions(-DHAVE_CONFIG_H) +if (UNIX) + set(CMAKE_CXX_FLAGS "-Wno-deprecated") + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") + set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") +endif (UNIX) + +set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") +set(LIBDIR "lib" CACHE PATH "The directory to install libraries into.") +set(DATADIR "share" CACHE PATH "The directory to install data files into.") +set(INCLUDEDIR "include" CACHE PATH "The directory to install includes into.") +set(RPATH_DIRECTORIES ${SPARK_LIB_DIR}) +set(CMAKE_SHARED_MODULE_PREFIX "") + +mark_as_advanced(BINDIR LIBDIR DATADIR INCLUDEDIR) + +########## add subdirectories ############ +add_subdirectory(data) +add_subdirectory(gendot) +add_subdirectory(monitorspark) +add_subdirectory(samplesim) +add_subdirectory(sampleagent) + + +########### install files ############### +install(FILES AUTHORS ChangeLog COPYING README + DESTINATION ${DATADIR}/doc/${CMAKE_PROJECT_NAME}) + +########### CPack section ############# +set(CPACK_SOURCE_GENERATOR TGZ) +set(CPACK_SOURCE_IGNORE_FILES /CVS/ /[.]svn/ /.*[.]o /[.].*) +set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) +set(CPACK_SOURCE_PACKAGE_FILE_NAME + ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) + +include(CPack) Property changes on: trunk/simspark-utilities/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/COPYING =================================================================== --- trunk/simspark-utilities/COPYING (rev 0) +++ trunk/simspark-utilities/COPYING 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Added: trunk/simspark-utilities/cmake/FindSpark.cmake =================================================================== --- trunk/simspark-utilities/cmake/FindSpark.cmake (rev 0) +++ trunk/simspark-utilities/cmake/FindSpark.cmake 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,145 @@ +# - Find Spark +# Find the native Spark includes and libraries +# +# SPARK_INCLUDE_DIR - where to find spark include files +# SPARK_LIB_DIR - where to find spark libraries +# SPARK_LIBRARIES - List of libraries when using spark. +# SPARK_FOUND - True if spark found. +# SALT_INCLUDE_DIR - where to find salt include files +# SALT_LIBRARIES - List of libraries when using salt. +# SALT_FOUND - True if salt found. +# ZEITGEIST_INCLUDE_DIR - where to find zeitgeist include files +# ZEITGEIST_LIBRARIES - List of libraries when using zeitgeist. +# ZEITGEIST_FOUND - True if zeitgeist found. +# OXYGEN_INCLUDE_DIR - where to find oxygen include files +# OXYGEN_LIBRARIES - List of libraries when using oxygen. +# OXYGEN_FOUND - True if oxygen found. +# KEROSIN_INCLUDE_DIR - where to find kerosin include files +# KEROSIN_LIBRARIES - List of libraries when using kerosin. +# KEROSIN_FOUND - True if kerosin found. + +# Spark section +IF (SPARK_INCLUDE_DIR) + # Already in cache, be silent + SET(SPARK_FIND_QUIETLY TRUE) +ENDIF (SPARK_INCLUDE_DIR) + +FIND_PATH(SPARK_INCLUDE_DIR spark/spark.h PATH_SUFFIXES simspark) + +SET(SPARK_NAMES spark spark_debug) +FIND_LIBRARY(SPARK_LIBRARY NAMES ${SPARK_NAMES} PATH_SUFFIXES simspark ) +GET_FILENAME_COMPONENT(SPARK_LIB_DIR ${SPARK_LIBRARY} PATH) + +# handle the QUIETLY and REQUIRED arguments and set SPARK_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SPARK DEFAULT_MSG SPARK_LIBRARY + SPARK_INCLUDE_DIR) + +IF(SPARK_FOUND) + SET( SPARK_LIBRARIES ${SPARK_LIBRARY} ) +ELSE(SPARK_FOUND) + SET( SPARK_LIBRARIES ) +ENDIF(SPARK_FOUND) + +MARK_AS_ADVANCED( SPARK_LIBRARY SPARK_INCLUDE_DIR ) + +# Salt section +IF (SALT_INCLUDE_DIR) + # Already in cache, be silent + SET(SALT_FIND_QUIETLY TRUE) +ENDIF (SALT_INCLUDE_DIR) + +FIND_PATH(SALT_INCLUDE_DIR salt/salt.h PATH_SUFFIXES simspark) + +SET(SALT_NAMES salt salt_debug) +FIND_LIBRARY(SALT_LIBRARY NAMES ${SALT_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set SALT_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SALT DEFAULT_MSG SALT_LIBRARY + SALT_INCLUDE_DIR) + +IF(SALT_FOUND) + SET( SALT_LIBRARIES ${SALT_LIBRARY} ) +ELSE(SALT_FOUND) + SET( SALT_LIBRARIES ) +ENDIF(SALT_FOUND) + +MARK_AS_ADVANCED( SALT_LIBRARY SALT_INCLUDE_DIR ) + +# Zeitgeist section +IF (ZEITGEIST_INCLUDE_DIR) + # Already in cache, be silent + SET(ZEITGEIST_FIND_QUIETLY TRUE) +ENDIF (ZEITGEIST_INCLUDE_DIR) + +FIND_PATH(ZEITGEIST_INCLUDE_DIR zeitgeist/zeitgeist.h PATH_SUFFIXES simspark) + +SET(ZEITGEIST_NAMES zeitgeist zeitgeist_debug) +FIND_LIBRARY(ZEITGEIST_LIBRARY NAMES ${ZEITGEIST_NAMES} PATH_SUFFIXES simspark) + +# handle the QUIETLY and REQUIRED arguments and set ZEITGEIST_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZEITGEIST DEFAULT_MSG ZEITGEIST_LIBRARY + ZEITGEIST_INCLUDE_DIR) + +IF(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ${ZEITGEIST_LIBRARY} ) +ELSE(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ) +ENDIF(ZEITGEIST_FOUND) + +MARK_AS_ADVANCED( ZEITGEIST_LIBRARY ZEITGEIST_INCLUDE_DIR ) + +# Oxygen section +IF (OXYGEN_INCLUDE_DIR) + # Already in cache, be silent + SET(OXYGEN_FIND_QUIETLY TRUE) +ENDIF (OXYGEN_INCLUDE_DIR) + +FIND_PATH(OXYGEN_INCLUDE_DIR oxygen/oxygen.h PATH_SUFFIXES simspark) + +SET(OXYGEN_NAMES oxygen oxygen_debug) +FIND_LIBRARY(OXYGEN_LIBRARY NAMES ${OXYGEN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set OXYGEN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(OXYGEN DEFAULT_MSG OXYGEN_LIBRARY + OXYGEN_INCLUDE_DIR) + +IF(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ${OXYGEN_LIBRARY} ) +ELSE(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ) +ENDIF(OXYGEN_FOUND) + +MARK_AS_ADVANCED( OXYGEN_LIBRARY OXYGEN_INCLUDE_DIR ) + +# Kerosin section +IF (KEROSIN_INCLUDE_DIR) + # Already in cache, be silent + SET(KEROSIN_FIND_QUIETLY TRUE) +ENDIF (KEROSIN_INCLUDE_DIR) + +FIND_PATH(KEROSIN_INCLUDE_DIR kerosin/kerosin.h PATH_SUFFIXES simspark) + +SET(KEROSIN_NAMES kerosin kerosin_debug) +FIND_LIBRARY(KEROSIN_LIBRARY NAMES ${KEROSIN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set KEROSIN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(KEROSIN DEFAULT_MSG KEROSIN_LIBRARY + KEROSIN_INCLUDE_DIR) + +IF(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ${KEROSIN_LIBRARY} ) +ELSE(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ) +ENDIF(KEROSIN_FOUND) + +MARK_AS_ADVANCED( KEROSIN_LIBRARY KEROSIN_INCLUDE_DIR ) Added: trunk/simspark-utilities/data/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/data/CMakeLists.txt (rev 0) +++ trunk/simspark-utilities/data/CMakeLists.txt 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,5 @@ +########### install files ############### + +install(DIRECTORY rsg ./ + DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME} + PATTERN ".svn" EXCLUDE) Property changes on: trunk/simspark-utilities/data/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/data/bindings.rb =================================================================== --- trunk/simspark-utilities/data/bindings.rb (rev 0) +++ trunk/simspark-utilities/data/bindings.rb 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,30 @@ +# +# bindings.rb sets up a mapping from input constants used by the +# inputserver to application defined command constants. +# +inputServer = get('/sys/server/input'); + +if (inputServer == nil) + print "(bindings.rb) no InputServer present\n"; +else + print "(bindings.rb) setting up bindings\n"; + + inputServer.bindCommand('axist', Command.Timer); + inputServer.bindCommand('axisx', Command.MouseX); + inputServer.bindCommand('axisy', Command.MouseY); + inputServer.bindCommand('mouse_left', Command.Mouselook); + inputServer.bindCommand('mouse_right',Command.Up); + inputServer.bindCommand('pagedown', Command.Down); + inputServer.bindCommand('kp_minus', Command.Down); + inputServer.bindCommand('kp_plus',Command.Up); + inputServer.bindCommand('pageup', Command.Up); + inputServer.bindCommand('q', Command.Quit) + inputServer.bindCommand('a', Command.Left) + inputServer.bindCommand('left', Command.Left) + inputServer.bindCommand('d', Command.Right) + inputServer.bindCommand('right', Command.Right) + inputServer.bindCommand('w', Command.Forward) + inputServer.bindCommand('up', Command.Forward) + inputServer.bindCommand('s', Command.Backward) + inputServer.bindCommand('down', Command.Backward) +end Added: trunk/simspark-utilities/data/rsg/agent/ball.rsg =================================================================== --- trunk/simspark-utilities/data/rsg/agent/ball.rsg (rev 0) +++ trunk/simspark-utilities/data/rsg/agent/ball.rsg 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,56 @@ +; -*- mode: lisp; -*- + +(RSG 0 1) +( + (def $Radius (eval Soccer.BallRadius)) + (def $Material matOrange) + (def $Mass (eval Soccer.BallMass)) + + (nd Ball + (setLocalPos 0.0 0.0 $Radius) + (setName Ball) + + (nd StaticMesh + (load 'models/soccerball.obj') + (setScale $Radius $Radius $Radius) + ) + + (nd Body + (setName physics) + + (setSphereTotal $Mass $Radius) + (nd DragController + (setAngularDrag 0.00005) + (setLinearDrag 0.01) + ) + ) + + (nd SphereCollider + (setName geometry) + (setRadius $Radius) + + (nd RecorderHandler + (setName recorder) + ) + + (nd ContactJointHandler + (setContactBounceMode true) + (setContactBounceValue 0.8) + (setMinBounceVel 0.8) + + (setContactSlipMode true) + (setContactSlip 0.6) + + (setContactSoftERPMode true) + (setContactSoftERP 0.5) + + (setContactSoftCFMMode true) + (setContactSoftCFM 0.05) + ) + ) + + (nd ObjectState + (setPerceptName B) + ) + ) +) Added: trunk/simspark-utilities/data/rsg/agent/buggy.rsg =================================================================== --- trunk/simspark-utilities/data/rsg/agent/buggy.rsg (rev 0) +++ trunk/simspark-utilities/data/rsg/agent/buggy.rsg 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,105 @@ +; -*- mode: lisp; -*- + +; +; this file constructs a simple buggy, the connected agent controlls +; one joint motor +; + +(RSG 0 1) +( + ; install a perceptor to receive the current simulation time + (nd TimePerceptor) + + ; create the char chassis + (nd Transform + (setName chassis) + (setLocalPos 0 0 0.5) + (importScene rsg/boxspheres/box.rsg 1 3 0.8 10 matRed) + + (nd Transform + (setLocalPos 0 1.3 0.55) + (nd Box + (setMaterial matBlue) + (setExtents 1 0.1 0.3) + ) + ) + ) + + ; install the left back tire, this tire is used to accelerate + (nd Transform + (setName leftBack) + (setLocalPos -0.5 -1.5 0) + (importScene rsg/boxspheres/sphere.rsg 0.4 2 matWhite) + (nd Transform + (setLocalRotation 0 180 0) + + ; install the joint + (nd Hinge2Joint + (attach ../../sphereBody ../../../chassis/boxBody) + (setAnchor 0 0 0) + + ; enable the joint motor + (setMaxMotorForce 1 4000) + + ; install a perceptor to measure the tire movement + (nd Hinge2Perceptor + (setName lb) + ) + + ; install an effector to control the joint motor + (nd Hinge2Effector) + ) + + ; add some boxes to visualize the tire spin + (nd Box + (setExtents 1 0.1 0.1) + (setMaterial matBlue) + ) + + (nd Box + (setExtents 0.1 1 0.1) + (setMaterial matRed) + ) + + (nd Box + (setExtents 0.1 0.1 1) + (setMaterial matYellow) + ) + ) + ) + + ; install remaining passive wheels + + (nd Transform + (setName leftFront) + (setLocalPos -0.5 +1.5 0) + (importScene rsg/boxspheres/sphere.rsg 0.4 2 matWhite) + (nd Hinge2Joint + (attach ../sphereBody ../../chassis/boxBody) + (setAnchor 0 0 0) + ) + ) + + (nd Transform + (setName rightBack) + (setLocalPos 0.5 -1.5 0) + (importScene rsg/boxspheres/sphere.rsg 0.4 2 matWhite) + (nd Transform + (setLocalRotation 0 180 0) + (nd Hinge2Joint + (attach ../../sphereBody ../../../chassis/boxBody) + (setAnchor 0 0 0) + ) + ) + ) + + (nd Transform + (setName rightFront) + (setLocalPos 0.5 +1.5 0) + (importScene rsg/boxspheres/sphere.rsg 0.4 2 matWhite) + (nd Hinge2Joint + (attach ../sphereBody ../../chassis/boxBody) + (setAnchor 0 0 0) + ) + ) +) \ No newline at end of file Added: trunk/simspark-utilities/data/rsg/agent/leggedsphere.rsg =================================================================== --- trunk/simspark-utilities/data/rsg/agent/leggedsphere.rsg (rev 0) +++ trunk/simspark-utilities/data/rsg/agent/leggedsphere.rsg 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,183 @@ +; -*- mode: lisp; -*- + +; +; sphere with two legs (5DOF/leg) +; + +(RSG 0 1) +( + ; create the sphere + (nd Transform + (setName body) + (setLocalPos 0 4 3) + (importScene rsg/boxspheres/sphere.rsg 1.25 0.75 matRed) + ) + + ; attach left thigh + (nd Transform + (setName leftthigh) + (setLocalPos 1.25 4 2.25) + (importScene rsg/boxspheres/box.rsg 0.5 0.5 1.0 1.0 matGrey) + + ; install the joint to connect to the body + (nd UniversalJoint + (attach ../boxBody ../../body/sphereBody) + (setAnchor 0 0 0) + (setAxis1 1.0 0.0 0.0) ; move around the x-axis + (setAxis2 0.0 1.0 0.0) ; move around the y-axis + + ; enable the joint motors + (setMaxMotorForce 0 100) + (setMaxMotorForce 1 100) + + ; install a perceptor + (nd UniversalJointPerceptor + (setName lefthip) + ) + + ; install an effector to control the joint motors + (nd UniversalJointEffector + (setName lhe) + ) + ) + ) + + ; attach left shank + (nd Transform + (setName leftshank) + (setLocalPos 1.25 4 1) + (importScene rsg/boxspheres/box.rsg 0.5 0.5 1.0 1.0 matGrey) + + ; install the joint to connect to the body + (nd HingeJoint + (attach ../boxBody ../../leftthigh/boxBody) + (setAnchor 0 0 0) + (setAxis 0) ; move around the x-axis + + ; enable the joint motor + (setMaxMotorForce 0 100) + + ; install a perceptor + (nd HingePerceptor + (setName leftknee) + ) + + ; install an effector to control the joint motor + (nd HingeEffector + (setName lke) + ) + ) + ) + + ; attach left foot + (nd Transform + (setName leftfoot) + (setLocalPos 1.25 4 0.125) + (importScene rsg/boxspheres/box.rsg 1.0 1.25 0.25 1.0 matGrey) + + ; install the joint to connect to the body + (nd UniversalJoint + (attach ../boxBody ../../leftshank/boxBody) + (setAnchor 0 0 0) + (setAxis1 1.0 0.0 0.0) ; move around the x-axis + (setAxis2 0.0 1.0 0.0) ; move around the y-axis + + ; enable the joint motors + (setMaxMotorForce 0 100) + (setMaxMotorForce 1 100) + + ; install a perceptor + (nd UniversalJointPerceptor + (setName leftankle) + ) + + ; install an effector to control the joint motors + (nd UniversalJointEffector + (setName lae) + ) + ) + ) + + ; attach right thigh + (nd Transform + (setName rightthigh) + (setLocalPos -1.25 4 2.25) + (importScene rsg/boxspheres/box.rsg 0.5 0.5 1.0 1.0 matGrey) + (nd UniversalJoint + (attach ../boxBody ../../body/sphereBody) + (setAnchor 0 0 0) + (setAxis1 1.0 0.0 0.0) ; move around the x-axis + (setAxis2 0.0 1.0 0.0) ; move around the y-axis + + ; enable the joint motors + (setMaxMotorForce 0 100) + (setMaxMotorForce 1 100) + + ; install a perceptor + (nd UniversalJointPerceptor + (setName righthip) + ) + + ; install an effector to control the joint motors + (nd UniversalJointEffector + (setName rhe) + ) + ) + ) + + ; attach right shank + (nd Transform + (setName rightshank) + (setLocalPos -1.25 4 1) + (importScene rsg/boxspheres/box.rsg 0.5 0.5 1.0 1.0 matGrey) + + ; install the joint to connect to the body + (nd HingeJoint + (attach ../boxBody ../../rightthigh/boxBody) + (setAnchor 0 0 0) + (setAxis 0) ; move around the x-axis + + ; enable the joint motor + (setMaxMotorForce 0 100) + + ; install a perceptor + (nd HingePerceptor + (setName rightknee) + ) + + ; install an effector to control the joint motor + (nd HingeEffector + (setName rke) + ) + ) + ) + + ; attach right foot + (nd Transform + (setName rightfoot) + (setLocalPos -1.25 4 0.125) + (importScene rsg/boxspheres/box.rsg 1.0 1.25 0.25 1.0 matGrey) + + ; install the joint to connect to the body + (nd UniversalJoint + (attach ../boxBody ../../rightshank/boxBody) + (setAnchor 0 0 0) + (setAxis1 1.0 0.0 0.0) ; move around the x-axis + (setAxis2 0.0 1.0 0.0) ; move around the y-axis + + ; enable the joint motors + (setMaxMotorForce 0 100) + (setMaxMotorForce 1 100) + + ; install a perceptor + (nd UniversalJointPerceptor + (setName rightankle) + ) + + ; install an effector to control the joint motors + (nd UniversalJointEffector + (setName rae) + ) + ) + ) +) Added: trunk/simspark-utilities/data/rsg/agent/samplesim.rsg =================================================================== --- trunk/simspark-utilities/data/rsg/agent/samplesim.rsg (rev 0) +++ trunk/simspark-utilities/data/rsg/agent/samplesim.rsg 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,20 @@ +; -*- mode: lisp; -*- + +(RSG 0 1) +( +; add lights + (nd Transform + (setLocalPos -10 10 10) + (nd Light + (setDiffuse 1.0 1.0 1.0 1.0) + (setSpecular 0.1 0.1 0.1 1.0) + (setAmbient 0.5 0.5 0.5 1.0) + ) + ) + +; create the arena +(nd Transform + (setLocalPos 0 0 -2) + (importScene rsg/boxspheres/arena.rsg) + ) +) \ No newline at end of file Added: trunk/simspark-utilities/gendot/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/gendot/CMakeLists.txt (rev 0) +++ trunk/simspark-utilities/gendot/CMakeLists.txt 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,18 @@ +########### next target ############### + +set(gendot_SRCS + main.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(gendot ${gendot_SRCS}) + +target_link_libraries(gendot ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) +set_target_properties(gendot PROPERTIES INSTALL_RPATH "${RPATH_DIRECTORIES}") + +add_custom_target(zeitgeist.ps dot -Tps zeitgeist.dot -o zeitgeist.ps) +add_custom_target(zeitgeist.gif dot -Tgif zeitgeist.dot -o zeitgeist.gif) +add_custom_target(zeitgeist.dot ./gendot) Property changes on: trunk/simspark-utilities/gendot/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/gendot/gendot.rb =================================================================== --- trunk/simspark-utilities/gendot/gendot.rb (rev 0) +++ trunk/simspark-utilities/gendot/gendot.rb 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,13 @@ +# import any additional plugins you want to include into the graph +importBundle "soccer" +importBundle "collisionperceptor" +# importBundle "filesystemrar" +importBundle "filesystemstd" +# importBundle "filesystemzip" +importBundle "forceeffector" +importBundle "inputsdl" +importBundle "monitortest" +importBundle "perfectvisionperceptor" +importBundle "sexpparser" +# importBundle "soundsystembass" +# importBundle "soundsystemfmod" Added: trunk/simspark-utilities/gendot/include.dot =================================================================== --- trunk/simspark-utilities/gendot/include.dot (rev 0) +++ trunk/simspark-utilities/gendot/include.dot 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,8 @@ +# include.dot: include file for the gendot tool +# +size ="7.5,10"; +ratio = "1.01"; +rotate ="90"; + + edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",color="black",labelfontsize=10]; + node [fontname="Helvetica",fontsize=8,shape=box,height=0.2,width=0.4]; Added: trunk/simspark-utilities/gendot/main.cpp =================================================================== --- trunk/simspark-utilities/gendot/main.cpp (rev 0) +++ trunk/simspark-utilities/gendot/main.cpp 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,177 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + + this file is part of rcssserver3D + Fri May 9 2003 + Copyright (C) 2002,2003 Koblenz University + Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group + $Id: main.cpp,v 1.3 2004/04/09 21:06:31 fruit Exp $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ +#include <zeitgeist/zeitgeist.h> +#include <oxygen/oxygen.h> + +#ifdef HAVE_KEROSIN_H +#include <kerosin/kerosin.h> +#endif + +#include <iostream> +#include <fstream> + +using namespace boost; +using namespace oxygen; +using namespace salt; +using namespace std; +using namespace zeitgeist; + +std::string outFile = "zeitgeist.dot"; +std::string inFile = "include.dot"; + +void +printHelp() +{ + cout << "\nusage: gendot [options]" << endl; + cout << "\noptions:" << endl; + cout << " -o\t name of the outfile, default zeitgeist.dot" << endl; + cout << " -i\t name of the dot include file, default include.dot" << endl; + cout << " -h\t print this help message" << endl; + cout << endl; + cout << "gendot generates a graphviz dot file showing the zeitgeist " << endl; + cout << "class hierarchy, including all classes that are visible at runtime. " << endl; + cout << "You can add additional classes using 'importbundle <bundle>'" << endl; + cout << "in the 'gendot.rb' file. To view the output as an ps-file invoke dot" << endl; + cout << "with 'dot -Tps zeitgeist.dot -o zeitgeist.ps'" << endl; + cout << "\n"; +} + +void +processInput(int argc, char* argv[]) +{ + for( int i = 0; i < argc; i++) + { + if( strcmp( argv[i], "-o" ) == 0 ) + { + if( i+1 < argc) + { + outFile = argv[i+1]; + ++i; + } + } + if( strcmp( argv[i], "-i" ) == 0 ) + { + if( i+1 < argc) + { + inFile = argv[i+1]; + ++i; + } + } + else if + ( + ( strcmp( argv[i], "--help" ) == 0 ) || + ( strcmp( argv[i], "-h" ) == 0 ) + ) + { + printHelp(); + exit(0); + } + } +} + +void +printGreeting() +{ + cout << "zeitgeist gendot version 0.1" << endl + << "Universit\xE4t Koblenz." << endl + << "Copyright (C) 2004, " + << "The RoboCup Soccer Server Maintenance Group." << endl; +} + +int +main(int argc, char* argv[]) +{ + printGreeting(); + processInput(argc,argv); + + Zeitgeist zg("." PACKAGE_NAME); + oxygen::Oxygen kOxygen(zg); +#ifdef HAVE_KEROSIN_H + kerosin::Kerosin kerosin(zg); +#endif + + // require any additional classes in the gendot.rb + zg.GetCore()->GetScriptServer()->Run("gendot.rb"); + + shared_ptr<Leaf> classRoot = zg.GetCore()->Get("/classes"); + if (classRoot.get() == 0) + { + cout << "ERROR: unable to get the class root node" << endl; + return 1; + } + + ofstream out(outFile.c_str()); + cout << "writing to " << outFile << endl; + out << "digraph G {" << endl; + + // import the include file + ifstream header("include.dot"); + + while (! header.eof()) + { + static char buffer[4095]; + header.getline(buffer, sizeof(buffer)); + out << buffer << endl; + } + + + // list all classes + Leaf::TLeafList classes; + classRoot->ListChildrenSupportingClass<Class>(classes,true); + + for ( + Leaf::TLeafList::iterator iter = classes.begin(); + iter != classes.end(); + ++iter + ) + { + string name = (*iter)->GetFullPath(); + + // remove '/classes/' prefix + name.erase(name.begin(),name.begin()+9); + + cout << "class " << name << endl; + + shared_ptr<Class> theClass = shared_dynamic_cast<Class>(*iter); + if (theClass.get() == 0) + { + continue; + } + + const Class::TStringList& baseClasses = theClass->GetBaseClasses(); + + out << "\"" << name << "\""; + + for ( + Class::TStringList::const_iterator baseIter = baseClasses.begin(); + baseIter != baseClasses.end(); + ++baseIter + ) + { + out << " -> \"" << (*baseIter) << "\""; + } + + out << ";" << endl; + } + + out << "}" << endl; +} Property changes on: trunk/simspark-utilities/gendot/main.cpp ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/monitorspark/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/monitorspark/CMakeLists.txt (rev 0) +++ trunk/simspark-utilities/monitorspark/CMakeLists.txt 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,22 @@ +########### next target ############### +set(monitorspark_SRCS + main.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(monitorspark ${monitorspark_SRCS}) + +target_link_libraries(monitorspark ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) + +set_target_properties(monitorspark PROPERTIES + INSTALL_RPATH "${RPATH_DIRECTORIES}") + +install(TARGETS monitorspark DESTINATION ${BINDIR}) + + +########### install files ############### + +install(FILES monitorspark.rb DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) Property changes on: trunk/simspark-utilities/monitorspark/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/monitorspark/main.cpp =================================================================== --- trunk/simspark-utilities/monitorspark/main.cpp (rev 0) +++ trunk/simspark-utilities/monitorspark/main.cpp 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,153 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + this file is part of rcssserver3D + Fri May 9 2003 + Copyright (C) 2003 Koblenz University + $Id: main.cpp,v 1.7 2008/05/30 07:54:51 yxu Exp $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include <spark/spark.h> +#include <zeitgeist/zeitgeist.h> +#include <oxygen/simulationserver/simulationserver.h> +#include <kerosin/renderserver/rendercontrol.h> +#include <kerosin/inputserver/inputcontrol.h> + +using namespace spark; +using namespace kerosin; +using namespace oxygen; +using namespace zeitgeist; +using namespace salt; +using namespace std; +using namespace boost; + +class MonitorSpark : public Spark +{ +public: + MonitorSpark(const std::string& relPathPrefix) : + Spark(relPathPrefix) + {}; + + /** called once after Spark finished it's init */ + virtual bool InitApp(int argc, char** argv); + + /** print command line options */ + void PrintHelp(); + + /** print a greeting */ + void PrintGreeting(); + + /** process command line options */ + bool ProcessCmdLine(int argc, char* argv[]); +}; + +void MonitorSpark::PrintGreeting() +{ + GetLog()->Normal() + << "monitorspark, 0.1\n" + << "Koblenz University.\n" + << "Copyright (C) 2004, " + << "The RoboCup Soccer Server Maintenance Group.\n" + << "\nType '--help' for further information\n\n"; +} + +void MonitorSpark::PrintHelp() +{ + GetLog()->Normal() + << "\nusage: monitorspark [options]\n" + << "\noptions:\n" + << " --help\t print this message.\n" + << " --logfile\t logfilename\t plays the log file.\n" + << "\n"; +} + +bool MonitorSpark::ProcessCmdLine(int argc, char* argv[]) +{ + for( int i = 0; i < argc; i++) + { + if( strcmp( argv[i], "--help" ) == 0 ) + { + PrintHelp(); + return false; + } + else if( strcmp( argv[i], "--logfile" ) == 0 && (i+1 == argc) ) + { + PrintHelp(); + return false; + } + } + + return true; +} + +bool MonitorSpark::InitApp(int argc, char** argv) +{ + GetSimulationServer()->SetSimStep(0.02); + PrintGreeting(); + + // process command line + if (! ProcessCmdLine(argc, argv)) + { + return false; + } + + // run initialization scripts + + if(argc == 3 && strcmp( argv[1], "--logfile" ) == 0) + { + GetScriptServer()->Eval("$logPlayerMode = true"); + + char fileStr[80]; + strcpy(fileStr, "$logPlayerFile = \""); + strcat(fileStr, argv[2]); + strcat(fileStr, "\""); + GetScriptServer()->Eval(fileStr); + } + + GetScriptServer()->Run("monitorspark.rb"); + + // tell the inputControl node the loaction of our camera + shared_ptr<InputControl> inputCtr = GetInputControl(); + if (inputCtr.get() != 0) + { + inputCtr->SetFPSController("/usr/scene/camera/physics/controller"); + } + + return true; +} + +int main(int argc, char** argv) +{ + // the spark app framework instance + MonitorSpark spark("../../"); + + if (! spark.Init(argc, argv)) + { + return 1; + } + + spark.GetSimulationServer()->Run(argc,argv); + + shared_ptr<RenderControl> renderCtr = spark.GetRenderControl(); + if (renderCtr.get() != 0) + { + spark.GetLog()->Normal() + << "Average FPS: " + << renderCtr->GetFramesRendered() / + spark.GetSimulationServer()->GetTime() + << "\n"; + } + + return 0; +} Property changes on: trunk/simspark-utilities/monitorspark/main.cpp ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/monitorspark/monitorspark.rb =================================================================== --- trunk/simspark-utilities/monitorspark/monitorspark.rb (rev 0) +++ trunk/simspark-utilities/monitorspark/monitorspark.rb 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,46 @@ +# +# monitorspark.rb +# + +sparkSetupRendering() +sparkSetupInput() + +if ($logPlayerMode == true) + sparkSetupMonitorLogPlayer() +else + sparkSetupMonitor() +end + +# let spark create a default camera +sparkAddFPSCamera( + $scenePath+'camera', + x = -5, + y = -40, + z = 2, + vAngle = 10.0, + hAngle = 10.0, + maxSpeed = 15.0, + accel = 400.0, + drag = 4, + addCollider = false, + colliderRadius = 2.0 + ) + +# setup default input bindings +run "bindings.rb" + +# setup default materials common to all simulations +run "scripts/materials.rb" + +# source soccersim-monitor.rb to build a soccer monitor +run "soccersim-monitor.rb" + +# +# uncomment for logging setup (see spark.rb for reference) +# + +sparkResetLogging() +sparkLogAllToCerr() +# sparkLogAllToFile('./spark.txt') +# sparkLogDebugToCerr() + Added: trunk/simspark-utilities/sampleagent/CMakeLists.txt =================================================================== --- trunk/simspark-utilities/sampleagent/CMakeLists.txt (rev 0) +++ trunk/simspark-utilities/sampleagent/CMakeLists.txt 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,21 @@ +########### next target ############### + +set(sampleagent_SRCS + main.cpp + behavior.h + carbehavior.cpp + carbehavior.h + leggedspherebehavior.h + leggedspherebehavior.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${Boost_INCLUDE_DIR}) +add_executable(sampleagent ${sampleagent_SRCS}) + +target_link_libraries(sampleagent ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) + +set_target_properties(sampleagent PROPERTIES + INSTALL_RPATH "${RPATH_DIRECTORIES}") + +install(TARGETS sampleagent DESTINATION ${BINDIR}) Property changes on: trunk/simspark-utilities/sampleagent/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/sampleagent/behavior.h =================================================================== --- trunk/simspark-utilities/sampleagent/behavior.h (rev 0) +++ trunk/simspark-utilities/sampleagent/behavior.h 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,37 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + this file is part of rcssserver3D + Fri May 9 2003 + Copyright (C) 2003 Koblenz University + $Id: behavior.h,v 1.1 2004/05/07 12:23:19 rollmark Exp $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ +#ifndef BEHAVIOR_H +#define BEHAVIOR_H + +#include <string> + +class Behavior +{ +public: + /** called once when the initially connected to the server */ + virtual std::string Init() = 0; + + /** called for every message received from the server; should + return an action string + */ + virtual std::string Think(const std::string& message) = 0; +}; + +#endif // BEHAVIOR_H Property changes on: trunk/simspark-utilities/sampleagent/behavior.h ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/simspark-utilities/sampleagent/carbehavior.cpp =================================================================== --- trunk/simspark-utilities/sampleagent/carbehavior.cpp (rev 0) +++ trunk/simspark-utilities/sampleagent/carbehavior.cpp 2009-01-22 17:15:41 UTC (rev 33) @@ -0,0 +1,54 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + this file is part of rcssserver3D + Fri May 9 2003 + Copyright (C) 2003 Koblenz University + $Id: carbehavior.cpp,v 1.2 2008/03/27 21:11:53 rollmark Exp $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ +#include "carbehavior.h" +#include <iostream> +#include <sstream> + +using namespace std; + +CarBehavior::CarBehavior() +{ +} + +string CarBehavior::Init() +{ + // use the scene effector to build the agent + return "(scene rsg/agent/buggy.rsg)"; +} + +string CarBehavior::Think(const std::string& message) +{ + // demo: just drive forward and backward... + + static int n = 0; + static float velocity = 100; + + ++n; + if (n > 900) + { + velocity *= -1; + n = 0; + } + + stringstream ss; + ss << "(hinge2 " << velocity << ")"; + + return ss.str(); +} Property changes on: trunk/simspar... [truncated message content] |
From: <he...@us...> - 2009-01-22 17:01:43
|
Revision: 32 http://simspark.svn.sourceforge.net/simspark/?rev=32&view=rev Author: hedayat Date: 2009-01-22 17:01:36 +0000 (Thu, 22 Jan 2009) Log Message: ----------- Add cmake support to rsgedit Modified Paths: -------------- trunk/rsgedit/configure.ac trunk/rsgedit/src/simspark.cpp Added Paths: ----------- trunk/rsgedit/CMakeLists.txt trunk/rsgedit/cmake/ trunk/rsgedit/cmake/FindSpark.cmake trunk/rsgedit/res/CMakeLists.txt trunk/rsgedit/rsgedit_config.h.cmake trunk/rsgedit/src/CMakeLists.txt trunk/rsgedit/wxutil/CMakeLists.txt Added: trunk/rsgedit/CMakeLists.txt =================================================================== --- trunk/rsgedit/CMakeLists.txt (rev 0) +++ trunk/rsgedit/CMakeLists.txt 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1,66 @@ +cmake_minimum_required(VERSION 2.6) + +project(rsgedit CXX C) +set(PACKAGE_VERSION "0.1") + +########## check for headerfiles/libraries ########## +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) +find_package(Spark REQUIRED) +find_package(wxWidgets REQUIRED gl base core adv) + +########## add extra flags ########## +set(CMAKE_BUILD_TYPE Release CACHE STRING "Release or Debug build type") +add_definitions(-DHAVE_CONFIG_H) +include_directories(${CMAKE_BINARY_DIR}) +if (UNIX) + set(CMAKE_CXX_FLAGS "-Wno-deprecated") + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") + set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") +endif (UNIX) + +set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") +set(LIBDIR "lib" CACHE PATH "The directory to install libraries into.") +set(DATADIR "share" CACHE PATH "The directory to install data files into.") +set(INCLUDEDIR "include" CACHE PATH "The directory to install includes into.") +set(RPATH_DIRECTORIES ${SPARK_LIB_DIR} + "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/${CMAKE_PROJECT_NAME}") +set(CMAKE_SHARED_MODULE_PREFIX "") + +mark_as_advanced(BINDIR LIBDIR DATADIR INCLUDEDIR) + +########## generate configuration file ########## +if (APPLE) + # TODO: it probably doesn't work on Mac OSX. Please fix it! + set(BUNDLE_PATH ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}) +elseif (UNIX) + set(BUNDLE_PATH ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}) +else (APPLE) + set(BUNDLE_PATH .) +endif (APPLE) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rsgedit_config.h.cmake + ${CMAKE_CURRENT_BINARY_DIR}/rsgedit_config.h) + +########## add subdirectories ############ +add_subdirectory(wxutil) +add_subdirectory(src) +add_subdirectory(res) + + +########### install files ############### + +install(FILES doc/rsgedit.txt AUTHORS ChangeLog COPYING NEWS README TODO + DESTINATION ${DATADIR}/doc/${CMAKE_PROJECT_NAME}) +install(FILES ${CMAKE_BINARY_DIR}/rsgedit_config.h + DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) + +########### CPack section ############# +set(CPACK_SOURCE_GENERATOR TGZ) +set(CPACK_SOURCE_IGNORE_FILES + /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE + /rpm.am /msi.am) +set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) +set(CPACK_SOURCE_PACKAGE_FILE_NAME + ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) + +include(CPack) Property changes on: trunk/rsgedit/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rsgedit/cmake/FindSpark.cmake =================================================================== --- trunk/rsgedit/cmake/FindSpark.cmake (rev 0) +++ trunk/rsgedit/cmake/FindSpark.cmake 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1,145 @@ +# - Find Spark +# Find the native Spark includes and libraries +# +# SPARK_INCLUDE_DIR - where to find spark include files +# SPARK_LIB_DIR - where to find spark libraries +# SPARK_LIBRARIES - List of libraries when using spark. +# SPARK_FOUND - True if spark found. +# SALT_INCLUDE_DIR - where to find salt include files +# SALT_LIBRARIES - List of libraries when using salt. +# SALT_FOUND - True if salt found. +# ZEITGEIST_INCLUDE_DIR - where to find zeitgeist include files +# ZEITGEIST_LIBRARIES - List of libraries when using zeitgeist. +# ZEITGEIST_FOUND - True if zeitgeist found. +# OXYGEN_INCLUDE_DIR - where to find oxygen include files +# OXYGEN_LIBRARIES - List of libraries when using oxygen. +# OXYGEN_FOUND - True if oxygen found. +# KEROSIN_INCLUDE_DIR - where to find kerosin include files +# KEROSIN_LIBRARIES - List of libraries when using kerosin. +# KEROSIN_FOUND - True if kerosin found. + +# Spark section +IF (SPARK_INCLUDE_DIR) + # Already in cache, be silent + SET(SPARK_FIND_QUIETLY TRUE) +ENDIF (SPARK_INCLUDE_DIR) + +FIND_PATH(SPARK_INCLUDE_DIR spark/spark.h PATH_SUFFIXES simspark) + +SET(SPARK_NAMES spark spark_debug) +FIND_LIBRARY(SPARK_LIBRARY NAMES ${SPARK_NAMES} PATH_SUFFIXES simspark ) +GET_FILENAME_COMPONENT(SPARK_LIB_DIR ${SPARK_LIBRARY} PATH) + +# handle the QUIETLY and REQUIRED arguments and set SPARK_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SPARK DEFAULT_MSG SPARK_LIBRARY + SPARK_INCLUDE_DIR) + +IF(SPARK_FOUND) + SET( SPARK_LIBRARIES ${SPARK_LIBRARY} ) +ELSE(SPARK_FOUND) + SET( SPARK_LIBRARIES ) +ENDIF(SPARK_FOUND) + +MARK_AS_ADVANCED( SPARK_LIBRARY SPARK_INCLUDE_DIR ) + +# Salt section +IF (SALT_INCLUDE_DIR) + # Already in cache, be silent + SET(SALT_FIND_QUIETLY TRUE) +ENDIF (SALT_INCLUDE_DIR) + +FIND_PATH(SALT_INCLUDE_DIR salt/salt.h PATH_SUFFIXES simspark) + +SET(SALT_NAMES salt salt_debug) +FIND_LIBRARY(SALT_LIBRARY NAMES ${SALT_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set SALT_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SALT DEFAULT_MSG SALT_LIBRARY + SALT_INCLUDE_DIR) + +IF(SALT_FOUND) + SET( SALT_LIBRARIES ${SALT_LIBRARY} ) +ELSE(SALT_FOUND) + SET( SALT_LIBRARIES ) +ENDIF(SALT_FOUND) + +MARK_AS_ADVANCED( SALT_LIBRARY SALT_INCLUDE_DIR ) + +# Zeitgeist section +IF (ZEITGEIST_INCLUDE_DIR) + # Already in cache, be silent + SET(ZEITGEIST_FIND_QUIETLY TRUE) +ENDIF (ZEITGEIST_INCLUDE_DIR) + +FIND_PATH(ZEITGEIST_INCLUDE_DIR zeitgeist/zeitgeist.h PATH_SUFFIXES simspark) + +SET(ZEITGEIST_NAMES zeitgeist zeitgeist_debug) +FIND_LIBRARY(ZEITGEIST_LIBRARY NAMES ${ZEITGEIST_NAMES} PATH_SUFFIXES simspark) + +# handle the QUIETLY and REQUIRED arguments and set ZEITGEIST_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZEITGEIST DEFAULT_MSG ZEITGEIST_LIBRARY + ZEITGEIST_INCLUDE_DIR) + +IF(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ${ZEITGEIST_LIBRARY} ) +ELSE(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ) +ENDIF(ZEITGEIST_FOUND) + +MARK_AS_ADVANCED( ZEITGEIST_LIBRARY ZEITGEIST_INCLUDE_DIR ) + +# Oxygen section +IF (OXYGEN_INCLUDE_DIR) + # Already in cache, be silent + SET(OXYGEN_FIND_QUIETLY TRUE) +ENDIF (OXYGEN_INCLUDE_DIR) + +FIND_PATH(OXYGEN_INCLUDE_DIR oxygen/oxygen.h PATH_SUFFIXES simspark) + +SET(OXYGEN_NAMES oxygen oxygen_debug) +FIND_LIBRARY(OXYGEN_LIBRARY NAMES ${OXYGEN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set OXYGEN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(OXYGEN DEFAULT_MSG OXYGEN_LIBRARY + OXYGEN_INCLUDE_DIR) + +IF(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ${OXYGEN_LIBRARY} ) +ELSE(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ) +ENDIF(OXYGEN_FOUND) + +MARK_AS_ADVANCED( OXYGEN_LIBRARY OXYGEN_INCLUDE_DIR ) + +# Kerosin section +IF (KEROSIN_INCLUDE_DIR) + # Already in cache, be silent + SET(KEROSIN_FIND_QUIETLY TRUE) +ENDIF (KEROSIN_INCLUDE_DIR) + +FIND_PATH(KEROSIN_INCLUDE_DIR kerosin/kerosin.h PATH_SUFFIXES simspark) + +SET(KEROSIN_NAMES kerosin kerosin_debug) +FIND_LIBRARY(KEROSIN_LIBRARY NAMES ${KEROSIN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set KEROSIN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(KEROSIN DEFAULT_MSG KEROSIN_LIBRARY + KEROSIN_INCLUDE_DIR) + +IF(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ${KEROSIN_LIBRARY} ) +ELSE(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ) +ENDIF(KEROSIN_FOUND) + +MARK_AS_ADVANCED( KEROSIN_LIBRARY KEROSIN_INCLUDE_DIR ) Modified: trunk/rsgedit/configure.ac =================================================================== --- trunk/rsgedit/configure.ac 2009-01-22 16:55:58 UTC (rev 31) +++ trunk/rsgedit/configure.ac 2009-01-22 17:01:36 UTC (rev 32) @@ -40,6 +40,8 @@ AC_CHECK_HEADERS([backward/hash_map hash_map],break, AC_MSG_NOTICE(['hash_map' will be substituted by 'map'. If you need hash_map install stlport])) +AC_DEFINE_UNQUOTED(RSGEDIT_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE Added: trunk/rsgedit/res/CMakeLists.txt =================================================================== --- trunk/rsgedit/res/CMakeLists.txt (rev 0) +++ trunk/rsgedit/res/CMakeLists.txt 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1,4 @@ +########### install files ############### +# Should we install these files?! +#install(DIRECTORY ./ DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME} +# FILES_MATCHING PATTERN "*.xpm" PATTERN ".svn" EXCLUDE) Property changes on: trunk/rsgedit/res/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rsgedit/rsgedit_config.h.cmake =================================================================== --- trunk/rsgedit/rsgedit_config.h.cmake (rev 0) +++ trunk/rsgedit/rsgedit_config.h.cmake 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1 @@ +#define RSGEDIT_BUNDLE_PATH "${BUNDLE_PATH}" \ No newline at end of file Added: trunk/rsgedit/src/CMakeLists.txt =================================================================== --- trunk/rsgedit/src/CMakeLists.txt (rev 0) +++ trunk/rsgedit/src/CMakeLists.txt 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1,61 @@ +########### next target ############### +set(rsgedit_SRCS + aboutDlg.h + aboutDlg.cpp + inputwx.h + inputwx.cpp + platform.h + platform.cpp + mainframe.h + mainframe.cpp + propertylist.h + propertylist.cpp + sparkcontextevent.h + sparkcontextevent.cpp + sparkglrender.h + sparkglrender.cpp + agentframe.h + agentframe.cpp + kinematicframe.h + kinematicframe.cpp + property.h + property.cpp + simspark.h + simspark.cpp + sparkedit.h + sparkedit.cpp + sparktree.h + sparktree.cpp + constants.h + constants.cpp + main.h + main.cpp + propertyframe.h + propertyframe.cpp + sparkcontext.h + sparkcontext.cpp + sparkglcanvas.h + sparkglcanvas.cpp +) + +add_definitions(${wxWidgets_DEFINITIONS}) +include_directories(${CMAKE_SOURCE_DIR}/wxutil/include + ${CMAKE_SOURCE_DIR} + ${wxWidgets_INCLUDE_DIRS} ${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(rsgedit ${rsgedit_SRCS}) + +set_target_properties(rsgedit PROPERTIES COMPILE_FLAGS ${wxWidgets_CXX_FLAGS}) +set_target_properties(rsgedit PROPERTIES INSTALL_RPATH "${RPATH_DIRECTORIES}") + +target_link_libraries(rsgedit pthread wxutil ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES} + ${wxWidgets_LIBRARIES}) + +install(TARGETS rsgedit DESTINATION ${BINDIR}) + + +########### install files ############### + +install(FILES bindings.rb rsgedit.rb DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) Property changes on: trunk/rsgedit/src/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Modified: trunk/rsgedit/src/simspark.cpp =================================================================== --- trunk/rsgedit/src/simspark.cpp 2009-01-22 16:55:58 UTC (rev 31) +++ trunk/rsgedit/src/simspark.cpp 2009-01-22 17:01:36 UTC (rev 32) @@ -20,9 +20,15 @@ #include "simspark.h" #include <zeitgeist/scriptserver/scriptserver.h> #include <zeitgeist/logserver/logserver.h> +#include <zeitgeist/fileserver/fileserver.h> #include <oxygen/sceneserver/scene.h> #include <oxygen/simulationserver/simulationserver.h> +#ifdef HAVE_CONFIG_H +#undef PACKAGE_NAME +#include <rsgedit_config.h> +#endif + using namespace std; using namespace boost; using namespace zeitgeist; @@ -45,6 +51,8 @@ bool SimSpark::InitApp(int argc, char** argv) { + GetCore()->GetFileServer()->AddResourceLocation(RSGEDIT_BUNDLE_PATH); + // process command line if (! ProcessCmdLine(argc, argv)) { Added: trunk/rsgedit/wxutil/CMakeLists.txt =================================================================== --- trunk/rsgedit/wxutil/CMakeLists.txt (rev 0) +++ trunk/rsgedit/wxutil/CMakeLists.txt 2009-01-22 17:01:36 UTC (rev 32) @@ -0,0 +1,150 @@ +########### next target ############### +set(wxutil_LIB_HDRS + include/wx/wxscintilla.h + include/wx/wxflatnotebook/popup_dlg.h + include/wx/wxflatnotebook/singleton.h + include/wx/wxflatnotebook/wxflatnotebook.h + include/wx/wxflatnotebook/fnb_resources.h + include/wx/wxflatnotebook/renderer.h + include/wx/wxflatnotebook/smart_ptr.h + include/wx/wxflatnotebook/wxfnbdroptarget.h + src/wxscintilla/src/Accessor.h + src/wxscintilla/src/Editor.h + src/wxscintilla/src/PropSet.h + src/wxscintilla/src/StyleContext.h + src/wxscintilla/src/AutoComplete.h + src/wxscintilla/src/ExternalLexer.h + src/wxscintilla/src/RESearch.h + src/wxscintilla/src/Style.h + src/wxscintilla/src/CallTip.h + src/wxscintilla/src/Indicator.h + src/wxscintilla/src/SciLexer.h + src/wxscintilla/src/SVector.h + src/wxscintilla/src/CellBuffer.h + src/wxscintilla/src/KeyMap.h + src/wxscintilla/src/ScintillaBase.h + src/wxscintilla/src/UniConversion.h + src/wxscintilla/src/CharClassify.h + src/wxscintilla/src/KeyWords.h + src/wxscintilla/src/Scintilla.h + src/wxscintilla/src/ViewStyle.h + src/wxscintilla/src/ContractionState.h + src/wxscintilla/src/LineMarker.h + src/wxscintilla/src/ScintillaWidget.h + src/wxscintilla/src/WindowAccessor.h + src/wxscintilla/src/DocumentAccessor.h + src/wxscintilla/src/Platform.h + src/wxscintilla/src/ScintillaWX.h + src/wxscintilla/src/XPM.h + src/wxscintilla/src/Document.h + src/wxscintilla/src/PlatWX.h + src/wxscintilla/src/SString.h +) + +set(wxutil_LIB_SRCS + src/wxflatnotebook/fnb_resources.cpp + src/wxflatnotebook/popup_dlg.cpp + src/wxflatnotebook/wxFlatNotebook.cpp + src/wxflatnotebook/renderer.cpp + src/wxscintilla/src/wxscintilla.cpp + src/wxscintilla/src/PlatWX.cpp + src/wxscintilla/src/ScintillaWX.cpp + src/wxscintilla/src/AutoComplete.cxx + src/wxscintilla/src/CallTip.cxx + src/wxscintilla/src/CellBuffer.cxx + src/wxscintilla/src/CharClassify.cxx + src/wxscintilla/src/ContractionState.cxx + src/wxscintilla/src/Document.cxx + src/wxscintilla/src/DocumentAccessor.cxx + src/wxscintilla/src/Editor.cxx + src/wxscintilla/src/ExternalLexer.cxx + src/wxscintilla/src/Indicator.cxx + src/wxscintilla/src/KeyMap.cxx + src/wxscintilla/src/KeyWords.cxx + src/wxscintilla/src/LexAPDL.cxx + src/wxscintilla/src/LexAU3.cxx + src/wxscintilla/src/LexAVE.cxx + src/wxscintilla/src/LexAda.cxx + src/wxscintilla/src/LexAsm.cxx + src/wxscintilla/src/LexAsn1.cxx + src/wxscintilla/src/LexBaan.cxx + src/wxscintilla/src/LexBash.cxx + src/wxscintilla/src/LexBasic.cxx + src/wxscintilla/src/LexBullant.cxx + src/wxscintilla/src/LexCLW.cxx + src/wxscintilla/src/LexCPP.cxx + src/wxscintilla/src/LexCSS.cxx + src/wxscintilla/src/LexCaml.cxx + src/wxscintilla/src/LexConf.cxx + src/wxscintilla/src/LexCrontab.cxx + src/wxscintilla/src/LexCsound.cxx + src/wxscintilla/src/LexEScript.cxx + src/wxscintilla/src/LexEiffel.cxx + src/wxscintilla/src/LexErlang.cxx + src/wxscintilla/src/LexFlagship.cxx + src/wxscintilla/src/LexForth.cxx + src/wxscintilla/src/LexFortran.cxx + src/wxscintilla/src/LexGui4Cli.cxx + src/wxscintilla/src/LexHTML.cxx + src/wxscintilla/src/LexHaskell.cxx + src/wxscintilla/src/LexInno.cxx + src/wxscintilla/src/LexKix.cxx + src/wxscintilla/src/LexLisp.cxx + src/wxscintilla/src/LexLout.cxx + src/wxscintilla/src/LexLua.cxx + src/wxscintilla/src/LexMMIXAL.cxx + src/wxscintilla/src/LexMPT.cxx + src/wxscintilla/src/LexMSSQL.cxx + src/wxscintilla/src/LexMatlab.cxx + src/wxscintilla/src/LexMetapost.cxx + src/wxscintilla/src/LexNsis.cxx + src/wxscintilla/src/LexOpal.cxx + src/wxscintilla/src/LexOthers.cxx + src/wxscintilla/src/LexPB.cxx + src/wxscintilla/src/LexPOV.cxx + src/wxscintilla/src/LexPS.cxx + src/wxscintilla/src/LexPascal.cxx + src/wxscintilla/src/LexPerl.cxx + src/wxscintilla/src/LexPython.cxx + src/wxscintilla/src/LexRebol.cxx + src/wxscintilla/src/LexRuby.cxx + src/wxscintilla/src/LexSQL.cxx + src/wxscintilla/src/LexScriptol.cxx + src/wxscintilla/src/LexSmalltalk.cxx + src/wxscintilla/src/LexSpecman.cxx + src/wxscintilla/src/LexSpice.cxx + src/wxscintilla/src/LexTADS3.cxx + src/wxscintilla/src/LexTCL.cxx + src/wxscintilla/src/LexTeX.cxx + src/wxscintilla/src/LexVB.cxx + src/wxscintilla/src/LexVHDL.cxx + src/wxscintilla/src/LexVerilog.cxx + src/wxscintilla/src/LexYAML.cxx + src/wxscintilla/src/LineMarker.cxx + src/wxscintilla/src/PropSet.cxx + src/wxscintilla/src/RESearch.cxx + src/wxscintilla/src/ScintillaBase.cxx + src/wxscintilla/src/Style.cxx + src/wxscintilla/src/StyleContext.cxx + src/wxscintilla/src/UniConversion.cxx + src/wxscintilla/src/ViewStyle.cxx + src/wxscintilla/src/WindowAccessor.cxx + src/wxscintilla/src/XPM.cxx +) + +add_definitions(${wxWidgets_DEFINITIONS} -D __WX__ -D LINK_LEXERS -D SCI_LEXER) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include + ${wxWidgets_INCLUDE_DIRS}) +add_library(wxutil SHARED ${wxutil_LIB_SRCS} ${wxutil_LIB_HDRS}) + +target_link_libraries(wxutil) + +set_target_properties(wxutil PROPERTIES COMPILE_FLAGS ${wxWidgets_CXX_FLAGS}) +set_target_properties(wxutil PROPERTIES VERSION 4.2.0 SOVERSION 4) +install(TARGETS wxutil DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME}) + + +########### install files ############### + +install(DIRECTORY include/ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/wxutil + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) Property changes on: trunk/rsgedit/wxutil/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-22 16:56:19
|
Revision: 31 http://simspark.svn.sourceforge.net/simspark/?rev=31&view=rev Author: hedayat Date: 2009-01-22 16:55:58 +0000 (Thu, 22 Jan 2009) Log Message: ----------- Enabled documentation support for rcssserver3d Modified Paths: -------------- trunk/rcssserver3d/doc/users/CMakeLists.txt trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt trunk/rcssserver3d/simspark/CMakeLists.txt Added Paths: ----------- trunk/rcssserver3d/cmake/UseLATEX.cmake Added: trunk/rcssserver3d/cmake/UseLATEX.cmake =================================================================== --- trunk/rcssserver3d/cmake/UseLATEX.cmake (rev 0) +++ trunk/rcssserver3d/cmake/UseLATEX.cmake 2009-01-22 16:55:58 UTC (rev 31) @@ -0,0 +1,770 @@ +# File: UseLATEX.cmake +# CMAKE commands to actually use the LaTeX compiler +# Version: 1.7.0 +# Author: Kenneth Moreland (kmorel at sandia dot gov) +# +# Copyright 2004 Sandia Corporation. +# Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive +# license for use of this work by or on behalf of the +# U.S. Government. Redistribution and use in source and binary forms, with +# or without modification, are permitted provided that this Notice and any +# statement of authorship are reproduced on all copies. +# +# The following MACROS are defined: +# +# ADD_LATEX_DOCUMENT(<tex_file> +# [BIBFILES <bib_files>] +# [INPUTS <input_tex_files>] +# [IMAGE_DIRS] <image_directories> +# [IMAGES] <image_files> +# [CONFIGURE] <tex_files> +# [DEPENDS] <tex_files> +# [USE_INDEX] [USE_GLOSSARY] +# [DEFAULT_PDF] [MANGLE_TARGET_NAMES]) +# Adds targets that compile <tex_file>. The latex output is placed +# in LATEX_OUTPUT_PATH or CMAKE_CURRENT_BINARY_DIR if the former is +# not set. The latex program is picky about where files are located, +# so all input files are copied from the source directory to the +# output directory. This includes the target tex file, any tex file +# listed with the INPUTS option, the bibliography files listed with +# the BIBFILES option, and any .cls, .bst, and .clo files found in +# the current source directory. Images found in the IMAGE_DIRS +# directories or listed by IMAGES are also copied to the output +# directory and coverted to an appropriate format if necessary. Any +# tex files also listed with the CONFIGURE option are also processed +# with the CMake CONFIGURE_FILE command (with the @ONLY flag. Any +# file listed in CONFIGURE but not the target tex file or listed with +# INPUTS has no effect. DEPENDS can be used to specify generated files +# that are needed to compile the latex target. +# +# The following targets are made: +# dvi: Makes <name>.dvi +# pdf: Makes <name>.pdf using pdflatex. +# safepdf: Makes <name>.pdf using ps2pdf. If using the default +# program arguments, this will ensure all fonts are +# embedded and no lossy compression has been performed +# on images. +# ps: Makes <name>.ps +# html: Makes <name>.html +# auxclean: Deletes <name>.aux. This is sometimes necessary +# if a LaTeX error occurs and writes a bad aux file. +# +# If the argument MANGLE_TARGET_NAMES is given, then each of the +# target names above will be mangled with the <tex_file> name. This +# is to make the targets unique if ADD_LATEX_DOCUMENT is called for +# multiple documents. If the argument USE_INDEX is given, then +# commands to build an index are made. If the argument USE_GLOSSARY +# is given, then commands to build a glossary are made. +# +# History: +# +# 1.7.0 Added DEPENDS options (thanks to Theodore Papadopoulp). +# +# 1.6.1 Ported the makeglossaries command to CMake and embedded the port +# into UseLATEX.cmake. +# +# 1.6.0 Allow the use of the makeglossaries command. Thanks to Oystein +# S. Haaland for the patch. +# +# 1.5.0 Allow any type of file in the INPUTS lists, not just tex file +# (suggested by Eric Noulard). As a consequence, the ability to +# specify tex files without the .tex extension is removed. The removed +# function is of dubious value anyway. +# +# When copying input files, skip over any file that exists in the +# binary directory but does not exist in the source directory with the +# assumption that these files were added by some other mechanism. I +# find this useful when creating large documents with multiple +# chapters that I want to build separately (for speed) as I work on +# them. I use the same boilerplate as the starting point for all +# and just copy it with different configurations. This was what the +# separate ADD_LATEX_DOCUMENT method was supposed to originally be for. +# Since its external use is pretty much deprecated, I removed that +# documentation. +# +# 1.4.1 Copy .sty files along with the other class and package files. +# +# 1.4.0 Added a MANGLE_TARGET_NAMES option that will mangle the target names. +# +# Fixed problem with copying bib files that became apparent with +# CMake 2.4. +# +# 1.3.0 Added a LATEX_OUTPUT_PATH variable that allows you or the user to +# specify where the built latex documents to go. This is especially +# handy if you want to do in-source builds. +# +# Removed the ADD_LATEX_IMAGES macro and absorbed the functionality +# into ADD_LATEX_DOCUMENT. The old interface was always kind of +# clunky anyway since you had to specify the image directory in both +# places. It also made supporting LATEX_OUTPUT_PATH problematic. +# +# Added support for jpeg files. +# +# 1.2.0 Changed the configuration options yet again. Removed the NO_CONFIGURE +# Replaced it with a CONFIGURE option that lists input files for which +# configure should be run. +# +# The pdf target no longer depends on the dvi target. This allows you +# to build latex documents that require pdflatex. Also added an option +# to make the pdf target the default one. +# +# 1.1.1 Added the NO_CONFIGURE option. The @ character can be used when +# specifying table column separators. If two or more are used, then +# will incorrectly substitute them. +# +# 1.1.0 Added ability include multiple bib files. Added ability to do copy +# sub-tex files for multipart tex files. +# +# 1.0.0 If both ps and pdf type images exist, just copy the one that +# matches the current render mode. Replaced a bunch of STRING +# commands with GET_FILENAME_COMPONENT commands that were made to do +# the desired function. +# +# 0.4.0 First version posted to CMake Wiki. +# + +############################################################################# +# Find the location of myself while originally executing. If you do this +# inside of a macro, it will recode where the macro was invoked. +############################################################################# +SET(LATEX_USE_LATEX_LOCATION ${CMAKE_CURRENT_LIST_FILE} + CACHE INTERNAL "Location of UseLATEX.cmake file." FORCE + ) + +############################################################################# +# Generic helper macros +############################################################################# + +# Helpful list macros. +MACRO(LATEX_CAR var) + SET(${var} ${ARGV1}) +ENDMACRO(LATEX_CAR) +MACRO(LATEX_CDR var junk) + SET(${var} ${ARGN}) +ENDMACRO(LATEX_CDR) + +MACRO(LATEX_LIST_CONTAINS var value) + SET(${var}) + FOREACH (value2 ${ARGN}) + IF (${value} STREQUAL ${value2}) + SET(${var} TRUE) + ENDIF (${value} STREQUAL ${value2}) + ENDFOREACH (value2) +ENDMACRO(LATEX_LIST_CONTAINS) + +# Parse macro arguments. +MACRO(LATEX_PARSE_ARGUMENTS prefix arg_names option_names) + SET(DEFAULT_ARGS) + FOREACH(arg_name ${arg_names}) + SET(${prefix}_${arg_name}) + ENDFOREACH(arg_name) + FOREACH(option ${option_names}) + SET(${prefix}_${option}) + ENDFOREACH(option) + + SET(current_arg_name DEFAULT_ARGS) + SET(current_arg_list) + FOREACH(arg ${ARGN}) + LATEX_LIST_CONTAINS(is_arg_name ${arg} ${arg_names}) + IF (is_arg_name) + SET(${prefix}_${current_arg_name} ${current_arg_list}) + SET(current_arg_name ${arg}) + SET(current_arg_list) + ELSE (is_arg_name) + LATEX_LIST_CONTAINS(is_option ${arg} ${option_names}) + IF (is_option) + SET(${prefix}_${arg} TRUE) + ELSE (is_option) + SET(current_arg_list ${current_arg_list} ${arg}) + ENDIF (is_option) + ENDIF (is_arg_name) + ENDFOREACH(arg) + SET(${prefix}_${current_arg_name} ${current_arg_list}) +ENDMACRO(LATEX_PARSE_ARGUMENTS) + +# Match the contents of a file to a regular expression. +MACRO(LATEX_FILE_MATCH variable filename regexp default) + # The FILE STRINGS command would be a bit better, but it's not supported on + # older versions of CMake. + FILE(READ ${filename} file_contents) + STRING(REGEX MATCHALL "${regexp}" + ${variable} ${file_contents} + ) + IF (NOT ${variable}) + SET(${variable} "${default}") + ENDIF (NOT ${variable}) +ENDMACRO(LATEX_FILE_MATCH) + +############################################################################# +# Macros that perform processing during a LaTeX build. +############################################################################# +MACRO(LATEX_MAKEGLOSSARIES) + MESSAGE("**************************** In makeglossaries") + IF (NOT LATEX_TARGET) + MESSAGE(SEND_ERROR "Need to define LATEX_TARGET") + ENDIF (NOT LATEX_TARGET) + + IF (NOT MAKEINDEX_COMPILER) + MESSAGE(SEND_ERROR "Need to define MAKEINDEX_COMPILER") + ENDIF (NOT MAKEINDEX_COMPILER) + + SET(aux_file ${LATEX_TARGET}.aux) + + IF (NOT EXISTS ${aux_file}) + MESSAGE(SEND_ERROR "${aux_file} does not exist. Run latex on your target file.") + ENDIF (NOT EXISTS ${aux_file}) + + LATEX_FILE_MATCH(newglossary_lines ${aux_file} + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "@newglossary{main}{glg}{gls}{glo}" + ) + + LATEX_FILE_MATCH(istfile_line ${aux_file} + "@istfilename[ \t]*{([^}]*)}" + "@istfilename{${LATEX_TARGET}.ist}" + ) + STRING(REGEX REPLACE "@istfilename[ \t]*{([^}]*)}" "\\1" + istfile ${istfile_line} + ) + + FOREACH(newglossary ${newglossary_lines}) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "\\1" glossary_name ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\2" glossary_log ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\3" glossary_out ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\4" glossary_in ${newglossary} + ) + MESSAGE("${MAKEINDEX_COMPILER} ${MAKEGLOSSARIES_COMPILER_FLAGS} -s ${istfile} -t ${glossary_log} -o ${glossary_out} ${glossary_in}") + EXEC_PROGRAM(${MAKEINDEX_COMPILER} ARGS ${MAKEGLOSSARIES_COMPILER_FLAGS} + -s ${istfile} -t ${glossary_log} -o ${glossary_out} ${glossary_in} + ) + ENDFOREACH(newglossary) +ENDMACRO(LATEX_MAKEGLOSSARIES) + +############################################################################# +# Helper macros for establishing LaTeX build. +############################################################################# + +MACRO(LATEX_NEEDIT VAR NAME) + IF (NOT ${VAR}) + MESSAGE(SEND_ERROR "I need the ${NAME} command.") + ENDIF(NOT ${VAR}) +ENDMACRO(LATEX_NEEDIT) + +MACRO(LATEX_WANTIT VAR NAME) + IF (NOT ${VAR}) + MESSAGE(STATUS "I could not find the ${NAME} command.") + ENDIF(NOT ${VAR}) +ENDMACRO(LATEX_WANTIT) + +MACRO(LATEX_SETUP_VARIABLES) + SET(LATEX_OUTPUT_PATH "${LATEX_OUTPUT_PATH}" + CACHE PATH "If non empty, specifies the location to place LaTeX output." + ) + + FIND_PACKAGE(LATEX) + + MARK_AS_ADVANCED(CLEAR + LATEX_COMPILER + PDFLATEX_COMPILER + BIBTEX_COMPILER + MAKEINDEX_COMPILER + DVIPS_CONVERTER + PS2PDF_CONVERTER + LATEX2HTML_CONVERTER + ) + + LATEX_NEEDIT(LATEX_COMPILER latex) + LATEX_WANTIT(PDFLATEX_COMPILER pdflatex) + LATEX_NEEDIT(BIBTEX_COMPILER bibtex) + LATEX_NEEDIT(MAKEINDEX_COMPILER makeindex) + LATEX_WANTIT(DVIPS_CONVERTER dvips) + LATEX_WANTIT(PS2PDF_CONVERTER ps2pdf) + LATEX_WANTIT(LATEX2HTML_CONVERTER latex2html) + + SET(LATEX_COMPILER_FLAGS "-interaction=nonstopmode" + CACHE STRING "Flags passed to latex.") + SET(PDFLATEX_COMPILER_FLAGS ${LATEX_COMPILER_FLAGS} + CACHE STRING "Flags passed to pdflatex.") + SET(BIBTEX_COMPILER_FLAGS "" + CACHE STRING "Flags passed to bibtex.") + SET(MAKEINDEX_COMPILER_FLAGS "" + CACHE STRING "Flags passed to makeindex.") + SET(MAKEGLOSSARIES_COMPILER_FLAGS "" + CACHE STRING "Flags passed to makeglossaries.") + SET(DVIPS_CONVERTER_FLAGS "-Ppdf -G0 -t letter" + CACHE STRING "Flags passed to dvips.") + SET(PS2PDF_CONVERTER_FLAGS "-dMaxSubsetPct=100 -dCompatibilityLevel=1.3 -dSubsetFonts=true -dEmbedAllFonts=true -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode -dMonoImageFilter=/FlateEncode" + CACHE STRING "Flags passed to ps2pdf.") + SET(LATEX2HTML_CONVERTER_FLAGS "" + CACHE STRING "Flags passed to latex2html.") + MARK_AS_ADVANCED( + LATEX_COMPILER_FLAGS + PDFLATEX_COMPILER_FLAGS + BIBTEX_COMPILER_FLAGS + MAKEINDEX_COMPILER_FLAGS + MAKEGLOSSARIES_COMPILER_FLAGS + DVIPS_CONVERTER_FLAGS + PS2PDF_CONVERTER_FLAGS + LATEX2HTML_CONVERTER_FLAGS + ) + SEPARATE_ARGUMENTS(LATEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(PDFLATEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(BIBTEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(MAKEINDEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(MAKEGLOSSARIES_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(DVIPS_CONVERTER_FLAGS) + SEPARATE_ARGUMENTS(PS2PDF_CONVERTER_FLAGS) + SEPARATE_ARGUMENTS(LATEX2HTML_CONVERTER_FLAGS) + + FIND_PROGRAM(IMAGEMAGICK_CONVERT convert + DOC "The convert program that comes with ImageMagick (available at http://www.imagemagick.org)." + ) + IF (NOT IMAGEMAGICK_CONVERT) + MESSAGE(SEND_ERROR "Could not find convert program. Please download ImageMagick from http://www.imagemagick.org and install.") + ENDIF (NOT IMAGEMAGICK_CONVERT) + + OPTION(LATEX_SMALL_IMAGES + "If on, the raster images will be converted to 1/6 the original size. This is because papers usually require 600 dpi images whereas most monitors only require at most 96 dpi. Thus, smaller images make smaller files for web distributation and can make it faster to read dvi files." + OFF) + IF (LATEX_SMALL_IMAGES) + SET(LATEX_RASTER_SCALE 16) + SET(LATEX_OPPOSITE_RASTER_SCALE 100) + ELSE (LATEX_SMALL_IMAGES) + SET(LATEX_RASTER_SCALE 100) + SET(LATEX_OPPOSITE_RASTER_SCALE 16) + ENDIF (LATEX_SMALL_IMAGES) + + # Just holds extensions for known image types. They should all be lower case. + SET(LATEX_DVI_VECTOR_IMAGE_EXTENSIONS .eps) + SET(LATEX_DVI_RASTER_IMAGE_EXTENSIONS) + SET(LATEX_DVI_IMAGE_EXTENSIONS + ${LATEX_DVI_VECTOR_IMAGE_EXTENSIONS} ${LATEX_DVI_RASTER_IMAGE_EXTENSIONS}) + SET(LATEX_PDF_VECTOR_IMAGE_EXTENSIONS .pdf) + SET(LATEX_PDF_RASTER_IMAGE_EXTENSIONS .png .jpeg .jpg) + SET(LATEX_PDF_IMAGE_EXTENSIONS + ${LATEX_PDF_VECTOR_IMAGE_EXTENSIONS} ${LATEX_PDF_RASTER_IMAGE_EXTENSIONS}) + SET(LATEX_IMAGE_EXTENSIONS + ${LATEX_DVI_IMAGE_EXTENSIONS} ${LATEX_PDF_IMAGE_EXTENSIONS}) +ENDMACRO(LATEX_SETUP_VARIABLES) + +MACRO(LATEX_GET_OUTPUT_PATH var) + SET(${var}) + IF (LATEX_OUTPUT_PATH) + IF ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + MESSAGE(SEND_ERROR "You cannot set LATEX_OUTPUT_PATH to the same directory that contains LaTeX input files.") + ELSE ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + SET(${var} "${LATEX_OUTPUT_PATH}") + ENDIF ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + ELSE (LATEX_OUTPUT_PATH) + IF ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + MESSAGE(SEND_ERROR "LaTeX files must be built out of source or you must set LATEX_OUTPUT_PATH.") + ELSE ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + SET(${var} "${CMAKE_CURRENT_BINARY_DIR}") + ENDIF ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + ENDIF (LATEX_OUTPUT_PATH) +ENDMACRO(LATEX_GET_OUTPUT_PATH) + +# Makes custom commands to convert a file to a particular type. +MACRO(LATEX_CONVERT_IMAGE output_files input_file output_extension convert_flags + output_extensions other_files) + SET(input_dir ${CMAKE_CURRENT_SOURCE_DIR}) + LATEX_GET_OUTPUT_PATH(output_dir) + + GET_FILENAME_COMPONENT(extension "${input_file}" EXT) + + STRING(REGEX REPLACE "\\.[^.]*\$" ${output_extension} output_file + "${input_file}") + + LATEX_LIST_CONTAINS(is_type ${extension} ${output_extensions}) + IF (is_type) + IF (convert_flags) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${output_file} + COMMAND ${IMAGEMAGICK_CONVERT} + ARGS ${input_dir}/${input_file} ${convert_flags} + ${output_dir}/${output_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${output_file}) + ELSE (convert_flags) + # As a shortcut, we can just copy the file. + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${input_file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${input_dir}/${input_file} ${output_dir}/${input_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${input_file}) + ENDIF (convert_flags) + ELSE (is_type) + SET(do_convert TRUE) + # Check to see if there is another input file of the appropriate type. + FOREACH(valid_extension ${output_extensions}) + STRING(REGEX REPLACE "\\.[^.]*\$" ${output_extension} try_file + "${input_file}") + LATEX_LIST_CONTAINS(has_native_file "${try_file}" ${other_files}) + IF (has_native_file) + SET(do_convert FALSE) + ENDIF (has_native_file) + ENDFOREACH(valid_extension) + + # If we still need to convert, do it. + IF (do_convert) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${output_file} + COMMAND ${IMAGEMAGICK_CONVERT} + ARGS ${input_dir}/${input_file} ${convert_flags} + ${output_dir}/${output_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${output_file}) + ENDIF (do_convert) + ENDIF (is_type) +ENDMACRO(LATEX_CONVERT_IMAGE) + +# Adds custom commands to process the given files for dvi and pdf builds. +# Adds the output files to the given variables (does not replace). +MACRO(LATEX_PROCESS_IMAGES dvi_outputs pdf_outputs) + LATEX_GET_OUTPUT_PATH(output_dir) + FOREACH(file ${ARGN}) + IF (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + GET_FILENAME_COMPONENT(extension "${file}" EXT) + SET(convert_flags) + + # Check to see if we need to downsample the image. + LATEX_LIST_CONTAINS(is_raster extension + ${LATEX_DVI_RASTER_IMAGE_EXTENSIONS} + ${LATEX_PDF_RASTER_IMAGE_EXTENSIONS}) + IF (LATEX_SMALL_IMAGES) + IF (is_raster) + SET(convert_flags -resize ${LATEX_RASTER_SCALE}%) + ENDIF (is_raster) + ENDIF (LATEX_SMALL_IMAGES) + + # Make sure the output directory exists. + GET_FILENAME_COMPONENT(path "${output_dir}/${file}" PATH) + MAKE_DIRECTORY("${path}") + + # Do conversions for dvi. + LATEX_CONVERT_IMAGE(${dvi_outputs} "${file}" .eps "${convert_flags}" + "${LATEX_DVI_IMAGE_EXTENSIONS}" "${ARGN}") + + # Do conversions for pdf. + IF (is_raster) + LATEX_CONVERT_IMAGE(${pdf_outputs} "${file}" .png "${convert_flags}" + "${LATEX_PDF_IMAGE_EXTENSIONS}" "${ARGN}") + ELSE (is_raster) + LATEX_CONVERT_IMAGE(${pdf_outputs} "${file}" .pdf "${convert_flags}" + "${LATEX_PDF_IMAGE_EXTENSIONS}" "${ARGN}") + ENDIF (is_raster) + ELSE (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + MESSAGE("Could not find file \"${CMAKE_CURRENT_SOURCE_DIR}/${file}\"") + ENDIF (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + ENDFOREACH(file) +ENDMACRO(LATEX_PROCESS_IMAGES) + +MACRO(ADD_LATEX_IMAGES) + MESSAGE("The ADD_LATEX_IMAGES macro is deprecated. Image directories are specified with LATEX_ADD_DOCUMENT.") +ENDMACRO(ADD_LATEX_IMAGES) + +MACRO(LATEX_COPY_GLOBBED_FILES pattern dest) + FILE(GLOB file_list ${pattern}) + FOREACH(in_file ${file_list}) + GET_FILENAME_COMPONENT(out_file ${in_file} NAME) + CONFIGURE_FILE(${in_file} ${dest}/${out_file} COPYONLY) + ENDFOREACH(in_file) +ENDMACRO(LATEX_COPY_GLOBBED_FILES) + +MACRO(LATEX_COPY_INPUT_FILE file) + LATEX_GET_OUTPUT_PATH(output_dir) + + IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) + GET_FILENAME_COMPONENT(path ${file} PATH) + FILE(MAKE_DIRECTORY ${output_dir}/${path}) + + LATEX_LIST_CONTAINS(use_config ${file} ${LATEX_CONFIGURE}) + IF (use_config) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file} + ${output_dir}/${file} + @ONLY + ) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${file} + COMMAND ${CMAKE_COMMAND} + ARGS ${CMAKE_BINARY_DIR} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file} + ) + ELSE (use_config) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${output_dir}/${file} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file} + ) + ENDIF (use_config) + ELSE (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) + IF (EXISTS ${output_dir}/${file}) + # Special case: output exists but input does not. Assume that it was + # created elsewhere and skip the input file copy. + ELSE (EXISTS ${output_dir}/${file}) + MESSAGE("Could not find input file ${CMAKE_CURRENT_SOURCE_DIR}/${file}") + ENDIF (EXISTS ${output_dir}/${file}) + ENDIF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) +ENDMACRO(LATEX_COPY_INPUT_FILE) + +############################################################################# +# Commands provided by the UseLATEX.cmake "package" +############################################################################# + +MACRO(LATEX_USAGE command message) + MESSAGE(SEND_ERROR + "${message}\nUsage: ${command}(<tex_file>\n [BIBFILES <bib_file> <bib_file> ...]\n [INPUTS <tex_file> <tex_file> ...]\n [IMAGE_DIRS <directory1> <directory2> ...]\n [IMAGES <image_file1> <image_file2>\n [CONFIGURE <tex_file> <tex_file> ...]\n [DEPENDS <tex_file> <tex_file> ...]\n [USE_INDEX] [USE_GLOSSARY] [DEFAULT_PDF] [MANGLE_TARGET_NAMES])" + ) +ENDMACRO(LATEX_USAGE command message) + +# Parses arguments to ADD_LATEX_DOCUMENT and ADD_LATEX_TARGETS and sets the +# variables LATEX_TARGET, LATEX_IMAGE_DIR, LATEX_BIBFILES, LATEX_DEPENDS, and +# LATEX_INPUTS. +MACRO(PARSE_ADD_LATEX_ARGUMENTS command) + LATEX_PARSE_ARGUMENTS( + LATEX + "BIBFILES;INPUTS;IMAGE_DIRS;IMAGES;CONFIGURE;DEPENDS" + "USE_INDEX;USE_GLOSSARY;USE_GLOSSARIES;DEFAULT_PDF;MANGLE_TARGET_NAMES" + ${ARGN} + ) + + # The first argument is the target latex file. + IF (LATEX_DEFAULT_ARGS) + LATEX_CAR(LATEX_MAIN_INPUT ${LATEX_DEFAULT_ARGS}) + LATEX_CDR(LATEX_DEFAULT_ARGS ${LATEX_DEFAULT_ARGS}) + GET_FILENAME_COMPONENT(LATEX_TARGET ${LATEX_MAIN_INPUT} NAME_WE) + ELSE (LATEX_DEFAULT_ARGS) + LATEX_USAGE(${command} "No tex file target given to ${command}.") + ENDIF (LATEX_DEFAULT_ARGS) + + IF (LATEX_DEFAULT_ARGS) + LATEX_USAGE(${command} "Invalid or depricated arguments: ${LATEX_DEFAULT_ARGS}") + ENDIF (LATEX_DEFAULT_ARGS) + + # Backward compatibility between 1.6.0 and 1.6.1. + IF (LATEX_USE_GLOSSARIES) + SET(LATEX_USE_GLOSSARY TRUE) + ENDIF (LATEX_USE_GLOSSARIES) +ENDMACRO(PARSE_ADD_LATEX_ARGUMENTS) + +MACRO(ADD_LATEX_TARGETS) + LATEX_GET_OUTPUT_PATH(output_dir) + PARSE_ADD_LATEX_ARGUMENTS(ADD_LATEX_TARGETS ${ARGV}) + + # Set up target names. + IF (LATEX_MANGLE_TARGET_NAMES) + SET(dvi_target ${LATEX_TARGET}_dvi) + SET(pdf_target ${LATEX_TARGET}_pdf) + SET(ps_target ${LATEX_TARGET}_ps) + SET(safepdf_target ${LATEX_TARGET}_safepdf) + SET(html_target ${LATEX_TARGET}_html) + SET(auxclean_target ${LATEX_TARGET}_auxclean) + ELSE (LATEX_MANGLE_TARGET_NAMES) + SET(dvi_target dvi) + SET(pdf_target pdf) + SET(ps_target ps) + SET(safepdf_target safepdf) + SET(html_target html) + SET(auxclean_target auxclean) + ENDIF (LATEX_MANGLE_TARGET_NAMES) + + # For each directory in LATEX_IMAGE_DIRS, glob all the image files and + # place them in LATEX_IMAGES. + FOREACH(dir ${LATEX_IMAGE_DIRS}) + FOREACH(extension ${LATEX_IMAGE_EXTENSIONS}) + FILE(GLOB files ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*${extension}) + FOREACH(file ${files}) + GET_FILENAME_COMPONENT(filename ${file} NAME) + SET(LATEX_IMAGES ${LATEX_IMAGES} ${dir}/${filename}) + ENDFOREACH(file) + ENDFOREACH(extension) + ENDFOREACH(dir) + + SET(dvi_images) + SET(pdf_images) + LATEX_PROCESS_IMAGES(dvi_images pdf_images ${LATEX_IMAGES}) + + SET(make_dvi_command + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + SET(make_pdf_command + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + + SET(make_dvi_depends ${LATEX_DEPENDS} ${dvi_images}) + SET(make_pdf_depends ${LATEX_DEPENDS} ${pdf_images}) + FOREACH(input ${LATEX_MAIN_INPUT} ${LATEX_INPUTS}) + SET(make_dvi_depends ${make_dvi_depends} ${output_dir}/${input}) + SET(make_pdf_depends ${make_pdf_depends} ${output_dir}/${input}) + ENDFOREACH(input) + + IF (LATEX_BIBFILES) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${BIBTEX_COMPILER} ${BIBTEX_COMPILER_FLAGS} ${LATEX_TARGET}) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${BIBTEX_COMPILER} ${BIBTEX_COMPILER_FLAGS} ${LATEX_TARGET}) + FOREACH (bibfile ${LATEX_BIBFILES}) + SET(make_dvi_depends ${make_dvi_depends} ${output_dir}/${bibfile}) + SET(make_pdf_depends ${make_pdf_depends} ${output_dir}/${bibfile}) + ENDFOREACH (bibfile ${LATEX_BIBFILES}) + ENDIF (LATEX_BIBFILES) + + IF (LATEX_USE_INDEX) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${MAKEINDEX_COMPILER} ${MAKEINDEX_COMPILER_FLAGS} ${LATEX_TARGET}.idx) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${MAKEINDEX_COMPILER} ${MAKEINDEX_COMPILER_FLAGS} ${LATEX_TARGET}.idx) + ENDIF (LATEX_USE_INDEX) + + IF (LATEX_USE_GLOSSARY) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${CMAKE_COMMAND} + -D LATEX_BUILD_COMMAND=makeglossaries + -D LATEX_TARGET=${LATEX_TARGET} + -D MAKEINDEX_COMPILER=${MAKEINDEX_COMPILER} + -D MAKEGLOSSARIES_COMPILER_FLAGS=${MAKEGLOSSARIES_COMPILER_FLAGS} + -P ${LATEX_USE_LATEX_LOCATION} + ) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${CMAKE_COMMAND} + -D LATEX_BUILD_COMMAND=makeglossaries + -D LATEX_TARGET=${LATEX_TARGET} + -D MAKEINDEX_COMPILER=${MAKEINDEX_COMPILER} + -D MAKEGLOSSARIES_COMPILER_FLAGS=${MAKEGLOSSARIES_COMPILER_FLAGS} + -P ${LATEX_USE_LATEX_LOCATION} + ) + ENDIF (LATEX_USE_GLOSSARY) + + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + + IF (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${dvi_target} ${make_dvi_command} + DEPENDS ${make_dvi_depends}) + ELSE (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${dvi_target} ALL ${make_dvi_command} + DEPENDS ${make_dvi_depends}) + ENDIF (LATEX_DEFAULT_PDF) + + IF (PDFLATEX_COMPILER) + IF (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${pdf_target} ALL ${make_pdf_command} + DEPENDS ${make_pdf_depends}) + ELSE (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} + DEPENDS ${make_pdf_depends}) + ENDIF (LATEX_DEFAULT_PDF) + ENDIF (PDFLATEX_COMPILER) + + IF (DVIPS_CONVERTER) + ADD_CUSTOM_TARGET(${ps_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${DVIPS_CONVERTER} ${DVIPS_CONVERTER_FLAGS} -o ${LATEX_TARGET}.ps ${LATEX_TARGET}.dvi + ) + ADD_DEPENDENCIES(${ps_target} ${dvi_target}) + IF (PS2PDF_CONVERTER) + ADD_CUSTOM_TARGET(${safepdf_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PS2PDF_CONVERTER} ${PS2PDF_CONVERTER_FLAGS} ${LATEX_TARGET}.ps ${LATEX_TARGET}.pdf + ) + ADD_DEPENDENCIES(${safepdf_target} ${ps_target}) + ENDIF (PS2PDF_CONVERTER) + ENDIF (DVIPS_CONVERTER) + + IF (LATEX2HTML_CONVERTER) + ADD_CUSTOM_TARGET(${html_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX2HTML_CONVERTER} ${LATEX2HTML_CONVERTER_FLAGS} ${LATEX_MAIN_INPUT} + ) + ADD_DEPENDENCIES(${html_target} ${LATEX_MAIN_INPUT} ${LATEX_INPUTS}) + ENDIF (LATEX2HTML_CONVERTER) + + ADD_CUSTOM_TARGET(${auxclean_target} + ${CMAKE_COMMAND} -E remove ${output_dir}/${LATEX_TARGET}.aux ${output_dir}/${LATEX_TARGET}.idx ${output_dir}/${LATEX_TARGET}.ind + ) +ENDMACRO(ADD_LATEX_TARGETS) + +MACRO(ADD_LATEX_DOCUMENT) + LATEX_GET_OUTPUT_PATH(output_dir) + IF (output_dir) + PARSE_ADD_LATEX_ARGUMENTS(ADD_LATEX_DOCUMENT ${ARGV}) + + LATEX_COPY_INPUT_FILE(${LATEX_MAIN_INPUT}) + + FOREACH (bib_file ${LATEX_BIBFILES}) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} + ${output_dir}/${bib_file} + COPYONLY) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${bib_file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} ${output_dir}/${bib_file} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} + ) + ENDFOREACH (bib_file) + + FOREACH (input ${LATEX_INPUTS}) + LATEX_COPY_INPUT_FILE(${input}) + ENDFOREACH(input) + + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.cls ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.bst ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.clo ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.sty ${output_dir}) + + ADD_LATEX_TARGETS(${ARGV}) + ENDIF (output_dir) +ENDMACRO(ADD_LATEX_DOCUMENT) + +############################################################################# +# Actually do stuff +############################################################################# + +IF (LATEX_BUILD_COMMAND) + SET(command_handled) + + IF ("${LATEX_BUILD_COMMAND}" STREQUAL makeglossaries) + LATEX_MAKEGLOSSARIES() + SET(command_handled TRUE) + ENDIF ("${LATEX_BUILD_COMMAND}" STREQUAL makeglossaries) + + IF (NOT command_handled) + MESSAGE(SEND_ERROR "Unknown command: ${LATEX_BUILD_COMMAND}") + ENDIF (NOT command_handled) + +ELSE (LATEX_BUILD_COMMAND) + # Must be part of the actual configure (included from CMakeLists.txt). + LATEX_SETUP_VARIABLES() +ENDIF (LATEX_BUILD_COMMAND) Modified: trunk/rcssserver3d/doc/users/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/doc/users/CMakeLists.txt 2009-01-22 11:21:46 UTC (rev 30) +++ trunk/rcssserver3d/doc/users/CMakeLists.txt 2009-01-22 16:55:58 UTC (rev 31) @@ -2,11 +2,11 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) if (PDFLATEX_COMPILER) -# include(../../cmake/UseLATEX.cmake) -# add_latex_document(user-manual.tex INPUTS agentspark.tex gettingstarted.tex -# robots.tex introduction.tex monitorspark.tex simspark.tex license.tex -# overview.tex simulations.tex definitions.tex resources.tex user-manual.tex -# BIBFILES references.bib IMAGE_DIRS fig DEFAULT_PDF) + include(../../cmake/UseLATEX.cmake) + add_latex_document(user-manual.tex INPUTS agentspark.tex gettingstarted.tex + robots.tex introduction.tex monitorspark.tex simspark.tex license.tex + overview.tex simulations.tex definitions.tex resources.tex user-manual.tex + BIBFILES references.bib IMAGE_DIRS fig DEFAULT_PDF) endif (PDFLATEX_COMPILER) else (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) add_custom_target(comment2 ALL echo '***' Modified: trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt 2009-01-22 11:21:46 UTC (rev 30) +++ trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt 2009-01-22 16:55:58 UTC (rev 31) @@ -21,18 +21,3 @@ install(FILES soccersim-monitor.rb rcssmonitor3d.rb soccerbindings.rb DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) - - - -#original Makefile.am contents follow: - -#LDADD = -lpthread -#if NO_RPATH -#AM_LDFLAGS = @SALT_LDFLAGS@ \ -# @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ -# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -#else -#AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ -# @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ -# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -#endif Modified: trunk/rcssserver3d/simspark/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/simspark/CMakeLists.txt 2009-01-22 11:21:46 UTC (rev 30) +++ trunk/rcssserver3d/simspark/CMakeLists.txt 2009-01-22 16:55:58 UTC (rev 31) @@ -21,17 +21,3 @@ install(FILES simspark.rb soccersim.rb naosoccersim.rb internalsoccermonitor.rb internalsoccerbindings.rb DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) - -#original Makefile.am contents follow: - -#LDADD = -lpthread -# -#if NO_RPATH -#AM_LDFLAGS = @SALT_LDFLAGS@ \ -# @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ -# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -#else -#AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ -# @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ -# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ -#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yx...@us...> - 2009-01-22 11:22:00
|
Revision: 30 http://simspark.svn.sourceforge.net/simspark/?rev=30&view=rev Author: yxu Date: 2009-01-22 11:21:46 +0000 (Thu, 22 Jan 2009) Log Message: ----------- add imageperceptor, but it can not send image to agent at present Modified Paths: -------------- trunk/spark/configure.ac trunk/spark/lib/kerosin/renderserver/baserenderserver.h trunk/spark/lib/kerosin/renderserver/renderserver.h trunk/spark/plugin/CMakeLists.txt trunk/spark/plugin/Makefile.am Added Paths: ----------- trunk/spark/plugin/imageperceptor/ trunk/spark/plugin/imageperceptor/CMakeLists.txt trunk/spark/plugin/imageperceptor/Makefile.am trunk/spark/plugin/imageperceptor/Makefile.in trunk/spark/plugin/imageperceptor/export.cpp trunk/spark/plugin/imageperceptor/imageperceptor.cpp trunk/spark/plugin/imageperceptor/imageperceptor.h trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp Modified: trunk/spark/configure.ac =================================================================== --- trunk/spark/configure.ac 2009-01-22 10:40:16 UTC (rev 29) +++ trunk/spark/configure.ac 2009-01-22 11:21:46 UTC (rev 30) @@ -170,6 +170,7 @@ plugin/openglsyswx/Makefile \ plugin/sparkmonitor/Makefile \ plugin/sparkagent/Makefile \ + plugin/imageperceptor/Makefile \ test/Makefile \ test/coretest/Makefile \ test/fonttest/Makefile \ Modified: trunk/spark/lib/kerosin/renderserver/baserenderserver.h =================================================================== --- trunk/spark/lib/kerosin/renderserver/baserenderserver.h 2009-01-22 10:40:16 UTC (rev 29) +++ trunk/spark/lib/kerosin/renderserver/baserenderserver.h 2009-01-22 11:21:46 UTC (rev 30) @@ -59,6 +59,16 @@ //! get a shot of the current frame virtual bool CopyFrame(char* /* buffer */) const { return false; } + void SetCamera( boost::shared_ptr<oxygen::Camera> c ) + { + mCamera = c; + } + + boost::shared_ptr<oxygen::Camera> GetCamera() + { + return mCamera; + } + protected: /** get the active scene node from the sceneServer */ virtual bool GetActiveScene(); @@ -81,6 +91,9 @@ /** reference to the SceneServer */ CachedPath<oxygen::SceneServer> mSceneServer; + + /** the currently selected camera */ + boost::shared_ptr<oxygen::Camera> mCamera; }; DECLARE_ABSTRACTCLASS(BaseRenderServer); Modified: trunk/spark/lib/kerosin/renderserver/renderserver.h =================================================================== --- trunk/spark/lib/kerosin/renderserver/renderserver.h 2009-01-22 10:40:16 UTC (rev 29) +++ trunk/spark/lib/kerosin/renderserver/renderserver.h 2009-01-22 11:21:46 UTC (rev 30) @@ -123,7 +123,7 @@ // protected: /** reference to the SceneServer */ - CachedPath<oxygen::SceneServer> mSceneServer; + //CachedPath<oxygen::SceneServer> mSceneServer; /** the OpenGL ambient clear color */ RGBA mAmbientColor; @@ -143,9 +143,6 @@ double mPickRange; /** the picked result node */ boost::weak_ptr<RenderNode> mPickedNode; - - /** the currently selected camera */ - boost::shared_ptr<oxygen::Camera> mCamera; }; DECLARE_CLASS(RenderServer); Modified: trunk/spark/plugin/CMakeLists.txt =================================================================== --- trunk/spark/plugin/CMakeLists.txt 2009-01-22 10:40:16 UTC (rev 29) +++ trunk/spark/plugin/CMakeLists.txt 2009-01-22 11:21:46 UTC (rev 30) @@ -18,3 +18,4 @@ add_subdirectory(soundsystemfmod) add_subdirectory(inputwx) add_subdirectory(openglsyswx) +add_subdirectory(imageperceptor) Modified: trunk/spark/plugin/Makefile.am =================================================================== --- trunk/spark/plugin/Makefile.am 2009-01-22 10:40:16 UTC (rev 29) +++ trunk/spark/plugin/Makefile.am 2009-01-22 11:21:46 UTC (rev 30) @@ -16,7 +16,8 @@ sceneeffector\ soundsystemfmod \ inputwx \ - openglsyswx + openglsyswx \ + imageperceptor # filesystemrar # soundsystembass Added: trunk/spark/plugin/imageperceptor/CMakeLists.txt =================================================================== --- trunk/spark/plugin/imageperceptor/CMakeLists.txt (rev 0) +++ trunk/spark/plugin/imageperceptor/CMakeLists.txt 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,16 @@ + +########### next target ############### + +set(imageperceptor_LIB_SRCS + export.cpp + imageperceptor.h + imageperceptor.cpp + imageperceptor_c.cpp +) + +add_library(imageperceptor MODULE ${imageperceptor_LIB_SRCS}) + +target_link_libraries(imageperceptor) + +set_target_properties(imageperceptor PROPERTIES VERSION 0.0.0 SOVERSION 0) +install(TARGETS imageperceptor DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME}) Added: trunk/spark/plugin/imageperceptor/Makefile.am =================================================================== --- trunk/spark/plugin/imageperceptor/Makefile.am (rev 0) +++ trunk/spark/plugin/imageperceptor/Makefile.am 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,12 @@ +pkglib_LTLIBRARIES = imageperceptor.la + +imageperceptor_la_SOURCES = export.cpp \ + imageperceptor.h \ + imageperceptor.cpp \ + imageperceptor_c.cpp + +# -module tells automake we're not building a library but a loadable module +# so we don't need the "lib" prefix in the module name +imageperceptor_la_LDFLAGS = -module -version-info 0:0:0 + +AM_CPPFLAGS = -I${top_srcdir}/lib @RUBY_CPPFLAGS@ Added: trunk/spark/plugin/imageperceptor/Makefile.in =================================================================== --- trunk/spark/plugin/imageperceptor/Makefile.in (rev 0) +++ trunk/spark/plugin/imageperceptor/Makefile.in 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,543 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugin/imageperceptor +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/sparkconfig.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkglibdir)" +pkglibLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(pkglib_LTLIBRARIES) +imageperceptor_la_LIBADD = +am_imageperceptor_la_OBJECTS = export.lo imageperceptor.lo \ + imageperceptor_c.lo +imageperceptor_la_OBJECTS = $(am_imageperceptor_la_OBJECTS) +imageperceptor_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(imageperceptor_la_LDFLAGS) $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/config.aux/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(imageperceptor_la_SOURCES) +DIST_SOURCES = $(imageperceptor_la_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BOOST_THREADS_LIB = @BOOST_THREADS_LIB@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEVIL = @DEVIL@ +DOXYGEN = @DOXYGEN@ +DSYMUTIL = @DSYMUTIL@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FREETYPE = @FREETYPE@ +FREETYPE_CPPFLAGS = @FREETYPE_CPPFLAGS@ +FREETYPE_LIBADD = @FREETYPE_LIBADD@ +GLDIR = @GLDIR@ +GLTARGET = @GLTARGET@ +GL_LDFLAGS = @GL_LDFLAGS@ +GL_LIBADD = @GL_LIBADD@ +GREP = @GREP@ +HAVE_DOT = @HAVE_DOT@ +IL_LDFLAGS = @IL_LDFLAGS@ +IL_LIBADD = @IL_LIBADD@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +NET_LIBS = @NET_LIBS@ +NMEDIT = @NMEDIT@ +OBJEXT = @OBJEXT@ +ODE = @ODE@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PDFLATEX = @PDFLATEX@ +PERL = @PERL@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +RUBY_CPPFLAGS = @RUBY_CPPFLAGS@ +RUBY_LDADD = @RUBY_LDADD@ +RUBY_LDFLAGS = @RUBY_LDFLAGS@ +SALT_LIBADD = @SALT_LIBADD@ +SDL = @SDL@ +SDLCONFIG = @SDLCONFIG@ +SDL_CPPFLAGS = @SDL_CPPFLAGS@ +SDL_LDFLAGS = @SDL_LDFLAGS@ +SDL_LIBADD = @SDL_LIBADD@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SPADES = @SPADES@ +STRIP = @STRIP@ +VERSION = @VERSION@ +WX_CFLAGS = @WX_CFLAGS@ +WX_CFLAGS_ONLY = @WX_CFLAGS_ONLY@ +WX_CONFIG_PATH = @WX_CONFIG_PATH@ +WX_CPPFLAGS = @WX_CPPFLAGS@ +WX_CXXFLAGS = @WX_CXXFLAGS@ +WX_CXXFLAGS_ONLY = @WX_CXXFLAGS_ONLY@ +WX_LIBS = @WX_LIBS@ +WX_LIBS_STATIC = @WX_LIBS_STATIC@ +WX_VERSION = @WX_VERSION@ +XMKMF = @XMKMF@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +bundle_support = @bundle_support@ +datadir = @datadir@ +datarootdir = @datarootdir@ +debug = @debug@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +kerosin_version = @kerosin_version@ +kerosin_version_info = @kerosin_version_info@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +oxygen_version = @oxygen_version@ +oxygen_version_info = @oxygen_version_info@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +rcssnet3D_version = @rcssnet3D_version@ +rcssnet3D_version_info = @rcssnet3D_version_info@ +salt_version = @salt_version@ +salt_version_info = @salt_version_info@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +spark_version = @spark_version@ +spark_version_info = @spark_version_info@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +zeitgeist_version = @zeitgeist_version@ +zeitgeist_version_info = @zeitgeist_version_info@ +pkglib_LTLIBRARIES = imageperceptor.la +imageperceptor_la_SOURCES = export.cpp \ + imageperceptor.h \ + imageperceptor.cpp \ + imageperceptor_c.cpp + + +# -module tells automake we're not building a library but a loadable module +# so we don't need the "lib" prefix in the module name +imageperceptor_la_LDFLAGS = -module -version-info 0:0:0 +AM_CPPFLAGS = -I${top_srcdir}/lib @RUBY_CPPFLAGS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugin/imageperceptor/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugin/imageperceptor/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" + @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ + else :; fi; \ + done + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +imageperceptor.la: $(imageperceptor_la_OBJECTS) $(imageperceptor_la_DEPENDENCIES) + $(imageperceptor_la_LINK) -rpath $(pkglibdir) $(imageperceptor_la_OBJECTS) $(imageperceptor_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/export.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imageperceptor.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imageperceptor_c.Plo@am__quote@ + +.cpp.o: +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-pkglibLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pkglibLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Added: trunk/spark/plugin/imageperceptor/export.cpp =================================================================== --- trunk/spark/plugin/imageperceptor/export.cpp (rev 0) +++ trunk/spark/plugin/imageperceptor/export.cpp 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,26 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + + this file is part of rcssserver3D + Copyright (C) 2008 RoboCup Soccer Server 3D Maintenance Group + $Id:$ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "imageperceptor.h" +#include <zeitgeist/zeitgeist.h> + +ZEITGEIST_EXPORT_BEGIN() + ZEITGEIST_EXPORT(ImagePerceptor); +ZEITGEIST_EXPORT_END() Added: trunk/spark/plugin/imageperceptor/imageperceptor.cpp =================================================================== --- trunk/spark/plugin/imageperceptor/imageperceptor.cpp (rev 0) +++ trunk/spark/plugin/imageperceptor/imageperceptor.cpp 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,210 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + + this file is part of rcssserver3D + Copyright (C) 2008 RoboCup Soccer Server 3D Maintenance Group + $Id:$ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +// #include <IL/il.h> +// #include <IL/ilu.h> +// #include <sstream> +#include <GL/gl.h> +#include "imageperceptor.h" +#include <zeitgeist/logserver/logserver.h> + +#define USE_FBO + +// using namespace kerosin; +using namespace oxygen; +using namespace boost; +using namespace zeitgeist; +using namespace salt; +using namespace std; + +ImagePerceptor::ImagePerceptor() : oxygen::Perceptor() +{ + mFramesRendered = 0; +} + +ImagePerceptor::~ImagePerceptor() +{ +} + +#define REG_GL_EXT_FUN(_ptr, _function) \ + static _ptr _function = (_ptr) mOpenGLServer->GetExtension(#_function); \ + if ( !_function ){ \ + GetLog()->Error()<<"(Image Perceptor) ERROR: can not get "#_function"\n"; \ + } + +void ImagePerceptor::OnLink() +{ + mCamera = shared_dynamic_cast<Camera>( GetCore()->New("oxygen/Camera") ); + if ( 0 != mCamera.get() ) + { + AddChildReference(mCamera); + } + else + { + GetLog()->Error() + <<"(ImagePerceptor) ERROR: can not create camera\n"; + } + + RegisterCachedPath(mRenderServer, "/sys/server/render"); + + if (mRenderServer.expired()) + { + GetLog()->Error() + << "(ImagePerceptor) ERROR: RenderServer not found\n"; + } + + RegisterCachedPath(mOpenGLServer,"/sys/server/opengl"); + + if (mOpenGLServer.expired()) + { + GetLog()->Error() + << "(ImagePerceptor) ERROR: OpenGLServer not found\n"; + } + + // create a framebuffer object + REG_GL_EXT_FUN( PFNGLGENFRAMEBUFFERSEXTPROC, glGenFramebuffersEXT ); + REG_GL_EXT_FUN( PFNGLGENRENDERBUFFERSEXTPROC, glGenRenderbuffersEXT); + + glGenFramebuffersEXT(1, &mFBOId); + glGenRenderbuffersEXT(1, &mRBOId); + glGenRenderbuffersEXT(1, &mDepthBuffer); + +} + +void ImagePerceptor::OnUnlink() +{ + REG_GL_EXT_FUN( PFNGLDELETEFRAMEBUFFERSEXTPROC, glDeleteFramebuffersEXT ); + REG_GL_EXT_FUN( PFNGLDELETERENDERBUFFERSEXTPROC, glDeleteRenderbuffersEXT ); + glDeleteFramebuffersEXT(1, &mFBOId); + glDeleteRenderbuffersEXT(1, &mRBOId); +} + +bool ImagePerceptor::Percept(boost::shared_ptr<PredicateList> predList) +{ + if ( !Render() ) + return false; + + Predicate &predicate = predList->AddPredicate(); + predicate.name = "Image"; + predicate.parameter.Clear(); + + // ParameterList &sizeElement = predicate.parameter.AddList(); + // sizeElement.AddValue(std::string("s")); + // sizeElement.AddValue(mCamera->GetViewportWidth()); + // sizeElement.AddValue(mCamera->GetViewportHeight()); + + predicate.parameter.AddValue(mData); + return true; +} + +bool ImagePerceptor::Render() +{ + if ( + (mOpenGLServer.expired()) || + (mRenderServer.expired()) + ) + { + return false; + } + + int w = mCamera->GetViewportWidth(); + int h = mCamera->GetViewportHeight(); + +#ifdef USE_FBO + REG_GL_EXT_FUN( PFNGLBINDFRAMEBUFFEREXTPROC, glBindFramebufferEXT ); + REG_GL_EXT_FUN( PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC, glFramebufferRenderbufferEXT ); + REG_GL_EXT_FUN( PFNGLRENDERBUFFERSTORAGEEXTPROC, glRenderbufferStorageEXT ); + REG_GL_EXT_FUN( PFNGLBINDRENDERBUFFEREXTPROC, glBindRenderbufferEXT); + REG_GL_EXT_FUN( PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC, glCheckFramebufferStatusEXT ); + + + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, mFBOId); + glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, mRBOId); + glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, w, h); + glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, + GL_RENDERBUFFER_EXT, mRBOId); + + glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, mDepthBuffer); + glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT, w, h); + glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, mDepthBuffer); + + + // check FBO status + GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); + if(status != GL_FRAMEBUFFER_COMPLETE_EXT){ + GetLog()->Error()<<"fbo error!\n"; + } +#endif + + // setup the camera + boost::shared_ptr<Camera> oldCamera = mRenderServer->GetCamera(); + mRenderServer->SetCamera(mCamera); + mRenderServer->Render(); + +#ifdef USE_FBO +#else + glReadBuffer(GL_BACK); +#endif + int size = 3*w*h; + if ( mData.size() != size ) + mData.resize(size); + glReadPixels(0, 0, + w, h, + GL_RGB, + GL_UNSIGNED_BYTE, + const_cast<char*>(mData.data())); + + ++mFramesRendered; +#ifdef USE_FBO + // unbind FBO + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); +#endif + mRenderServer->SetCamera(oldCamera); + + return true; +} + +void ImagePerceptor::SetViewport(unsigned int x, unsigned int y, unsigned int w, unsigned int h) +{ + if ( 0!= mCamera ){ + mCamera->SetViewport(x,y,w,h); + } +} + +void ImagePerceptor::SetFOV(float fov) +{ + if ( 0!= mCamera ){ + mCamera->SetFOV(fov); + } +} + +void ImagePerceptor::SetZNear(float zNear) +{ + if ( 0!= mCamera ){ + mCamera->SetZNear(zNear); + } +} + +void ImagePerceptor::SetZFar(float zFar) +{ + if ( 0!= mCamera ){ + mCamera->SetZFar(zFar); + } +} Added: trunk/spark/plugin/imageperceptor/imageperceptor.h =================================================================== --- trunk/spark/plugin/imageperceptor/imageperceptor.h (rev 0) +++ trunk/spark/plugin/imageperceptor/imageperceptor.h 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,73 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + + this file is part of rcssserver3D + Copyright (C) 2008 RoboCup Soccer Server 3D Maintenance Group + $Id:$ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef IMAGEPERCEPTOR_H +#define IMAGEPERCEPTOR_H + +#include <oxygen/agentaspect/perceptor.h> +#include <oxygen/sceneserver/camera.h> +#include <oxygen/sceneserver/sceneserver.h> +#include <kerosin/renderserver/baserenderserver.h> +#include <kerosin/openglserver/openglserver.h> + +class ImagePerceptor : public oxygen::Perceptor +{ +public: + ImagePerceptor(); + virtual ~ImagePerceptor(); + + //! \return true, if valid data is available and false otherwise. + bool Percept(boost::shared_ptr<oxygen::PredicateList> predList); + + bool Render(); + + virtual void OnLink(); + virtual void OnUnlink(); + + void SetViewport(unsigned int x, unsigned int y, unsigned int w, unsigned int h); + + void SetFOV(float fov); + + void SetZNear(float zNear); + + void SetZFar(float zFar); + +private: + boost::shared_ptr<oxygen::Camera> mCamera; + + /** cached reference to the RenderServer */ + CachedPath<kerosin::BaseRenderServer> mRenderServer; + + /** cached reference to the OpenGLServer */ + CachedPath<kerosin::OpenGLServer> mOpenGLServer; + + /** total frames rendered */ + int mFramesRendered; + + std::string mData; + + unsigned int mFBOId; + unsigned int mRBOId; + unsigned int mDepthBuffer; +}; + +DECLARE_CLASS(ImagePerceptor); + +#endif //IMAGEPERCEPTOR_H Added: trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp =================================================================== --- trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp (rev 0) +++ trunk/spark/plugin/imageperceptor/imageperceptor_c.cpp 2009-01-22 11:21:46 UTC (rev 30) @@ -0,0 +1,100 @@ +/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- + + this file is part of rcssserver3D + Copyright (C) 2008 RoboCup Soccer Server 3D Maintenance Group + $Id:$ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "imageperceptor.h" + +using namespace boost; +using namespace oxygen; + +FUNCTION(ImagePerceptor, setViewport) +{ + unsigned int x,y,w,h; + + if ( + (in.GetSize() != 4) || + (! in.GetValue(in[0], x) ) || + (! in.GetValue(in[1], y) ) || + (! in.GetValue(in[2], w) ) || + (! in.GetValue(in[3], h) ) + ) + { + return false; + } + + obj->SetViewport(x, y, w, h); + return true; +} + +FUNCTION(ImagePerceptor, setFOV) +{ + float fov; + + if ( + (in.GetSize() != 1) || + (! in.GetValue(in[0], fov) ) + ) + { + return false; + } + + obj->SetFOV(fov); + return true; +} + +FUNCTION(ImagePerceptor, setZNear) +{ + float zNear; + + if ( + (in.GetSize() != 1) || + (! in.GetValue(in[0], zNear) ) + ) + { + return false; + } + + obj->SetZNear(zNear); + return true; +} + +FUNCTION(ImagePerceptor, setZFar) +{ + float zFar; + + if ( + (in.GetSize() != 1) || + (! in.GetValue(in[0], zFar) ) + ) + { + return false; + } + + obj->SetZFar(zFar); + return true; +} + +void CLASS(ImagePerceptor)::DefineClass() +{ + DEFINE_BASECLASS(oxygen/Perceptor); + DEFINE_FUNCTION(setViewport); + DEFINE_FUNCTION(setFOV); + DEFINE_FUNCTION(setZNear); + DEFINE_FUNCTION(setZFar); +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yx...@us...> - 2009-01-22 10:40:22
|
Revision: 29 http://simspark.svn.sourceforge.net/simspark/?rev=29&view=rev Author: yxu Date: 2009-01-22 10:40:16 +0000 (Thu, 22 Jan 2009) Log Message: ----------- correct macro define Modified Paths: -------------- trunk/rcssserver3d/configure.ac Modified: trunk/rcssserver3d/configure.ac =================================================================== --- trunk/rcssserver3d/configure.ac 2009-01-21 20:06:44 UTC (rev 28) +++ trunk/rcssserver3d/configure.ac 2009-01-22 10:40:16 UTC (rev 29) @@ -40,7 +40,7 @@ AC_CHECK_HEADERS([backward/hash_map hash_map],break, AC_MSG_NOTICE(['hash_map' will be substituted by 'map'. If you need hash_map install stlport])) -AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,["$prefix/share/"PACKAGE_NAME],["Data dir"]) +AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-21 20:07:08
|
Revision: 28 http://simspark.svn.sourceforge.net/simspark/?rev=28&view=rev Author: hedayat Date: 2009-01-21 20:06:44 +0000 (Wed, 21 Jan 2009) Log Message: ----------- A small fix in installdir and libdir variables Modified Paths: -------------- trunk/spark/CMakeLists.txt Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) +++ trunk/spark/CMakeLists.txt 2009-01-21 20:06:44 UTC (rev 28) @@ -112,8 +112,8 @@ set(zeitgeist_version ${ZEITGEIST_VERSION}) set(oxygen_version ${OXYGEN_VERSION}) set(kerosin_version ${KEROSIN_VERSION}) -set(includedir ${INCLUDEDIR}) -set(libdir ${LIBDIR}) +set(includedir ${CMAKE_INSTALL_PREFIX}/${INCLUDEDIR}) +set(libdir ${CMAKE_INSTALL_PREFIX}/${LIBDIR}) if (CMAKE_BUILD_TYPE STREQUAL "Debug") set(debug "true") else (CMAKE_BUILD_TYPE STREQUAL "Debug") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-21 18:14:26
|
Revision: 27 http://simspark.svn.sourceforge.net/simspark/?rev=27&view=rev Author: hedayat Date: 2009-01-21 18:14:01 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Added CMake support to rcssserver3d Modified Paths: -------------- trunk/rcssserver3d/doc/Doxyfile.in Added Paths: ----------- trunk/rcssserver3d/CMakeLists.txt trunk/rcssserver3d/cmake/ trunk/rcssserver3d/cmake/FindSpark.cmake trunk/rcssserver3d/data/CMakeLists.txt trunk/rcssserver3d/doc/CMakeLists.txt trunk/rcssserver3d/doc/users/CMakeLists.txt trunk/rcssserver3d/plugin/CMakeLists.txt trunk/rcssserver3d/plugin/soccer/CMakeLists.txt trunk/rcssserver3d/plugin/soccermonitor/CMakeLists.txt trunk/rcssserver3d/rcssagent3d/CMakeLists.txt trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt trunk/rcssserver3d/rcssserver3d_config.h.cmake trunk/rcssserver3d/simspark/CMakeLists.txt Added: trunk/rcssserver3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,81 @@ +cmake_minimum_required(VERSION 2.6) + +project(rcssserver3d CXX C) +set(PACKAGE_VERSION "0.6") + +########## check for headerfiles/libraries ########## +include(CheckIncludeFile) +check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H) +check_include_file("netinet/in.h" HAVE_NETINET_IN_H) +check_include_file("arpa/inet.h" HAVE_ARPA_INET_H) + +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) +find_package(Spark REQUIRED) +find_package(Freetype REQUIRED) + +########## add extra flags ########## +set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") +add_definitions(-DHAVE_CONFIG_H) +include_directories(${CMAKE_BINARY_DIR}) +if (UNIX) + set(CMAKE_CXX_FLAGS "-Wno-deprecated") + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") + set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") +endif (UNIX) + +set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") +set(LIBDIR "lib" CACHE PATH "The directory to install libraries into.") +set(DATADIR "share" CACHE PATH "The directory to install data files into.") +set(INCLUDEDIR "include" CACHE PATH "The directory to install includes into.") +set(RPATH_DIRECTORIES ${SPARK_LIB_DIR} + "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/${CMAKE_PROJECT_NAME}") +set(CMAKE_SHARED_MODULE_PREFIX "") + +mark_as_advanced(BINDIR LIBDIR DATADIR INCLUDEDIR) + +########## generate configuration file ########## +if (APPLE) + # TODO: it probably doesn't work on Mac OSX. Please fix it! + set(BUNDLE_PATH ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}) +elseif (UNIX) + set(BUNDLE_PATH ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}) +else (APPLE) + set(BUNDLE_PATH .) +endif (APPLE) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rcssserver3d_config.h.cmake + ${CMAKE_CURRENT_BINARY_DIR}/rcssserver3d_config.h) + +########## add subdirectories ############ +add_subdirectory(data) +add_subdirectory(doc) +add_subdirectory(plugin) +add_subdirectory(rcssagent3d) +add_subdirectory(rcssmonitor3d) +add_subdirectory(simspark) + + +########### install files ############### + +install(FILES AUTHORS ChangeLog COPYING NEWS README THANKS TODO + DESTINATION ${DATADIR}/doc/${CMAKE_PROJECT_NAME}) +install(FILES ${CMAKE_BINARY_DIR}/rcssserver3d_config.h + DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) + +########### CPack section ############# +set(CPACK_SOURCE_GENERATOR TGZ) +set(CPACK_SOURCE_IGNORE_FILES + /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE + /rpm.am /msi.am) +set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) +set(CPACK_SOURCE_PACKAGE_FILE_NAME + ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) + +include(CPack) + +#original Makefile.am contents follow: + +#DISTCLEANFILES = $(top_builddir)/macosX/SDLMain.o $(top_builddir)/macosX/libSDLmain.a +#EXTRA_DIST = macosX/fwcopy macosX/mkapp macosX/plugincopy \ +# macosX/SDLMain.h macosX/SDLMain.m \ +# windows/rcssserver3d_config.h windows/simspark.iss windows/spark.ico Property changes on: trunk/rcssserver3d/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/cmake/FindSpark.cmake =================================================================== --- trunk/rcssserver3d/cmake/FindSpark.cmake (rev 0) +++ trunk/rcssserver3d/cmake/FindSpark.cmake 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,145 @@ +# - Find Spark +# Find the native Spark includes and libraries +# +# SPARK_INCLUDE_DIR - where to find spark include files +# SPARK_LIB_DIR - where to find spark libraries +# SPARK_LIBRARIES - List of libraries when using spark. +# SPARK_FOUND - True if spark found. +# SALT_INCLUDE_DIR - where to find salt include files +# SALT_LIBRARIES - List of libraries when using salt. +# SALT_FOUND - True if salt found. +# ZEITGEIST_INCLUDE_DIR - where to find zeitgeist include files +# ZEITGEIST_LIBRARIES - List of libraries when using zeitgeist. +# ZEITGEIST_FOUND - True if zeitgeist found. +# OXYGEN_INCLUDE_DIR - where to find oxygen include files +# OXYGEN_LIBRARIES - List of libraries when using oxygen. +# OXYGEN_FOUND - True if oxygen found. +# KEROSIN_INCLUDE_DIR - where to find kerosin include files +# KEROSIN_LIBRARIES - List of libraries when using kerosin. +# KEROSIN_FOUND - True if kerosin found. + +# Spark section +IF (SPARK_INCLUDE_DIR) + # Already in cache, be silent + SET(SPARK_FIND_QUIETLY TRUE) +ENDIF (SPARK_INCLUDE_DIR) + +FIND_PATH(SPARK_INCLUDE_DIR spark/spark.h PATH_SUFFIXES simspark) + +SET(SPARK_NAMES spark spark_debug) +FIND_LIBRARY(SPARK_LIBRARY NAMES ${SPARK_NAMES} PATH_SUFFIXES simspark ) +GET_FILENAME_COMPONENT(SPARK_LIB_DIR ${SPARK_LIBRARY} PATH) + +# handle the QUIETLY and REQUIRED arguments and set SPARK_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SPARK DEFAULT_MSG SPARK_LIBRARY + SPARK_INCLUDE_DIR) + +IF(SPARK_FOUND) + SET( SPARK_LIBRARIES ${SPARK_LIBRARY} ) +ELSE(SPARK_FOUND) + SET( SPARK_LIBRARIES ) +ENDIF(SPARK_FOUND) + +MARK_AS_ADVANCED( SPARK_LIBRARY SPARK_INCLUDE_DIR ) + +# Salt section +IF (SALT_INCLUDE_DIR) + # Already in cache, be silent + SET(SALT_FIND_QUIETLY TRUE) +ENDIF (SALT_INCLUDE_DIR) + +FIND_PATH(SALT_INCLUDE_DIR salt/salt.h PATH_SUFFIXES simspark) + +SET(SALT_NAMES salt salt_debug) +FIND_LIBRARY(SALT_LIBRARY NAMES ${SALT_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set SALT_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SALT DEFAULT_MSG SALT_LIBRARY + SALT_INCLUDE_DIR) + +IF(SALT_FOUND) + SET( SALT_LIBRARIES ${SALT_LIBRARY} ) +ELSE(SALT_FOUND) + SET( SALT_LIBRARIES ) +ENDIF(SALT_FOUND) + +MARK_AS_ADVANCED( SALT_LIBRARY SALT_INCLUDE_DIR ) + +# Zeitgeist section +IF (ZEITGEIST_INCLUDE_DIR) + # Already in cache, be silent + SET(ZEITGEIST_FIND_QUIETLY TRUE) +ENDIF (ZEITGEIST_INCLUDE_DIR) + +FIND_PATH(ZEITGEIST_INCLUDE_DIR zeitgeist/zeitgeist.h PATH_SUFFIXES simspark) + +SET(ZEITGEIST_NAMES zeitgeist zeitgeist_debug) +FIND_LIBRARY(ZEITGEIST_LIBRARY NAMES ${ZEITGEIST_NAMES} PATH_SUFFIXES simspark) + +# handle the QUIETLY and REQUIRED arguments and set ZEITGEIST_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZEITGEIST DEFAULT_MSG ZEITGEIST_LIBRARY + ZEITGEIST_INCLUDE_DIR) + +IF(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ${ZEITGEIST_LIBRARY} ) +ELSE(ZEITGEIST_FOUND) + SET( ZEITGEIST_LIBRARIES ) +ENDIF(ZEITGEIST_FOUND) + +MARK_AS_ADVANCED( ZEITGEIST_LIBRARY ZEITGEIST_INCLUDE_DIR ) + +# Oxygen section +IF (OXYGEN_INCLUDE_DIR) + # Already in cache, be silent + SET(OXYGEN_FIND_QUIETLY TRUE) +ENDIF (OXYGEN_INCLUDE_DIR) + +FIND_PATH(OXYGEN_INCLUDE_DIR oxygen/oxygen.h PATH_SUFFIXES simspark) + +SET(OXYGEN_NAMES oxygen oxygen_debug) +FIND_LIBRARY(OXYGEN_LIBRARY NAMES ${OXYGEN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set OXYGEN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(OXYGEN DEFAULT_MSG OXYGEN_LIBRARY + OXYGEN_INCLUDE_DIR) + +IF(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ${OXYGEN_LIBRARY} ) +ELSE(OXYGEN_FOUND) + SET( OXYGEN_LIBRARIES ) +ENDIF(OXYGEN_FOUND) + +MARK_AS_ADVANCED( OXYGEN_LIBRARY OXYGEN_INCLUDE_DIR ) + +# Kerosin section +IF (KEROSIN_INCLUDE_DIR) + # Already in cache, be silent + SET(KEROSIN_FIND_QUIETLY TRUE) +ENDIF (KEROSIN_INCLUDE_DIR) + +FIND_PATH(KEROSIN_INCLUDE_DIR kerosin/kerosin.h PATH_SUFFIXES simspark) + +SET(KEROSIN_NAMES kerosin kerosin_debug) +FIND_LIBRARY(KEROSIN_LIBRARY NAMES ${KEROSIN_NAMES} PATH_SUFFIXES simspark ) + +# handle the QUIETLY and REQUIRED arguments and set KEROSIN_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(KEROSIN DEFAULT_MSG KEROSIN_LIBRARY + KEROSIN_INCLUDE_DIR) + +IF(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ${KEROSIN_LIBRARY} ) +ELSE(KEROSIN_FOUND) + SET( KEROSIN_LIBRARIES ) +ENDIF(KEROSIN_FOUND) + +MARK_AS_ADVANCED( KEROSIN_LIBRARY KEROSIN_INCLUDE_DIR ) Added: trunk/rcssserver3d/data/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/data/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/data/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,5 @@ +########### install files ############### + +install(DIRECTORY models scripts materials rsg textures + DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME} + PATTERN ".svn" EXCLUDE) Property changes on: trunk/rcssserver3d/data/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/doc/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/doc/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/doc/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,37 @@ +add_subdirectory(users) + +find_package(Doxygen) +find_package(Perl) + +if (DOXYGEN_DOT_EXECUTABLE) + set(HAVE_DOT "YES") +else (DOXYGEN_DOT_EXECUTABLE) + set(HAVE_DOT "NO") +endif (DOXYGEN_DOT_EXECUTABLE) + +if (PERL_FOUND) + set(PERL ${PERL_EXECUTABLE}) +else (PERL_FOUND) + set(PERL "perl") +endif (PERL_FOUND) + +if (DOXYGEN_EXECUTABLE) + # variables needed by Doxyfile.in + set(PACKAGE ${CMAKE_PROJECT_NAME}) + set(VERSION ${PACKAGE_VERSION}) + set(top_srcdir ${CMAKE_SOURCE_DIR}) + set(top_builddir ${CMAKE_BINARY_DIR}) + + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + + add_custom_target(doc ${DOXYGEN_EXECUTABLE} Doxyfile) + + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "api") + +endif (DOXYGEN_EXECUTABLE) + +add_custom_target(comment ALL echo '***' + COMMAND echo '*** To \(re-\)build the Doxygen API documentation, use \"make +doc\"' + COMMAND echo '***') Property changes on: trunk/rcssserver3d/doc/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Modified: trunk/rcssserver3d/doc/Doxyfile.in =================================================================== --- trunk/rcssserver3d/doc/Doxyfile.in 2009-01-21 17:46:14 UTC (rev 26) +++ trunk/rcssserver3d/doc/Doxyfile.in 2009-01-21 18:14:01 UTC (rev 27) @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = @PACKAGE@ PROJECT_NUMBER = @VERSION@ -OUTPUT_DIRECTORY = @top_srcdir@/doc/ +OUTPUT_DIRECTORY = @top_builddir@/doc/ OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO EXTRACT_ALL = YES Added: trunk/rcssserver3d/doc/users/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/doc/users/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/doc/users/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,28 @@ +find_package(LATEX) + +if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) + if (PDFLATEX_COMPILER) +# include(../../cmake/UseLATEX.cmake) +# add_latex_document(user-manual.tex INPUTS agentspark.tex gettingstarted.tex +# robots.tex introduction.tex monitorspark.tex simspark.tex license.tex +# overview.tex simulations.tex definitions.tex resources.tex user-manual.tex +# BIBFILES references.bib IMAGE_DIRS fig DEFAULT_PDF) + endif (PDFLATEX_COMPILER) +else (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) + add_custom_target(comment2 ALL echo '***' + COMMAND echo '*** The users manual \(PDF\) can be found in doc/users.' + COMMAND echo '***') +endif (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/user-manual.tex) + +set(CLEAN_FILES + definitions.aux + user-manual.log + user-manual.pdf + user-manual.aux + user-manual.toc + user-manual.out + user-manual.bbl + user-manual.blg +) + +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${CLEAN_FILES}") Property changes on: trunk/rcssserver3d/doc/users/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/plugin/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/plugin/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/plugin/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,2 @@ +add_subdirectory(soccer) +add_subdirectory(soccermonitor) Property changes on: trunk/rcssserver3d/plugin/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/plugin/soccer/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/plugin/soccer/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/plugin/soccer/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,128 @@ +########### next target ############### +set(soccer_LIB_HDRS + soccertypes.h + agentstate/agentstate.h + agentstateperceptor/agentstateperceptor.h + ball/ball.h + ballstateaspect/ballstateaspect.h + beameffector/beamaction.h + beameffector/beameffector.h + catcheffector/catchaction.h + catcheffector/catcheffector.h + createeffector/createaction.h + createeffector/createeffector.h + driveeffector/driveaction.h + driveeffector/driveeffector.h + fieldflag/fieldflag.h + gamestateaspect/gamestateaspect.h + gamestateaspect/gamestateitem.h + gamestateperceptor/gamestateperceptor.h + hearperceptor/hearperceptor.h + initeffector/initaction.h + initeffector/initeffector.h + initeffector/singlematiniteffector.h + initeffector/staticmeshiniteffector.h + kickeffector/kickaction.h + kickeffector/kickeffector.h + objectstate/objectstate.h + pantilteffector/pantiltaction.h + pantilteffector/pantilteffector.h + restrictedvisionperceptor/restrictedvisionperceptor.h + sayeffector/sayaction.h + sayeffector/sayeffector.h + sexpmonitor/sexpmonitor.h + internalsoccermonitor/internalsoccerrender.h + internalsoccermonitor/internalsoccerinput.h + soccerbase/soccerbase.h + soccercontrolaspect/soccercontrolaspect.h + soccernode/soccernode.h + soccerruleaspect/soccerruleaspect.h + trainercommandparser/trainercommandparser.h + gametimeperceptor/gametimeperceptor.h + visionperceptor/visionperceptor.h + agentintegration/soccerbotbehavior.h +) + +set(soccer_LIB_SRCS + export.cpp + agentstate/agentstate.cpp + agentstate/agentstate_c.cpp + agentstateperceptor/agentstateperceptor.cpp + agentstateperceptor/agentstateperceptor_c.cpp + ball/ball.cpp + ball/ball_c.cpp + ballstateaspect/ballstateaspect.cpp + ballstateaspect/ballstateaspect_c.cpp + beameffector/beameffector.cpp + beameffector/beameffector_c.cpp + catcheffector/catcheffector.cpp + catcheffector/catcheffector_c.cpp + createeffector/createeffector.cpp + createeffector/createeffector_c.cpp + driveeffector/driveeffector.cpp + driveeffector/driveeffector_c.cpp + fieldflag/fieldflag_c.cpp + gamestateaspect/gamestateaspect.cpp + gamestateaspect/gamestateaspect_c.cpp + gamestateaspect/gamestateitem.cpp + gamestateaspect/gamestateitem_c.cpp + gamestateperceptor/gamestateperceptor.cpp + gamestateperceptor/gamestateperceptor_c.cpp + hearperceptor/hearperceptor.cpp + hearperceptor/hearperceptor_c.cpp + initeffector/initeffector.cpp + initeffector/initeffector_c.cpp + initeffector/singlematiniteffector.cpp + initeffector/singlematiniteffector_c.cpp + initeffector/staticmeshiniteffector.cpp + initeffector/staticmeshiniteffector_c.cpp + kickeffector/kickeffector.cpp + kickeffector/kickeffector_c.cpp + objectstate/objectstate.cpp + objectstate/objectstate_c.cpp + pantilteffector/pantilteffector.cpp + pantilteffector/pantilteffector_c.cpp + restrictedvisionperceptor/restrictedvisionperceptor.cpp + restrictedvisionperceptor/restrictedvisionperceptor_c.cpp + sayeffector/sayeffector.cpp + sayeffector/sayeffector_c.cpp + sexpmonitor/sexpmonitor.cpp + sexpmonitor/sexpmonitor_c.cpp + internalsoccermonitor/internalsoccerrender.cpp + internalsoccermonitor/internalsoccerrender_c.cpp + internalsoccermonitor/internalsoccerinput.cpp + internalsoccermonitor/internalsoccerinput_c.cpp + soccerbase/soccerbase.cpp + soccercontrolaspect/soccercontrolaspect.cpp + soccercontrolaspect/soccercontrolaspect_c.cpp + soccernode/soccernode.cpp + soccernode/soccernode_c.cpp + soccerruleaspect/soccerruleaspect.cpp + soccerruleaspect/soccerruleaspect_c.cpp + trainercommandparser/trainercommandparser.cpp + trainercommandparser/trainercommandparser_c.cpp + visionperceptor/visionperceptor.cpp + visionperceptor/visionperceptor_c.cpp + gametimeperceptor/gametimeperceptor.cpp + gametimeperceptor/gametimeperceptor_c.cpp + agentintegration/soccerbotbehavior.cpp + agentintegration/soccerbotbehavior_c.cpp +) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${SPARK_INCLUDE_DIR} + ${SALT_INCLUDE_DIR} ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} + ${KEROSIN_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS}) + +add_library(soccer MODULE ${soccer_LIB_SRCS} ${soccer_LIB_HDRS}) + +target_link_libraries(soccer) + +set_target_properties(soccer PROPERTIES VERSION 1.0.0 SOVERSION 1) +install(TARGETS soccer DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME}) + + +########### install files ############### + +install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/soccer + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) + Property changes on: trunk/rcssserver3d/plugin/soccer/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/plugin/soccermonitor/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/plugin/soccermonitor/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/plugin/soccermonitor/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,38 @@ +########### next target ############### +set(soccermonitor_LIB_HDRS + soccermonitor.h + soccerrender.h + soccerinput.h + soccerinputlogplayer.h +) + +set(soccermonitor_LIB_SRCS + export.cpp + soccermonitor.cpp + soccermonitor_c.cpp + soccerrender.cpp + soccerrender_c.cpp + soccerinput.cpp + soccerinput_c.cpp + soccerinputlogplayer.cpp + soccerinputlogplayer_c.cpp +) + +include_directories(${CMAKE_SOURCE_DIR}/plugin ${SPARK_INCLUDE_DIR} + ${SALT_INCLUDE_DIR} ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} + ${KEROSIN_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS}) + +add_library(soccermonitor MODULE ${soccermonitor_LIB_SRCS} + ${soccermonitor_LIB_HDRS}) + +target_link_libraries(soccermonitor) + +set_target_properties(soccermonitor PROPERTIES VERSION 1.0.0 SOVERSION 1) +install(TARGETS soccermonitor DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME}) + + +########### install files ############### + +install(FILES soccermonitor.h soccerrender.h soccerinput.h + soccerinputlogplayer.h + DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/soccermonitor) Property changes on: trunk/rcssserver3d/plugin/soccermonitor/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/rcssagent3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/rcssagent3d/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/rcssagent3d/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,26 @@ +########### next target ############### + +set(rcssagent3d_SRCS + main.cpp + behavior.h + soccerbehavior.h + soccerbehavior.cpp + soccerbotbehavior.h + soccerbotbehavior.cpp + hoap2behavior.h + hoap2behavior.cpp + naobehavior.h + naobehavior.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(rcssagent3d ${rcssagent3d_SRCS}) + +target_link_libraries(rcssagent3d ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) + +set_target_properties(rcssagent3d PROPERTIES + INSTALL_RPATH "${RPATH_DIRECTORIES}") +install(TARGETS rcssagent3d DESTINATION ${BINDIR}) Property changes on: trunk/rcssserver3d/rcssagent3d/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,38 @@ +########### next target ############### + +set(rcssmonitor3d_SRCS + main.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(rcssmonitor3d ${rcssmonitor3d_SRCS}) + +target_link_libraries(rcssmonitor3d ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) + +set_target_properties(rcssmonitor3d PROPERTIES + INSTALL_RPATH "${RPATH_DIRECTORIES}") +install(TARGETS rcssmonitor3d DESTINATION ${BINDIR}) + + +########### install files ############### + +install(FILES soccersim-monitor.rb rcssmonitor3d.rb soccerbindings.rb + DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) + + + +#original Makefile.am contents follow: + +#LDADD = -lpthread +#if NO_RPATH +#AM_LDFLAGS = @SALT_LDFLAGS@ \ +# @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ +# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +#else +#AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ +# @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ +# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +#endif Property changes on: trunk/rcssserver3d/rcssmonitor3d/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/rcssserver3d/rcssserver3d_config.h.cmake =================================================================== --- trunk/rcssserver3d/rcssserver3d_config.h.cmake (rev 0) +++ trunk/rcssserver3d/rcssserver3d_config.h.cmake 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,7 @@ +#cmakedefine HAVE_SYS_SOCKET_H 1 + +#cmakedefine HAVE_NETINET_IN_H 1 + +#cmakedefine HAVE_ARPA_INET_H 1 + +#define RCSS_BUNDLE_PATH "${BUNDLE_PATH}" \ No newline at end of file Added: trunk/rcssserver3d/simspark/CMakeLists.txt =================================================================== --- trunk/rcssserver3d/simspark/CMakeLists.txt (rev 0) +++ trunk/rcssserver3d/simspark/CMakeLists.txt 2009-01-21 18:14:01 UTC (rev 27) @@ -0,0 +1,37 @@ +########### next target ############### + +set(simspark_SRCS + main.cpp +) + +include_directories(${SPARK_INCLUDE_DIR} ${SALT_INCLUDE_DIR} + ${ZEITGEIST_INCLUDE_DIR} ${OXYGEN_INCLUDE_DIR} ${KEROSIN_INCLUDE_DIR}) + +add_executable(simspark ${simspark_SRCS}) + +target_link_libraries(simspark ${SPARK_LIBRARIES} ${SALT_LIBRARIES} + ${ZEITGEIST_LIBRARIES} ${OXYGEN_LIBRARIES} ${KEROSIN_LIBRARIES}) + +set_target_properties(simspark PROPERTIES INSTALL_RPATH "${RPATH_DIRECTORIES}") +install(TARGETS simspark DESTINATION ${BINDIR}) + + +########### install files ############### + +install(FILES simspark.rb soccersim.rb naosoccersim.rb + internalsoccermonitor.rb internalsoccerbindings.rb + DESTINATION ${DATADIR}/${CMAKE_PROJECT_NAME}) + +#original Makefile.am contents follow: + +#LDADD = -lpthread +# +#if NO_RPATH +#AM_LDFLAGS = @SALT_LDFLAGS@ \ +# @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ +# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +#else +#AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ +# @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ +# @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +#endif Property changes on: trunk/rcssserver3d/simspark/CMakeLists.txt ___________________________________________________________________ Added: svn:mime-type + text/plain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-21 17:46:40
|
Revision: 26 http://simspark.svn.sourceforge.net/simspark/?rev=26&view=rev Author: hedayat Date: 2009-01-21 17:46:14 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Fixed library versions Some other small cmake fixes Modified Paths: -------------- trunk/spark/CMakeLists.txt trunk/spark/ChangeLog Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-21 09:59:55 UTC (rev 25) +++ trunk/spark/CMakeLists.txt 2009-01-21 17:46:14 UTC (rev 26) @@ -78,31 +78,27 @@ include_directories(${CMAKE_BINARY_DIR}) if (UNIX) set(CMAKE_CXX_FLAGS "-Wno-deprecated") - set(CMAKE_CXX_FLAGS_DEBUG "-g -W -Wall -Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual") + set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") endif (UNIX) -set(BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH - "The directory to install binaries into.") -set(LIBDIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH - "The directory to install libraries into.") -set(DATADIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH - "The directory to install data files into.") -set(INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH - "The directory to install includes into.") +set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") +set(LIBDIR "lib" CACHE PATH "The directory to install libraries into.") +set(DATADIR "share" CACHE PATH "The directory to install data files into.") +set(INCLUDEDIR "include" CACHE PATH "The directory to install includes into.") set(CMAKE_SHARED_MODULE_PREFIX "") mark_as_advanced(BINDIR LIBDIR DATADIR INCLUDEDIR) ########## library version numbers ########## -set(SALT_SO_VERSION 3) -set(SALT_VERSION ${SALT_SO_VERSION}.1.3) +set(SALT_SO_VERSION 0) +set(SALT_VERSION ${SALT_SO_VERSION}.3.1) set(ZEITGEIST_SO_VERSION 3) -set(ZEITGEIST_VERSION ${ZEITGEIST_SO_VERSION}.1.0) -set(OXYGEN_SO_VERSION 5) -set(OXYGEN_VERSION ${OXYGEN_SO_VERSION}.3.2) +set(ZEITGEIST_VERSION ${ZEITGEIST_SO_VERSION}.0.1) +set(OXYGEN_SO_VERSION 3) +set(OXYGEN_VERSION ${OXYGEN_SO_VERSION}.2.3) set(KEROSIN_SO_VERSION 1) -set(KEROSIN_VERSION ${KEROSIN_SO_VERSION}.1.0) +set(KEROSIN_VERSION ${KEROSIN_SO_VERSION}.0.1) set(SPARK_SO_VERSION 0) set(SPARK_VERSION ${SPARK_SO_VERSION}.0.0) set(RCSSNET_SO_VERSION 0) @@ -127,7 +123,7 @@ ########## generate configuration file ########## configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sparkconfig.h.cmake -${CMAKE_CURRENT_BINARY_DIR}/sparkconfig.h) + ${CMAKE_CURRENT_BINARY_DIR}/sparkconfig.h) ########## add subdirectories ############ add_subdirectory(utility) @@ -158,9 +154,6 @@ #original Makefile.am contents follow: -#pkginclude_HEADERS = \ -#sparkconfig.h -# #DISTCLEANFILES = $(top_builddir)/macosX/SDLMain.o $(top_builddir)/macosX/libSDLmain.a # #UPLOAD_BIN = Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2009-01-21 09:59:55 UTC (rev 25) +++ trunk/spark/ChangeLog 2009-01-21 17:46:14 UTC (rev 26) @@ -5,6 +5,7 @@ files like CMakeLists.txt files; so, using 'make package_source' is preferred to 'make dist' now. - some cleanup + - fixed library version numbers * lib/salt/CMakeLists.txt: * lib/oxygen/CMakeLists.txt: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yx...@us...> - 2009-01-21 10:00:04
|
Revision: 25 http://simspark.svn.sourceforge.net/simspark/?rev=25&view=rev Author: yxu Date: 2009-01-21 09:59:55 +0000 (Wed, 21 Jan 2009) Log Message: ----------- add .obj files Added Paths: ----------- trunk/rcssserver3d/data/models/leftgoal.obj trunk/rcssserver3d/data/models/lfoot.obj trunk/rcssserver3d/data/models/llowerarm.obj trunk/rcssserver3d/data/models/lshank.obj trunk/rcssserver3d/data/models/lthigh.obj trunk/rcssserver3d/data/models/lupperarm.obj trunk/rcssserver3d/data/models/naobody.obj trunk/rcssserver3d/data/models/naohead.obj trunk/rcssserver3d/data/models/naosoccerfield.obj trunk/rcssserver3d/data/models/rfoot.obj trunk/rcssserver3d/data/models/rightgoal.obj trunk/rcssserver3d/data/models/rlowerarm.obj trunk/rcssserver3d/data/models/rshank.obj trunk/rcssserver3d/data/models/rthigh.obj trunk/rcssserver3d/data/models/rupperarm.obj trunk/rcssserver3d/data/models/skybox.obj trunk/rcssserver3d/data/models/soccerball.obj trunk/rcssserver3d/data/models/soccerbottorso.obj Added: trunk/rcssserver3d/data/models/leftgoal.obj =================================================================== --- trunk/rcssserver3d/data/models/leftgoal.obj (rev 0) +++ trunk/rcssserver3d/data/models/leftgoal.obj 2009-01-21 09:59:55 UTC (rev 25) @@ -0,0 +1,1964 @@ +# Blender3D v245 OBJ File: leftgoal.blend +# www.blender3d.org +mtllib leftgoal.mtl +o Cylinder +v 0.490346 -0.000000 -0.021170 +v 0.494467 -0.000000 -0.016098 +v 0.497519 -0.000000 -0.010320 +v 0.499385 -0.000000 -0.004058 +v 0.499994 0.000000 0.002448 +v 0.499322 0.000000 0.008948 +v 0.497394 0.000000 0.015192 +v 0.494286 0.000000 0.020939 +v 0.490116 0.000000 0.025970 +v 0.485044 0.000000 0.030091 +v 0.479266 0.000000 0.033143 +v 0.473004 0.000000 0.035009 +v 0.466498 0.000000 0.035618 +v 0.459998 0.000000 0.034945 +v 0.453754 0.000000 0.033018 +v 0.448007 0.000000 0.029909 +v 0.442976 0.000000 0.025739 +v 0.438855 0.000000 0.020668 +v 0.435803 0.000000 0.014890 +v 0.433937 0.000000 0.008628 +v 0.433328 0.000000 0.002122 +v 0.434000 -0.000000 -0.004378 +v 0.435928 -0.000000 -0.010622 +v 0.439036 -0.000000 -0.016370 +v 0.443207 -0.000000 -0.021401 +v 0.448278 -0.000000 -0.025521 +v 0.454056 -0.000000 -0.028573 +v 0.460318 -0.000000 -0.030439 +v 0.466824 -0.000000 -0.031048 +v 0.473324 -0.000000 -0.030376 +v 0.479568 -0.000000 -0.028448 +v 0.485316 -0.000000 -0.025340 +v 0.490346 0.533333 -0.021170 +v 0.494467 0.533333 -0.016098 +v 0.497519 0.533333 -0.010320 +v 0.499385 0.533333 -0.004058 +v 0.499994 0.533333 0.002448 +v 0.499322 0.533333 0.008948 +v 0.497394 0.533333 0.015192 +v 0.494286 0.533333 0.020939 +v 0.490116 0.533333 0.025970 +v 0.485044 0.533333 0.030091 +v 0.479266 0.533333 0.033143 +v 0.473004 0.533333 0.035009 +v 0.466498 0.533333 0.035618 +v 0.459998 0.533333 0.034945 +v 0.453754 0.533333 0.033018 +v 0.448007 0.533333 0.029910 +v 0.442976 0.533333 0.025739 +v 0.438855 0.533333 0.020668 +v 0.435803 0.533333 0.014890 +v 0.433937 0.533333 0.008628 +v 0.433328 0.533333 0.002122 +v 0.434000 0.533333 -0.004378 +v 0.435928 0.533333 -0.010622 +v 0.439036 0.533333 -0.016370 +v 0.443206 0.533333 -0.021400 +v 0.448278 0.533333 -0.025521 +v 0.454056 0.533333 -0.028573 +v 0.460318 0.533333 -0.030439 +v 0.466824 0.533333 -0.031048 +v 0.473324 0.533333 -0.030376 +v 0.479568 0.533333 -0.028448 +v 0.485315 0.533333 -0.025340 +v 0.466661 0.000000 0.002285 +v 0.466661 0.533333 0.002285 +v -0.466661 0.533333 -0.002285 +v -0.466661 -0.000000 -0.002285 +v -0.448007 0.533333 -0.029910 +v -0.453755 0.533333 -0.033018 +v -0.459998 0.533333 -0.034946 +v -0.466498 0.533333 -0.035618 +v -0.473004 0.533333 -0.035009 +v -0.479266 0.533333 -0.033143 +v -0.485044 0.533333 -0.030091 +v -0.490116 0.533333 -0.025970 +v -0.494286 0.533333 -0.020939 +v -0.497394 0.533333 -0.015191 +v -0.499322 0.533333 -0.008948 +v -0.499994 0.533333 -0.002448 +v -0.499385 0.533333 0.004058 +v -0.497519 0.533333 0.010320 +v -0.494467 0.533333 0.016098 +v -0.490346 0.533333 0.021170 +v -0.485315 0.533333 0.025340 +v -0.479568 0.533333 0.028448 +v -0.473324 0.533333 0.030376 +v -0.466824 0.533333 0.031048 +v -0.460318 0.533333 0.030439 +v -0.454056 0.533333 0.028573 +v -0.448278 0.533333 0.025521 +v -0.443207 0.533333 0.021401 +v -0.439036 0.533333 0.016370 +v -0.435928 0.533333 0.010622 +v -0.434000 0.533333 0.004378 +v -0.433328 0.533333 -0.002122 +v -0.433937 0.533333 -0.008628 +v -0.435803 0.533333 -0.014890 +v -0.438855 0.533333 -0.020668 +v -0.442976 0.533333 -0.025739 +v -0.448007 -0.000000 -0.029909 +v -0.453754 -0.000000 -0.033018 +v -0.459998 -0.000000 -0.034945 +v -0.466498 -0.000000 -0.035618 +v -0.473004 -0.000000 -0.035009 +v -0.479266 -0.000000 -0.033143 +v -0.485044 -0.000000 -0.030091 +v -0.490116 -0.000000 -0.025970 +v -0.494286 -0.000000 -0.020939 +v -0.497394 -0.000000 -0.015192 +v -0.499322 -0.000000 -0.008948 +v -0.499994 -0.000000 -0.002448 +v -0.499385 0.000000 0.004058 +v -0.497519 0.000000 0.010320 +v -0.494467 0.000000 0.016098 +v -0.490346 0.000000 0.021170 +v -0.485316 0.000000 0.025340 +v -0.479568 0.000000 0.028448 +v -0.473324 0.000000 0.030376 +v -0.466824 0.000000 0.031048 +v -0.460318 0.000000 0.030439 +v -0.454056 0.000000 0.028573 +v -0.448278 0.000000 0.025521 +v -0.443207 0.000000 0.021401 +v -0.439036 0.000000 0.016370 +v -0.435928 0.000000 0.010622 +v -0.434000 0.000000 0.004378 +v -0.433328 -0.000000 -0.002122 +v -0.433937 -0.000000 -0.008628 +v -0.435803 -0.000000 -0.014890 +v -0.438855 -0.000000 -0.020668 +v -0.442976 -0.000000 -0.025739 +v -0.465814 0.527499 -0.014066 +v -0.465804 0.524974 -0.016139 +v -0.465796 0.522092 -0.017679 +v -0.465791 0.518966 -0.018627 +v -0.465790 0.515714 -0.018947 +v -0.465791 0.512463 -0.018627 +v -0.465796 0.509336 -0.017679 +v -0.465804 0.506455 -0.016139 +v -0.465814 0.503929 -0.014066 +v -0.465826 0.501856 -0.011540 +v -0.465840 0.500316 -0.008659 +v -0.465855 0.499368 -0.005532 +v -0.465871 0.499047 -0.002281 +v -0.465887 0.499368 0.000971 +v -0.465903 0.500316 0.004097 +v -0.465917 0.501856 0.006978 +v -0.465929 0.503929 0.009504 +v -0.465939 0.506455 0.011577 +v -0.465947 0.509336 0.013117 +v -0.465951 0.512463 0.014065 +v -0.465953 0.515714 0.014386 +v -0.465951 0.518966 0.014065 +v -0.465947 0.522092 0.013117 +v -0.465939 0.524974 0.011577 +v -0.465929 0.527499 0.009504 +v -0.465917 0.529572 0.006978 +v -0.465903 0.531112 0.004097 +v -0.465887 0.532061 0.000971 +v -0.465871 0.532381 -0.002281 +v -0.465855 0.532061 -0.005532 +v -0.465840 0.531112 -0.008659 +v -0.465826 0.529572 -0.011540 +v 0.467508 0.527499 -0.009496 +v 0.467519 0.524974 -0.011569 +v 0.467526 0.522092 -0.013109 +v 0.467531 0.518966 -0.014057 +v 0.467532 0.515714 -0.014378 +v 0.467531 0.512463 -0.014057 +v 0.467526 0.509336 -0.013109 +v 0.467519 0.506455 -0.011569 +v 0.467508 0.503929 -0.009496 +v 0.467496 0.501856 -0.006971 +v 0.467482 0.500316 -0.004089 +v 0.467467 0.499368 -0.000963 +v 0.467451 0.499047 0.002289 +v 0.467435 0.499368 0.005540 +v 0.467420 0.500316 0.008667 +v 0.467405 0.501856 0.011548 +v 0.467393 0.503929 0.014074 +v 0.467383 0.506455 0.016146 +v 0.467375 0.509336 0.017687 +v 0.467371 0.512463 0.018635 +v 0.467369 0.515714 0.018955 +v 0.467371 0.518966 0.018635 +v 0.467375 0.522092 0.017687 +v 0.467383 0.524974 0.016146 +v 0.467393 0.527499 0.014074 +v 0.467405 0.529572 0.011548 +v 0.467420 0.531112 0.008667 +v 0.467435 0.532061 0.005540 +v 0.467451 0.532381 0.002289 +v 0.467467 0.532061 -0.000963 +v 0.467482 0.531112 -0.004089 +v 0.467496 0.529572 -0.006971 +v -0.465871 0.515714 -0.002281 +v 0.467451 0.515714 0.002289 +v -0.459830 0.000132 -0.035903 +v -0.459830 0.266798 -0.035903 +v -0.458524 0.000831 -0.302566 +v 0.469231 0.000831 -0.299482 +v 0.467925 0.534842 -0.032819 +v 0.467925 0.000132 -0.032819 +v 0.467925 0.534842 -0.032819 +v 0.469231 0.000831 -0.299482 +v -0.463784 0.000831 -0.304050 +v -0.465090 0.534842 -0.037387 +v -0.465090 0.000132 -0.037387 +v -0.465090 0.534842 -0.037387 +v -0.463784 0.000831 -0.304050 +v 0.467925 0.534842 -0.032819 +v 0.469231 0.000831 -0.299482 +v -0.465090 0.000132 -0.037387 +v -0.465090 0.534842 -0.037387 +v -0.463784 0.000831 -0.304050 +v -0.465191 0.000831 -0.302566 +v -0.466496 0.266798 -0.035903 +v -0.466496 0.000132 -0.035903 +v 0.474809 0.000831 -0.302566 +v 0.473504 0.266798 -0.035903 +v 0.473504 0.000132 -0.035903 +v 0.468143 0.000831 -0.302566 +v 0.466837 0.266798 -0.035903 +v 0.466837 0.000132 -0.035903 +v 0.469231 0.000831 -0.299482 +v 0.467925 0.534842 -0.032819 +v 0.467925 0.000132 -0.032819 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.478737 0.520656 0.0 +vt 0.239368 1.000000 0.0 +vt 0.239368 0.520028 0.0 +vt 0.239368 0.520656 0.0 +vt 0.000000 0.520028 0.0 +vt 0.000000 1.000000 0.0 +vt 0.239368 0.520656 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.520028 0.0 +vt 0.478737 0.520656 0.0 +vt 0.239368 0.520028 0.0 +vt 0.239368 1.000000 0.0 +vt 0.812878 0.000000 0.0 +vt 0.812878 0.520028 0.0 +vt 0.000000 0.520027 0.0 +vt 0.812878 0.000000 0.0 +vt 0.000000 0.520027 0.0 +vt 0.000000 0.000000 0.0 +vt 0.812878 0.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 0.000000 0.520027 0.0 +vt 0.812878 0.000000 0.0 +vt 0.000000 0.520027 0.0 +vt 0.812878 0.520028 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 0.000000 0.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 0.000000 1.000000 0.0 +vt 1.000000 0.000000 0.0 +vt 1.000000 1.000000 0.0 +vn 0.000000 -1.000000 0.000000 +vn 0.685934 -0.668203 0.288064 +vn 0.616535 -0.668203 0.416333 +vn 0.999969 0.000000 0.004883 +vn -0.703970 0.315897 -0.636067 +vn -0.999969 0.000000 -0.004883 +vn -0.004364 -0.446730 0.894620 +vn 0.004364 0.446730 -0.894620 +vn 0.528642 -0.668203 -0.523484 +vn 0.620594 -0.668203 -0.410291 +vn 0.000000 1.000000 0.000000 +vn 0.620594 0.668203 -0.410291 +vn 0.528642 0.668203 -0.523484 +vn 0.688711 -0.668203 -0.281320 +vn 0.688711 0.668203 -0.281320 +vn 0.730369 -0.668203 -0.141545 +vn 0.730369 0.668203 -0.141545 +vn 0.743950 -0.668203 0.003632 +vn 0.743950 0.668203 0.003632 +vn 0.728935 -0.668203 0.148686 +vn 0.728935 0.668203 0.148686 +vn 0.685934 0.668203 0.288064 +vn 0.616535 0.668203 0.416333 +vn 0.523484 -0.668203 0.528611 +vn 0.523484 0.668203 0.528642 +vn 0.410291 -0.668203 0.620594 +vn 0.410291 0.668203 0.620594 +vn 0.281320 -0.668203 0.688711 +vn 0.281320 0.668203 0.688711 +vn 0.141514 -0.666372 0.732047 +vn 0.141545 0.668203 0.730369 +vn -0.003632 -0.668203 0.743950 +vn -0.003265 0.666372 0.745598 +vn -0.148686 -0.668203 0.728935 +vn -0.148686 0.668203 0.728935 +vn -0.288064 -0.668203 0.685934 +vn -0.288064 0.668203 0.685934 +vn -0.416333 -0.668203 0.616535 +vn -0.416333 0.668203 0.616535 +vn -0.528642 -0.668203 0.523484 +vn -0.528611 0.668203 0.523484 +vn -0.620594 -0.668203 0.410291 +vn -0.620594 0.668203 0.410291 +vn -0.688711 -0.668203 0.281320 +vn -0.688711 0.668203 0.281320 +vn -0.730369 -0.668203 0.141545 +vn -0.730369 0.668203 0.141545 +vn -0.743950 -0.668203 -0.003632 +vn -0.743950 0.668203 -0.003632 +vn -0.728935 -0.668203 -0.148686 +vn -0.728935 0.668203 -0.148686 +vn -0.685934 -0.668203 -0.288064 +vn -0.685934 0.668203 -0.288064 +vn -0.616535 -0.668203 -0.416333 +vn -0.616565 0.668203 -0.416333 +vn -0.523484 -0.668203 -0.528642 +vn -0.523484 0.668203 -0.528611 +vn -0.410291 -0.668203 -0.620594 +vn -0.410291 0.668203 -0.620594 +vn -0.281320 -0.668203 -0.688711 +vn -0.281320 0.668203 -0.688711 +vn -0.141545 -0.668203 -0.730369 +vn -0.141545 0.668203 -0.730369 +vn 0.003632 -0.668203 -0.743950 +vn 0.003632 0.668203 -0.743950 +vn 0.148686 -0.668203 -0.728935 +vn 0.148686 0.668203 -0.728935 +vn 0.288064 -0.668203 -0.685934 +vn 0.288034 0.668203 -0.685934 +vn 0.416333 -0.668203 -0.616535 +vn 0.416333 0.668203 -0.616565 +vn 0.528611 0.668203 -0.523484 +vn 0.528611 -0.668203 -0.523484 +vn 0.288064 0.668203 -0.685934 +vn -0.411481 0.666372 -0.621754 +vn -0.524369 -0.666372 -0.530045 +vn -0.003632 0.668203 0.743950 +vn 0.141545 -0.668203 0.730369 +vn 0.523484 0.668203 0.528611 +vn 0.743950 0.668172 0.003632 +vn 0.730369 -0.668172 -0.141545 +vn -0.663533 0.527360 -0.530625 +vn -0.663106 0.414319 -0.623371 +vn 0.669179 0.414319 -0.616840 +vn 0.668722 0.527360 -0.524094 +vn -0.662770 0.285409 -0.692282 +vn 0.669515 0.285409 -0.685751 +vn -0.662557 0.145482 -0.734733 +vn 0.669698 0.145482 -0.728202 +vn -0.662496 0.000000 -0.749046 +vn 0.669790 0.000000 -0.742515 +vn -0.662557 -0.145482 -0.734733 +vn 0.669698 -0.145482 -0.728202 +vn -0.662770 -0.285409 -0.692282 +vn 0.669515 -0.285409 -0.685751 +vn -0.663106 -0.414350 -0.623371 +vn 0.669179 -0.414350 -0.616840 +vn -0.663564 -0.527360 -0.530625 +vn 0.668722 -0.527360 -0.524094 +vn -0.664113 -0.620106 -0.417585 +vn 0.668142 -0.620106 -0.411084 +vn -0.664724 -0.689016 -0.288644 +vn 0.667531 -0.689016 -0.282113 +vn -0.665426 -0.731468 -0.148747 +vn 0.666860 -0.731468 -0.142216 +vn -0.668172 -0.743950 -0.003265 +vn 0.666128 -0.745781 0.003235 +vn -0.666829 -0.731468 0.142216 +vn 0.665426 -0.731468 0.148747 +vn -0.667531 -0.689016 0.282144 +vn 0.664724 -0.689016 0.288644 +vn -0.666341 -0.621265 0.412275 +vn 0.664113 -0.620106 0.417585 +vn -0.668722 -0.527360 0.524094 +vn 0.661733 -0.528764 0.531480 +vn -0.669179 -0.414350 0.616840 +vn 0.663106 -0.414350 0.623371 +vn -0.669515 -0.285409 0.685751 +vn 0.662770 -0.285409 0.692282 +vn -0.669729 -0.145482 0.728202 +vn 0.662557 -0.145482 0.734733 +vn -0.669790 0.000000 0.742515 +vn 0.662465 0.000000 0.749046 +vn -0.669729 0.145482 0.728202 +vn 0.662557 0.145482 0.734733 +vn -0.669515 0.285409 0.685751 +vn 0.662770 0.285379 0.692282 +vn -0.669179 0.414350 0.616840 +vn 0.663106 0.414350 0.623371 +vn -0.668722 0.527360 0.524094 +vn 0.663564 0.527360 0.530625 +vn -0.668172 0.620106 0.411084 +vn 0.664113 0.620106 0.417615 +vn -0.667531 0.689016 0.282144 +vn 0.664724 0.689016 0.288675 +vn -0.666829 0.731468 0.142216 +vn 0.665426 0.731468 0.148747 +vn -0.668172 0.743950 -0.003265 +vn 0.666128 0.745781 0.003235 +vn -0.665426 0.731468 -0.148747 +vn 0.666829 0.731468 -0.142216 +vn -0.664724 0.689016 -0.288644 +vn 0.667531 0.689016 -0.282113 +vn -0.664113 0.620106 -0.417585 +vn 0.668142 0.620106 -0.411054 +usemtl grey_naogoalnet.png +s 1 +f 68/1/1 126/2/2 125/3/3 +f 206/4/4 205/5/4 204/6/4 +f 207/7/5 209/8/6 208/9/5 +f 216/10/4 215/11/4 214/12/4 +f 226/13/6 228/14/6 227/15/6 +f 213/16/7 212/17/7 210/18/7 +f 213/19/7 210/20/7 211/21/7 +f 202/22/8 207/23/5 208/24/5 +f 202/25/8 208/26/5 203/27/8 +usemtl yellow +f 65/28/1 1/29/9 2/30/10 +f 66/31/11 34/32/12 33/33/13 +f 65/34/1 2/35/10 3/36/14 +f 66/37/11 35/38/15 34/39/12 +f 65/40/1 3/41/14 4/42/16 +f 66/43/11 36/44/17 35/45/15 +f 65/46/1 4/47/16 5/48/18 +f 66/49/11 37/50/19 36/51/17 +f 65/52/1 5/53/18 6/54/20 +f 66/55/11 38/56/21 37/57/19 +f 65/58/1 6/59/20 7/60/2 +f 66/61/11 39/62/22 38/63/21 +f 65/64/1 7/65/2 8/66/3 +f 66/67/11 40/68/23 39/69/22 +f 65/70/1 8/71/3 9/72/24 +f 66/73/11 41/74/25 40/75/23 +f 65/76/1 9/77/24 10/78/26 +f 66/79/11 42/80/27 41/81/25 +f 65/82/1 10/83/26 11/84/28 +f 66/85/11 43/86/29 42/87/27 +f 65/88/1 11/89/28 12/90/30 +f 66/91/11 44/92/31 43/93/29 +f 65/94/1 12/95/30 13/96/32 +f 66/97/11 45/98/33 44/99/31 +f 65/100/1 13/101/32 14/102/34 +f 66/103/11 46/104/35 45/105/33 +f 65/106/1 14/107/34 15/108/36 +f 66/109/11 47/110/37 46/111/35 +f 65/112/1 15/113/36 16/114/38 +f 66/115/11 48/116/39 47/117/37 +f 65/118/1 16/119/38 17/120/40 +f 66/121/11 49/122/41 48/123/39 +f 65/124/1 17/125/40 18/126/42 +f 66/127/11 50/128/43 49/129/41 +f 65/130/1 18/131/42 19/132/44 +f 66/133/11 51/134/45 50/135/43 +f 65/136/1 19/137/44 20/138/46 +f 66/139/11 52/140/47 51/141/45 +f 65/142/1 20/143/46 21/144/48 +f 66/145/11 53/146/49 52/147/47 +f 65/148/1 21/149/48 22/150/50 +f 66/151/11 54/152/51 53/153/49 +f 65/154/1 22/155/50 23/156/52 +f 66/157/11 55/158/53 54/159/51 +f 65/160/1 23/161/52 24/162/54 +f 66/163/11 56/164/55 55/165/53 +f 65/166/1 24/167/54 25/168/56 +f 66/169/11 57/170/57 56/171/55 +f 65/172/1 25/173/56 26/174/58 +f 66/175/11 58/176/59 57/177/57 +f 65/178/1 26/179/58 27/180/60 +f 66/181/11 59/182/61 58/183/59 +f 65/184/1 27/185/60 28/186/62 +f 66/187/11 60/188/63 59/189/61 +f 65/190/1 28/191/62 29/192/64 +f 66/193/11 61/194/65 60/195/63 +f 65/196/1 29/197/64 30/198/66 +f 66/199/11 62/200/67 61/201/65 +f 65/202/1 30/203/66 31/204/68 +f 66/205/11 63/206/69 62/207/67 +f 65/208/1 31/209/68 32/210/70 +f 66/211/11 64/212/71 63/213/69 +f 32/214/70 1/215/9 65/216/1 +f 66/217/11 33/218/13 64/219/71 +f 67/220/11 100/221/72 69/222/71 +f 68/223/1 101/224/70 132/225/73 +f 67/226/11 69/227/71 70/228/74 +f 68/229/1 102/230/68 101/231/70 +f 67/232/11 70/233/74 71/234/67 +f 68/235/1 103/236/66 102/237/68 +f 67/238/11 71/239/67 72/240/65 +f 68/241/1 104/242/64 103/243/66 +f 67/244/11 72/245/65 73/246/63 +f 68/247/1 105/248/62 104/249/64 +f 67/250/11 73/251/63 74/252/61 +f 68/253/1 106/254/60 105/255/62 +f 67/256/11 74/257/61 75/258/75 +f 68/259/1 107/260/58 106/261/60 +f 67/262/11 75/263/75 76/264/57 +f 68/265/1 108/266/76 107/267/58 +f 67/268/11 76/269/57 77/270/55 +f 68/271/1 109/272/54 108/273/76 +f 67/274/11 77/275/55 78/276/53 +f 68/277/1 110/278/52 109/279/54 +f 67/280/11 78/281/53 79/282/51 +f 68/283/1 111/284/50 110/285/52 +f 67/286/11 79/287/51 80/288/49 +f 68/289/1 112/290/48 111/291/50 +f 67/292/11 80/293/49 81/294/47 +f 68/295/1 113/296/46 112/297/48 +f 67/298/11 81/299/47 82/300/45 +f 68/301/1 114/302/44 113/303/46 +f 67/304/11 82/305/45 83/306/43 +f 68/307/1 115/308/42 114/309/44 +f 67/310/11 83/311/43 84/312/41 +f 68/313/1 116/314/40 115/315/42 +f 67/316/11 84/317/41 85/318/39 +f 68/319/1 117/320/38 116/321/40 +f 67/322/11 85/323/39 86/324/37 +f 68/325/1 118/326/36 117/327/38 +f 67/328/11 86/329/37 87/330/35 +f 68/331/1 119/332/34 118/333/36 +f 67/334/11 87/335/35 88/336/77 +f 68/337/1 120/338/32 119/339/34 +f 67/340/11 88/341/77 89/342/31 +f 68/343/1 121/344/78 120/345/32 +f 67/346/11 89/347/31 90/348/29 +f 68/349/1 122/350/28 121/351/78 +f 67/352/11 90/353/29 91/354/27 +f 68/355/1 123/356/26 122/357/28 +f 67/358/11 91/359/27 92/360/79 +f 68/361/1 124/362/24 123/363/26 +f 67/364/11 92/365/79 93/366/23 +f 68/367/1 125/368/3 124/369/24 +f 67/370/11 93/371/23 94/372/22 +f 67/373/11 94/374/22 95/375/21 +f 68/376/1 127/377/20 126/378/2 +f 67/379/11 95/380/21 96/381/80 +f 68/382/1 128/383/18 127/384/20 +f 67/385/11 96/386/80 97/387/17 +f 68/388/1 129/389/81 128/390/18 +f 67/391/11 97/392/17 98/393/15 +f 68/394/1 130/395/14 129/396/81 +f 67/397/11 98/398/15 99/399/12 +f 68/400/1 131/401/10 130/402/14 +f 67/403/11 99/404/12 100/405/72 +f 68/406/1 132/407/73 131/408/10 +f 197/409/6 133/410/82 134/411/83 +f 198/412/4 166/413/84 165/414/85 +f 197/415/6 134/416/83 135/417/86 +f 198/418/4 167/419/87 166/420/84 +f 197/421/6 135/422/86 136/423/88 +f 198/424/4 168/425/89 167/426/87 +f 197/427/6 136/428/88 137/429/90 +f 198/430/4 169/431/91 168/432/89 +f 197/433/6 137/434/90 138/435/92 +f 198/436/4 170/437/93 169/438/91 +f 197/439/6 138/440/92 139/441/94 +f 198/442/4 171/443/95 170/444/93 +f 197/445/6 139/446/94 140/447/96 +f 198/448/4 172/449/97 171/450/95 +f 197/451/6 140/452/96 141/453/98 +f 198/454/4 173/455/99 172/456/97 +f 197/457/6 141/458/98 142/459/100 +f 198/460/4 174/461/101 173/462/99 +f 197/463/6 142/464/100 143/465/102 +f 198/466/4 175/467/103 174/468/101 +f 197/469/6 143/470/102 144/471/104 +f 198/472/4 176/473/105 175/474/103 +f 197/475/6 144/476/104 145/477/106 +f 198/478/4 177/479/107 176/480/105 +f 197/481/6 145/482/106 146/483/108 +f 198/484/4 178/485/109 177/486/107 +f 197/487/6 146/488/108 147/489/110 +f 198/490/4 179/491/111 178/492/109 +f 197/493/6 147/494/110 148/495/112 +f 198/496/4 180/497/113 179/498/111 +f 197/499/6 148/500/112 149/501/114 +f 198/502/4 181/503/115 180/504/113 +f 197/505/6 149/506/114 150/507/116 +f 198/508/4 182/509/117 181/510/115 +f 197/511/6 150/512/116 151/513/118 +f 198/514/4 183/515/119 182/516/117 +f 197/517/6 151/518/118 152/519/120 +f 198/520/4 184/521/121 183/522/119 +f 197/523/6 152/524/120 153/525/122 +f 198/526/4 185/527/123 184/528/121 +f 197/529/6 153/530/122 154/531/124 +f 198/532/4 186/533/125 185/534/123 +f 197/535/6 154/536/124 155/537/126 +f 198/538/4 187/539/127 186/540/125 +f 197/541/6 155/542/126 156/543/128 +f 198/544/4 188/545/129 187/546/127 +f 197/547/6 156/548/128 157/549/130 +f 198/550/4 189/551/131 188/552/129 +f 197/553/6 157/554/130 158/555/132 +f 198/556/4 190/557/133 189/558/131 +f 197/559/6 158/560/132 159/561/134 +f 198/562/4 191/563/135 190/564/133 +f 197/565/6 159/566/134 160/567/136 +f 198/568/4 192/569/137 191/570/135 +f 197/571/6 160/572/136 161/573/138 +f 198/574/4 193/575/139 192/576/137 +f 197/577/6 161/578/138 162/579/140 +f 198/580/4 194/581/141 193/582/139 +f 197/583/6 162/584/140 163/585/142 +f 198/586/4 195/587/143 194/588/141 +f 197/589/6 163/590/142 164/591/144 +f 198/592/4 196/593/145 195/594/143 +f 197/595/6 164/596/144 133/597/82 +f 198/598/4 165/599/85 196/600/145 +f 201/601/4 200/602/4 199/603/4 +f 217/604/6 219/605/6 218/606/6 +f 220/607/4 221/608/4 222/609/4 +f 223/610/6 225/611/6 224/612/6 +f 164/613/144 196/614/145 165/615/85 +f 164/616/144 165/617/85 133/618/82 +f 163/619/142 195/620/143 196/621/145 +f 163/622/142 196/623/145 164/624/144 +f 162/625/140 194/626/141 195/627/143 +f 162/628/140 195/629/143 163/630/142 +f 161/631/138 193/632/139 194/633/141 +f 161/634/138 194/635/141 162/636/140 +f 160/637/136 192/638/137 193/639/139 +f 160/640/136 193/641/139 161/642/138 +f 159/643/134 191/644/135 192/645/137 +f 159/646/134 192/647/137 160/648/136 +f 158/649/132 190/650/133 191/651/135 +f 158/652/132 191/653/135 159/654/134 +f 157/655/130 189/656/131 190/657/133 +f 157/658/130 190/659/133 158/660/132 +f 156/661/128 188/662/129 189/663/131 +f 156/664/128 189/665/131 157/666/130 +f 155/667/126 187/668/127 188/669/129 +f 155/670/126 188/671/129 156/672/128 +f 154/673/124 186/674/125 187/675/127 +f 154/676/124 187/677/127 155/678/126 +f 153/679/122 185/680/123 186/681/125 +f 153/682/122 186/683/125 154/684/124 +f 152/685/120 184/686/121 185/687/123 +f 152/688/120 185/689/123 153/690/122 +f 151/691/118 183/692/119 184/693/121 +f 151/694/118 184/695/121 152/696/120 +f 150/697/116 182/698/117 183/699/119 +f 150/700/116 183/701/119 151/702/118 +f 149/703/114 181/704/115 182/705/117 +f 149/706/114 182/707/117 150/708/116 +f 148/709/112 180/710/113 181/711/115 +f 148/712/112 181/713/115 149/714/114 +f 147/715/110 179/716/111 180/717/113 +f 147/718/110 180/719/113 148/720/112 +f 146/721/108 178/722/109 179/723/111 +f 146/724/108 179/725/111 147/726/110 +f 145/727/106 177/728/107 178/729/109 +f 145/730/106 178/731/109 146/732/108 +f 144/733/104 176/734/105 177/735/107 +f 144/736/104 177/737/107 145/738/106 +f 143/739/102 175/740/103 176/741/105 +f 143/742/102 176/743/105 144/744/104 +f 142/745/100 174/746/101 175/747/103 +f 142/748/100 175/749/103 143/750/102 +f 141/751/98 173/752/99 174/753/101 +f 141/754/98 174/755/101 142/756/100 +f 140/757/96 172/758/97 173/759/99 +f 140/760/96 173/761/99 141/762/98 +f 139/763/94 171/764/95 172/765/97 +f 139/766/94 172/767/97 140/768/96 +f 138/769/92 170/770/93 171/771/95 +f 138/772/92 171/773/95 139/774/94 +f 137/775/90 169/776/91 170/777/93 +f 137/778/90 170/779/93 138/780/92 +f 136/781/88 168/782/89 169/783/91 +f 136/784/88 169/785/91 137/786/90 +f 135/787/86 167/788/87 168/789/89 +f 135/790/86 168/791/89 136/792/88 +f 134/793/83 166/794/84 167/795/87 +f 134/796/83 167/797/87 135/798/86 +f 133/799/82 165/800/85 166/801/84 +f 133/802/82 166/803/84 134/804/83 +f 132/805/73 100/806/72 99/807/12 +f 132/808/73 99/809/12 131/810/10 +f 131/811/10 99/812/12 98/813/15 +f 131/814/10 98/815/15 130/816/14 +f 130/817/14 98/818/15 97/819/17 +f 130/820/14 97/821/17 129/822/81 +f 129/823/81 97/824/17 96/825/80 +f 129/826/81 96/827/80 128/828/18 +f 128/829/18 96/830/80 95/831/21 +f 128/832/18 95/833/21 127/834/20 +f 127/835/20 95/836/21 94/837/22 +f 127/838/20 94/839/22 126/840/2 +f 126/841/2 94/842/22 93/843/23 +f 126/844/2 93/845/23 125/846/3 +f 125/847/3 93/848/23 92/849/79 +f 125/850/3 92/851/79 124/852/24 +f 124/853/24 92/854/79 91/855/27 +f 124/856/24 91/857/27 123/858/26 +f 123/859/26 91/860/27 90/861/29 +f 123/862/26 90/863/29 122/864/28 +f 122/865/28 90/866/29 89/867/31 +f 122/868/28 89/869/31 121/870/78 +f 121/871/78 89/872/31 88/873/77 +f 121/874/78 88/875/77 120/876/32 +f 120/877/32 88/878/77 87/879/35 +f 120/880/32 87/881/35 119/882/34 +f 119/883/34 87/884/35 86/885/37 +f 119/886/34 86/887/37 118/888/36 +f 118/889/36 86/890/37 85/891/39 +f 118/892/36 85/893/39 117/894/38 +f 117/895/38 85/896/39 84/897/41 +f 117/898/38 84/899/41 116/900/40 +f 116/901/40 84/902/41 83/903/43 +f 116/904/40 83/905/43 115/906/42 +f 115/907/42 83/908/43 82/909/45 +f 115/910/42 82/911/45 114/912/44 +f 114/913/44 82/914/45 81/915/47 +f 114/916/44 81/917/47 113/918/46 +f 113/919/46 81/920/47 80/921/49 +f 113/922/46 80/923/49 112/924/48 +f 112/925/48 80/926/49 79/927/51 +f 112/928/48 79/929/51 111/930/50 +f 111/931/50 79/932/51 78/933/53 +f 111/934/50 78/935/53 110/936/52 +f 110/937/52 78/938/53 77/939/55 +f 110/940/52 77/941/55 109/942/54 +f 109/943/54 77/944/55 76/945/57 +f 109/946/54 76/947/57 108/948/76 +f 108/949/76 76/950/57 75/951/75 +f 108/952/76 75/953/75 107/954/58 +f 107/955/58 75/956/75 74/957/61 +f 107/958/58 74/959/61 106/960/60 +f 106/961/60 74/962/61 73/963/63 +f 106/964/60 73/965/63 105/966/62 +f 105/967/62 73/968/63 72/969/65 +f 105/970/62 72/971/65 104/972/64 +f 104/973/64 72/974/65 71/975/67 +f 104/976/64 71/977/67 103/978/66 +f 103/979/66 71/980/67 70/981/74 +f 103/982/66 70/983/74 102/984/68 +f 102/985/68 70/986/74 69/987/71 +f 102/988/68 69/989/71 101/990/70 +f 101/991/70 69/992/71 100/993/72 +f 101/994/70 100/995/72 132/996/73 +f 33/997/13 1/998/9 32/999/70 +f 33/1000/13 32/1001/70 64/1002/71 +f 31/1003/68 63/1004/69 64/1005/71 +f 31/1006/68 64/1007/71 32/1008/70 +f 30/1009/66 62/1010/67 63/1011/69 +f 30/1012/66 63/1013/69 31/1014/68 +f 29/1015/64 61/1016/65 62/1017/67 +f 29/1018/64 62/1019/67 30/1020/66 +f 28/1021/62 60/1022/63 61/1023/65 +f 28/1024/62 61/1025/65 29/1026/64 +f 27/1027/60 59/1028/61 60/1029/63 +f 27/1030/60 60/1031/63 28/1032/62 +f 26/1033/58 58/1034/59 59/1035/61 +f 26/1036/58 59/1037/61 27/1038/60 +f 25/1039/56 57/1040/57 58/1041/59 +f 25/1042/56 58/1043/59 26/1044/58 +f 24/1045/54 56/1046/55 57/1047/57 +f 24/1048/54 57/1049/57 25/1050/56 +f 23/1051/52 55/1052/53 56/1053/55 +f 23/1054/52 56/1055/55 24/1056/54 +f 22/1057/50 54/1058/51 55/1059/53 +f 22/1060/50 55/1061/53 23/1062/52 +f 21/1063/48 53/1064/49 54/1065/51 +f 21/1066/48 54/1067/51 22/1068/50 +f 20/1069/46 52/1070/47 53/1071/49 +f 20/1072/46 53/1073/49 21/1074/48 +f 19/1075/44 51/1076/45 52/1077/47 +f 19/1078/44 52/1079/47 20/1080/46 +f 18/1081/42 50/1082/43 51/1083/45 +f 18/1084/42 51/1085/45 19/1086/44 +f 17/1087/40 49/1088/41 50/1089/43 +f 17/1090/40 50/1091/43 18/1092/42 +f 16/1093/38 48/1094/39 49/1095/41 +f 16/1096/38 49/1097/41 17/1098/40 +f 15/1099/36 47/1100/37 48/1101/39 +f 15/1102/36 48/1103/39 16/1104/38 +f 14/1105/34 46/1106/35 47/1107/37 +f 14/1108/34 47/1109/37 15/1110/36 +f 13/1111/32 45/1112/33 46/1113/35 +f 13/1114/32 46/1115/35 14/1116/34 +f 12/1117/30 44/1118/31 45/1119/33 +f 12/1120/30 45/1121/33 13/1122/32 +f 11/1123/28 43/1124/29 44/1125/31 +f 11/1126/28 44/1127/31 12/1128/30 +f 10/1129/26 42/1130/27 43/1131/29 +f 10/1132/26 43/1133/29 11/1134/28 +f 9/1135/24 41/1136/25 42/1137/27 +f 9/1138/24 42/1139/27 10/1140/26 +f 8/1141/3 40/1142/23 41/1143/25 +f 8/1144/3 41/1145/25 9/1146/24 +f 7/1147/2 39/1148/22 40/1149/23 +f 7/1150/2 40/1151/23 8/1152/3 +f 6/1153/20 38/1154/21 39/1155/22 +f 6/1156/20 39/1157/22 7/1158/2 +f 5/1159/18 37/1160/19 38/1161/21 +f 5/1162/18 38/1163/21 6/1164/20 +f 4/1165/16 36/1166/17 37/1167/19 +f 4/1168/16 37/1169/19 5/1170/18 +f 3/1171/14 35/1172/15 36/1173/17 +f 3/1174/14 36/1175/17 4/1176/16 +f 2/1177/10 34/1178/12 35/1179/15 +f 2/1180/10 35/1181/15 3/1182/14 +f 1/1183/9 33/1184/13 34/1185/12 +f 1/1186/9 34/1187/12 2/1188/10 Added: trunk/rcssserver3d/data/models/lfoot.obj =================================================================== --- trunk/rcssserver3d/data/models/lfoot.obj (rev 0) +++ trunk/rcssserver3d/data/models/lfoot.obj 2009-01-21 09:59:55 UTC (rev 25) @@ -0,0 +1,479 @@ +# Blender3D v245 OBJ File: lfoot.blend +# www.blender3d.org +mtllib nao.mtl +o foot.002_Sphere.002 +v -0.549998 0.550002 -0.000003 +v -0.550002 -0.549998 0.112624 +v -0.549995 0.550002 -0.250002 +v -0.550000 -0.549998 -0.250002 +v -0.442741 0.275002 0.112624 +v -0.442742 0.000002 0.112624 +v -0.442743 -0.274998 0.112624 +v -0.442738 0.275002 -0.250002 +v -0.442740 0.000002 -0.250002 +v -0.442741 -0.274998 -0.250002 +v -0.550000 0.275000 0.112624 +v -0.550001 -0.000000 0.112624 +v -0.550002 -0.275000 0.112624 +v -0.549998 0.275000 -0.250002 +v -0.549999 -0.000000 -0.250002 +v -0.550000 -0.275000 -0.250002 +v -0.504030 0.666002 -0.002957 +v -0.385769 0.842995 -0.002956 +v -0.208777 0.961257 -0.002954 +v -0.000001 1.002786 -0.002952 +v 0.208777 0.961258 -0.002950 +v 0.385771 0.842995 -0.002947 +v 0.504035 0.666002 -0.002946 +v 0.504034 0.650111 0.076950 +v 0.385768 0.813632 0.144681 +v 0.208773 0.922892 0.189935 +v -0.000005 0.961260 0.205825 +v -0.208781 0.922892 0.189931 +v -0.385772 0.813631 0.144672 +v -0.504032 0.650111 0.076938 +v -0.545556 0.457225 -0.002957 +v 0.545565 0.457225 -0.002945 +v -0.504030 0.757872 -0.002957 +v -0.385769 0.934864 -0.002956 +v -0.208777 1.053127 -0.002954 +v -0.000001 1.094655 -0.002952 +v 0.208777 1.053127 -0.002950 +v 0.385771 0.934864 -0.002947 +v 0.504035 0.757872 -0.002946 +v 0.504034 0.741981 0.076950 +v 0.385768 0.905501 0.144681 +v 0.208773 1.014762 0.189935 +v -0.000005 1.053129 0.205825 +v -0.208781 1.014762 0.189931 +v -0.385772 0.905501 0.144672 +v -0.504031 0.741980 0.076938 +v -0.545556 0.549094 -0.002957 +v 0.545565 0.549095 -0.002945 +v -0.545566 0.460329 -0.006334 +v -0.504040 0.669106 -0.006334 +v -0.385779 0.846099 -0.006333 +v -0.208787 0.964362 -0.006331 +v -0.000011 1.005890 -0.006329 +v 0.208767 0.964362 -0.006327 +v 0.385761 0.846099 -0.006324 +v 0.504025 0.669106 -0.006322 +v 0.504024 0.653215 0.073573 +v 0.385758 0.816736 0.141304 +v 0.208763 0.925997 0.186559 +v -0.000015 0.964364 0.202448 +v -0.208791 0.925997 0.186554 +v -0.385782 0.816736 0.141295 +v -0.504041 0.653215 0.073562 +v -0.504042 0.607959 0.141294 +v -0.385783 0.733113 0.266448 +v -0.208793 0.816738 0.350074 +v -0.000017 0.846103 0.379441 +v 0.208761 0.816738 0.350079 +v 0.385756 0.733113 0.266456 +v 0.504023 0.607959 0.141305 +v 0.504022 0.540227 0.186563 +v 0.385756 0.607961 0.350081 +v 0.208760 0.653219 0.459340 +v -0.000018 0.669112 0.497704 +v -0.208794 0.653219 0.459335 +v -0.385784 0.607... [truncated message content] |
From: <he...@us...> - 2009-01-21 08:27:48
|
Revision: 24 http://simspark.svn.sourceforge.net/simspark/?rev=24&view=rev Author: hedayat Date: 2009-01-21 08:27:33 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Add cmake support for documentation generation Don't install .svn directories when using cmake Some cleanup Now, CMake support should be inline with autoconf support. Modified Paths: -------------- trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/doc/CMakeLists.txt trunk/spark/doc/Doxyfile.in trunk/spark/doc/devel/CMakeLists.txt trunk/spark/lib/kerosin/CMakeLists.txt trunk/spark/lib/oxygen/CMakeLists.txt trunk/spark/lib/salt/CMakeLists.txt trunk/spark/lib/zeitgeist/CMakeLists.txt trunk/spark/utility/rcssnet/CMakeLists.txt Added Paths: ----------- trunk/spark/cmake/UseLATEX.cmake Removed Paths: ------------- trunk/spark/doc/devel/howtos/CMakeLists.txt Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 2.6) project(simspark CXX C) +set(PACKAGE_VERSION "0.1") ########## check for headerfiles/libraries ########## include(CheckIncludeFile) @@ -147,8 +148,9 @@ ########### CPack section ############# set(CPACK_SOURCE_GENERATOR TGZ) set(CPACK_SOURCE_IGNORE_FILES - /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].*) -set(CPACK_PACKAGE_VERSION "0.1") + /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].* /bootstrap /RELEASE + /styles/ /papers/ /rpm.am /msi.am /codingstyle.txt) +set(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION}) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) @@ -156,27 +158,11 @@ #original Makefile.am contents follow: -#### utility subdir has to be made first -#SUBDIRS = utility lib plugin test doc spark data -# #pkginclude_HEADERS = \ #sparkconfig.h # -#doc: doc-recursive -#doc-recursive: -# cd doc && $(MAKE) $(AM_MAKEFLAGS) doc -# -#CLEANFILES = -# #DISTCLEANFILES = $(top_builddir)/macosX/SDLMain.o $(top_builddir)/macosX/libSDLmain.a -#EXTRA_DIST = macosX \ -# windows/sparkconfig.h windows/simspark.iss windows/spark.ico -#dist_doc_DATA = AUTHORS ChangeLog COPYING NEWS README THANKS # -#EXTRA_SRC_DISTS = -#EXTRA_BIN_DISTS = -#include $(top_srcdir)/config.aux/dist.am -# #UPLOAD_BIN = #UPLOAD_SRC = upload-gzip upload-bzip2 upload-zip #UPLOAD_TARGETS = \ @@ -185,11 +171,4 @@ #{zip=>@PACKAGE@-@VERSION@.zip} #include $(top_srcdir)/config.aux/sf.am # -# #include $(top_srcdir)/config.aux/cvs.am -# -##MSI_SETUP_FILE=Setup/Release/@PAC...@Se...i -##include $(top_srcdir)/config.aux/msi.am -# -##include $(top_srcdir)/config.aux/rpm.am -# Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/ChangeLog 2009-01-21 08:27:33 UTC (rev 24) @@ -1,3 +1,26 @@ +2009-01-21 Hedayat Vatankhah <he...@gr...> + + * CMakeLists.txt: + - make cpack support more like 'make dist'. It includes some additional + files like CMakeLists.txt files; so, using 'make package_source' is + preferred to 'make dist' now. + - some cleanup + + * lib/salt/CMakeLists.txt: + * lib/oxygen/CMakeLists.txt: + * lib/kerosin/CMakeLists.txt: + * lib/zeitgeist/CMakeLists.txt: + * utility/rcssnet/CMakeLists.txt: + - don't install .svn directories! + + * doc/Doxyfile.in: + - generate documents inside build directory instead of source directory + + * doc/devel/CMakeLists.txt: + * doc/CMakeLists.txt: + * cmake/UseLATEX.cmake: + - add cmake support for generating documents + 2009-01-20 Hedayat Vatankhah <he...@gr...> * lib/zeitgeist/fileserver/fileserver.h: Added: trunk/spark/cmake/UseLATEX.cmake =================================================================== --- trunk/spark/cmake/UseLATEX.cmake (rev 0) +++ trunk/spark/cmake/UseLATEX.cmake 2009-01-21 08:27:33 UTC (rev 24) @@ -0,0 +1,770 @@ +# File: UseLATEX.cmake +# CMAKE commands to actually use the LaTeX compiler +# Version: 1.7.0 +# Author: Kenneth Moreland (kmorel at sandia dot gov) +# +# Copyright 2004 Sandia Corporation. +# Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive +# license for use of this work by or on behalf of the +# U.S. Government. Redistribution and use in source and binary forms, with +# or without modification, are permitted provided that this Notice and any +# statement of authorship are reproduced on all copies. +# +# The following MACROS are defined: +# +# ADD_LATEX_DOCUMENT(<tex_file> +# [BIBFILES <bib_files>] +# [INPUTS <input_tex_files>] +# [IMAGE_DIRS] <image_directories> +# [IMAGES] <image_files> +# [CONFIGURE] <tex_files> +# [DEPENDS] <tex_files> +# [USE_INDEX] [USE_GLOSSARY] +# [DEFAULT_PDF] [MANGLE_TARGET_NAMES]) +# Adds targets that compile <tex_file>. The latex output is placed +# in LATEX_OUTPUT_PATH or CMAKE_CURRENT_BINARY_DIR if the former is +# not set. The latex program is picky about where files are located, +# so all input files are copied from the source directory to the +# output directory. This includes the target tex file, any tex file +# listed with the INPUTS option, the bibliography files listed with +# the BIBFILES option, and any .cls, .bst, and .clo files found in +# the current source directory. Images found in the IMAGE_DIRS +# directories or listed by IMAGES are also copied to the output +# directory and coverted to an appropriate format if necessary. Any +# tex files also listed with the CONFIGURE option are also processed +# with the CMake CONFIGURE_FILE command (with the @ONLY flag. Any +# file listed in CONFIGURE but not the target tex file or listed with +# INPUTS has no effect. DEPENDS can be used to specify generated files +# that are needed to compile the latex target. +# +# The following targets are made: +# dvi: Makes <name>.dvi +# pdf: Makes <name>.pdf using pdflatex. +# safepdf: Makes <name>.pdf using ps2pdf. If using the default +# program arguments, this will ensure all fonts are +# embedded and no lossy compression has been performed +# on images. +# ps: Makes <name>.ps +# html: Makes <name>.html +# auxclean: Deletes <name>.aux. This is sometimes necessary +# if a LaTeX error occurs and writes a bad aux file. +# +# If the argument MANGLE_TARGET_NAMES is given, then each of the +# target names above will be mangled with the <tex_file> name. This +# is to make the targets unique if ADD_LATEX_DOCUMENT is called for +# multiple documents. If the argument USE_INDEX is given, then +# commands to build an index are made. If the argument USE_GLOSSARY +# is given, then commands to build a glossary are made. +# +# History: +# +# 1.7.0 Added DEPENDS options (thanks to Theodore Papadopoulp). +# +# 1.6.1 Ported the makeglossaries command to CMake and embedded the port +# into UseLATEX.cmake. +# +# 1.6.0 Allow the use of the makeglossaries command. Thanks to Oystein +# S. Haaland for the patch. +# +# 1.5.0 Allow any type of file in the INPUTS lists, not just tex file +# (suggested by Eric Noulard). As a consequence, the ability to +# specify tex files without the .tex extension is removed. The removed +# function is of dubious value anyway. +# +# When copying input files, skip over any file that exists in the +# binary directory but does not exist in the source directory with the +# assumption that these files were added by some other mechanism. I +# find this useful when creating large documents with multiple +# chapters that I want to build separately (for speed) as I work on +# them. I use the same boilerplate as the starting point for all +# and just copy it with different configurations. This was what the +# separate ADD_LATEX_DOCUMENT method was supposed to originally be for. +# Since its external use is pretty much deprecated, I removed that +# documentation. +# +# 1.4.1 Copy .sty files along with the other class and package files. +# +# 1.4.0 Added a MANGLE_TARGET_NAMES option that will mangle the target names. +# +# Fixed problem with copying bib files that became apparent with +# CMake 2.4. +# +# 1.3.0 Added a LATEX_OUTPUT_PATH variable that allows you or the user to +# specify where the built latex documents to go. This is especially +# handy if you want to do in-source builds. +# +# Removed the ADD_LATEX_IMAGES macro and absorbed the functionality +# into ADD_LATEX_DOCUMENT. The old interface was always kind of +# clunky anyway since you had to specify the image directory in both +# places. It also made supporting LATEX_OUTPUT_PATH problematic. +# +# Added support for jpeg files. +# +# 1.2.0 Changed the configuration options yet again. Removed the NO_CONFIGURE +# Replaced it with a CONFIGURE option that lists input files for which +# configure should be run. +# +# The pdf target no longer depends on the dvi target. This allows you +# to build latex documents that require pdflatex. Also added an option +# to make the pdf target the default one. +# +# 1.1.1 Added the NO_CONFIGURE option. The @ character can be used when +# specifying table column separators. If two or more are used, then +# will incorrectly substitute them. +# +# 1.1.0 Added ability include multiple bib files. Added ability to do copy +# sub-tex files for multipart tex files. +# +# 1.0.0 If both ps and pdf type images exist, just copy the one that +# matches the current render mode. Replaced a bunch of STRING +# commands with GET_FILENAME_COMPONENT commands that were made to do +# the desired function. +# +# 0.4.0 First version posted to CMake Wiki. +# + +############################################################################# +# Find the location of myself while originally executing. If you do this +# inside of a macro, it will recode where the macro was invoked. +############################################################################# +SET(LATEX_USE_LATEX_LOCATION ${CMAKE_CURRENT_LIST_FILE} + CACHE INTERNAL "Location of UseLATEX.cmake file." FORCE + ) + +############################################################################# +# Generic helper macros +############################################################################# + +# Helpful list macros. +MACRO(LATEX_CAR var) + SET(${var} ${ARGV1}) +ENDMACRO(LATEX_CAR) +MACRO(LATEX_CDR var junk) + SET(${var} ${ARGN}) +ENDMACRO(LATEX_CDR) + +MACRO(LATEX_LIST_CONTAINS var value) + SET(${var}) + FOREACH (value2 ${ARGN}) + IF (${value} STREQUAL ${value2}) + SET(${var} TRUE) + ENDIF (${value} STREQUAL ${value2}) + ENDFOREACH (value2) +ENDMACRO(LATEX_LIST_CONTAINS) + +# Parse macro arguments. +MACRO(LATEX_PARSE_ARGUMENTS prefix arg_names option_names) + SET(DEFAULT_ARGS) + FOREACH(arg_name ${arg_names}) + SET(${prefix}_${arg_name}) + ENDFOREACH(arg_name) + FOREACH(option ${option_names}) + SET(${prefix}_${option}) + ENDFOREACH(option) + + SET(current_arg_name DEFAULT_ARGS) + SET(current_arg_list) + FOREACH(arg ${ARGN}) + LATEX_LIST_CONTAINS(is_arg_name ${arg} ${arg_names}) + IF (is_arg_name) + SET(${prefix}_${current_arg_name} ${current_arg_list}) + SET(current_arg_name ${arg}) + SET(current_arg_list) + ELSE (is_arg_name) + LATEX_LIST_CONTAINS(is_option ${arg} ${option_names}) + IF (is_option) + SET(${prefix}_${arg} TRUE) + ELSE (is_option) + SET(current_arg_list ${current_arg_list} ${arg}) + ENDIF (is_option) + ENDIF (is_arg_name) + ENDFOREACH(arg) + SET(${prefix}_${current_arg_name} ${current_arg_list}) +ENDMACRO(LATEX_PARSE_ARGUMENTS) + +# Match the contents of a file to a regular expression. +MACRO(LATEX_FILE_MATCH variable filename regexp default) + # The FILE STRINGS command would be a bit better, but it's not supported on + # older versions of CMake. + FILE(READ ${filename} file_contents) + STRING(REGEX MATCHALL "${regexp}" + ${variable} ${file_contents} + ) + IF (NOT ${variable}) + SET(${variable} "${default}") + ENDIF (NOT ${variable}) +ENDMACRO(LATEX_FILE_MATCH) + +############################################################################# +# Macros that perform processing during a LaTeX build. +############################################################################# +MACRO(LATEX_MAKEGLOSSARIES) + MESSAGE("**************************** In makeglossaries") + IF (NOT LATEX_TARGET) + MESSAGE(SEND_ERROR "Need to define LATEX_TARGET") + ENDIF (NOT LATEX_TARGET) + + IF (NOT MAKEINDEX_COMPILER) + MESSAGE(SEND_ERROR "Need to define MAKEINDEX_COMPILER") + ENDIF (NOT MAKEINDEX_COMPILER) + + SET(aux_file ${LATEX_TARGET}.aux) + + IF (NOT EXISTS ${aux_file}) + MESSAGE(SEND_ERROR "${aux_file} does not exist. Run latex on your target file.") + ENDIF (NOT EXISTS ${aux_file}) + + LATEX_FILE_MATCH(newglossary_lines ${aux_file} + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "@newglossary{main}{glg}{gls}{glo}" + ) + + LATEX_FILE_MATCH(istfile_line ${aux_file} + "@istfilename[ \t]*{([^}]*)}" + "@istfilename{${LATEX_TARGET}.ist}" + ) + STRING(REGEX REPLACE "@istfilename[ \t]*{([^}]*)}" "\\1" + istfile ${istfile_line} + ) + + FOREACH(newglossary ${newglossary_lines}) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "\\1" glossary_name ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\2" glossary_log ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\3" glossary_out ${newglossary} + ) + STRING(REGEX REPLACE + "@newglossary[ \t]*{([^}]*)}{([^}]*)}{([^}]*)}{([^}]*)}" + "${LATEX_TARGET}.\\4" glossary_in ${newglossary} + ) + MESSAGE("${MAKEINDEX_COMPILER} ${MAKEGLOSSARIES_COMPILER_FLAGS} -s ${istfile} -t ${glossary_log} -o ${glossary_out} ${glossary_in}") + EXEC_PROGRAM(${MAKEINDEX_COMPILER} ARGS ${MAKEGLOSSARIES_COMPILER_FLAGS} + -s ${istfile} -t ${glossary_log} -o ${glossary_out} ${glossary_in} + ) + ENDFOREACH(newglossary) +ENDMACRO(LATEX_MAKEGLOSSARIES) + +############################################################################# +# Helper macros for establishing LaTeX build. +############################################################################# + +MACRO(LATEX_NEEDIT VAR NAME) + IF (NOT ${VAR}) + MESSAGE(SEND_ERROR "I need the ${NAME} command.") + ENDIF(NOT ${VAR}) +ENDMACRO(LATEX_NEEDIT) + +MACRO(LATEX_WANTIT VAR NAME) + IF (NOT ${VAR}) + MESSAGE(STATUS "I could not find the ${NAME} command.") + ENDIF(NOT ${VAR}) +ENDMACRO(LATEX_WANTIT) + +MACRO(LATEX_SETUP_VARIABLES) + SET(LATEX_OUTPUT_PATH "${LATEX_OUTPUT_PATH}" + CACHE PATH "If non empty, specifies the location to place LaTeX output." + ) + + FIND_PACKAGE(LATEX) + + MARK_AS_ADVANCED(CLEAR + LATEX_COMPILER + PDFLATEX_COMPILER + BIBTEX_COMPILER + MAKEINDEX_COMPILER + DVIPS_CONVERTER + PS2PDF_CONVERTER + LATEX2HTML_CONVERTER + ) + + LATEX_NEEDIT(LATEX_COMPILER latex) + LATEX_WANTIT(PDFLATEX_COMPILER pdflatex) + LATEX_NEEDIT(BIBTEX_COMPILER bibtex) + LATEX_NEEDIT(MAKEINDEX_COMPILER makeindex) + LATEX_WANTIT(DVIPS_CONVERTER dvips) + LATEX_WANTIT(PS2PDF_CONVERTER ps2pdf) + LATEX_WANTIT(LATEX2HTML_CONVERTER latex2html) + + SET(LATEX_COMPILER_FLAGS "-interaction=nonstopmode" + CACHE STRING "Flags passed to latex.") + SET(PDFLATEX_COMPILER_FLAGS ${LATEX_COMPILER_FLAGS} + CACHE STRING "Flags passed to pdflatex.") + SET(BIBTEX_COMPILER_FLAGS "" + CACHE STRING "Flags passed to bibtex.") + SET(MAKEINDEX_COMPILER_FLAGS "" + CACHE STRING "Flags passed to makeindex.") + SET(MAKEGLOSSARIES_COMPILER_FLAGS "" + CACHE STRING "Flags passed to makeglossaries.") + SET(DVIPS_CONVERTER_FLAGS "-Ppdf -G0 -t letter" + CACHE STRING "Flags passed to dvips.") + SET(PS2PDF_CONVERTER_FLAGS "-dMaxSubsetPct=100 -dCompatibilityLevel=1.3 -dSubsetFonts=true -dEmbedAllFonts=true -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode -dMonoImageFilter=/FlateEncode" + CACHE STRING "Flags passed to ps2pdf.") + SET(LATEX2HTML_CONVERTER_FLAGS "" + CACHE STRING "Flags passed to latex2html.") + MARK_AS_ADVANCED( + LATEX_COMPILER_FLAGS + PDFLATEX_COMPILER_FLAGS + BIBTEX_COMPILER_FLAGS + MAKEINDEX_COMPILER_FLAGS + MAKEGLOSSARIES_COMPILER_FLAGS + DVIPS_CONVERTER_FLAGS + PS2PDF_CONVERTER_FLAGS + LATEX2HTML_CONVERTER_FLAGS + ) + SEPARATE_ARGUMENTS(LATEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(PDFLATEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(BIBTEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(MAKEINDEX_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(MAKEGLOSSARIES_COMPILER_FLAGS) + SEPARATE_ARGUMENTS(DVIPS_CONVERTER_FLAGS) + SEPARATE_ARGUMENTS(PS2PDF_CONVERTER_FLAGS) + SEPARATE_ARGUMENTS(LATEX2HTML_CONVERTER_FLAGS) + + FIND_PROGRAM(IMAGEMAGICK_CONVERT convert + DOC "The convert program that comes with ImageMagick (available at http://www.imagemagick.org)." + ) + IF (NOT IMAGEMAGICK_CONVERT) + MESSAGE(SEND_ERROR "Could not find convert program. Please download ImageMagick from http://www.imagemagick.org and install.") + ENDIF (NOT IMAGEMAGICK_CONVERT) + + OPTION(LATEX_SMALL_IMAGES + "If on, the raster images will be converted to 1/6 the original size. This is because papers usually require 600 dpi images whereas most monitors only require at most 96 dpi. Thus, smaller images make smaller files for web distributation and can make it faster to read dvi files." + OFF) + IF (LATEX_SMALL_IMAGES) + SET(LATEX_RASTER_SCALE 16) + SET(LATEX_OPPOSITE_RASTER_SCALE 100) + ELSE (LATEX_SMALL_IMAGES) + SET(LATEX_RASTER_SCALE 100) + SET(LATEX_OPPOSITE_RASTER_SCALE 16) + ENDIF (LATEX_SMALL_IMAGES) + + # Just holds extensions for known image types. They should all be lower case. + SET(LATEX_DVI_VECTOR_IMAGE_EXTENSIONS .eps) + SET(LATEX_DVI_RASTER_IMAGE_EXTENSIONS) + SET(LATEX_DVI_IMAGE_EXTENSIONS + ${LATEX_DVI_VECTOR_IMAGE_EXTENSIONS} ${LATEX_DVI_RASTER_IMAGE_EXTENSIONS}) + SET(LATEX_PDF_VECTOR_IMAGE_EXTENSIONS .pdf) + SET(LATEX_PDF_RASTER_IMAGE_EXTENSIONS .png .jpeg .jpg) + SET(LATEX_PDF_IMAGE_EXTENSIONS + ${LATEX_PDF_VECTOR_IMAGE_EXTENSIONS} ${LATEX_PDF_RASTER_IMAGE_EXTENSIONS}) + SET(LATEX_IMAGE_EXTENSIONS + ${LATEX_DVI_IMAGE_EXTENSIONS} ${LATEX_PDF_IMAGE_EXTENSIONS}) +ENDMACRO(LATEX_SETUP_VARIABLES) + +MACRO(LATEX_GET_OUTPUT_PATH var) + SET(${var}) + IF (LATEX_OUTPUT_PATH) + IF ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + MESSAGE(SEND_ERROR "You cannot set LATEX_OUTPUT_PATH to the same directory that contains LaTeX input files.") + ELSE ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + SET(${var} "${LATEX_OUTPUT_PATH}") + ENDIF ("${LATEX_OUTPUT_PATH}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + ELSE (LATEX_OUTPUT_PATH) + IF ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + MESSAGE(SEND_ERROR "LaTeX files must be built out of source or you must set LATEX_OUTPUT_PATH.") + ELSE ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + SET(${var} "${CMAKE_CURRENT_BINARY_DIR}") + ENDIF ("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + ENDIF (LATEX_OUTPUT_PATH) +ENDMACRO(LATEX_GET_OUTPUT_PATH) + +# Makes custom commands to convert a file to a particular type. +MACRO(LATEX_CONVERT_IMAGE output_files input_file output_extension convert_flags + output_extensions other_files) + SET(input_dir ${CMAKE_CURRENT_SOURCE_DIR}) + LATEX_GET_OUTPUT_PATH(output_dir) + + GET_FILENAME_COMPONENT(extension "${input_file}" EXT) + + STRING(REGEX REPLACE "\\.[^.]*\$" ${output_extension} output_file + "${input_file}") + + LATEX_LIST_CONTAINS(is_type ${extension} ${output_extensions}) + IF (is_type) + IF (convert_flags) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${output_file} + COMMAND ${IMAGEMAGICK_CONVERT} + ARGS ${input_dir}/${input_file} ${convert_flags} + ${output_dir}/${output_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${output_file}) + ELSE (convert_flags) + # As a shortcut, we can just copy the file. + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${input_file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${input_dir}/${input_file} ${output_dir}/${input_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${input_file}) + ENDIF (convert_flags) + ELSE (is_type) + SET(do_convert TRUE) + # Check to see if there is another input file of the appropriate type. + FOREACH(valid_extension ${output_extensions}) + STRING(REGEX REPLACE "\\.[^.]*\$" ${output_extension} try_file + "${input_file}") + LATEX_LIST_CONTAINS(has_native_file "${try_file}" ${other_files}) + IF (has_native_file) + SET(do_convert FALSE) + ENDIF (has_native_file) + ENDFOREACH(valid_extension) + + # If we still need to convert, do it. + IF (do_convert) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${output_file} + COMMAND ${IMAGEMAGICK_CONVERT} + ARGS ${input_dir}/${input_file} ${convert_flags} + ${output_dir}/${output_file} + DEPENDS ${input_dir}/${input_file} + ) + SET(${output_files} ${${output_files}} ${output_dir}/${output_file}) + ENDIF (do_convert) + ENDIF (is_type) +ENDMACRO(LATEX_CONVERT_IMAGE) + +# Adds custom commands to process the given files for dvi and pdf builds. +# Adds the output files to the given variables (does not replace). +MACRO(LATEX_PROCESS_IMAGES dvi_outputs pdf_outputs) + LATEX_GET_OUTPUT_PATH(output_dir) + FOREACH(file ${ARGN}) + IF (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + GET_FILENAME_COMPONENT(extension "${file}" EXT) + SET(convert_flags) + + # Check to see if we need to downsample the image. + LATEX_LIST_CONTAINS(is_raster extension + ${LATEX_DVI_RASTER_IMAGE_EXTENSIONS} + ${LATEX_PDF_RASTER_IMAGE_EXTENSIONS}) + IF (LATEX_SMALL_IMAGES) + IF (is_raster) + SET(convert_flags -resize ${LATEX_RASTER_SCALE}%) + ENDIF (is_raster) + ENDIF (LATEX_SMALL_IMAGES) + + # Make sure the output directory exists. + GET_FILENAME_COMPONENT(path "${output_dir}/${file}" PATH) + MAKE_DIRECTORY("${path}") + + # Do conversions for dvi. + LATEX_CONVERT_IMAGE(${dvi_outputs} "${file}" .eps "${convert_flags}" + "${LATEX_DVI_IMAGE_EXTENSIONS}" "${ARGN}") + + # Do conversions for pdf. + IF (is_raster) + LATEX_CONVERT_IMAGE(${pdf_outputs} "${file}" .png "${convert_flags}" + "${LATEX_PDF_IMAGE_EXTENSIONS}" "${ARGN}") + ELSE (is_raster) + LATEX_CONVERT_IMAGE(${pdf_outputs} "${file}" .pdf "${convert_flags}" + "${LATEX_PDF_IMAGE_EXTENSIONS}" "${ARGN}") + ENDIF (is_raster) + ELSE (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + MESSAGE("Could not find file \"${CMAKE_CURRENT_SOURCE_DIR}/${file}\"") + ENDIF (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${file}") + ENDFOREACH(file) +ENDMACRO(LATEX_PROCESS_IMAGES) + +MACRO(ADD_LATEX_IMAGES) + MESSAGE("The ADD_LATEX_IMAGES macro is deprecated. Image directories are specified with LATEX_ADD_DOCUMENT.") +ENDMACRO(ADD_LATEX_IMAGES) + +MACRO(LATEX_COPY_GLOBBED_FILES pattern dest) + FILE(GLOB file_list ${pattern}) + FOREACH(in_file ${file_list}) + GET_FILENAME_COMPONENT(out_file ${in_file} NAME) + CONFIGURE_FILE(${in_file} ${dest}/${out_file} COPYONLY) + ENDFOREACH(in_file) +ENDMACRO(LATEX_COPY_GLOBBED_FILES) + +MACRO(LATEX_COPY_INPUT_FILE file) + LATEX_GET_OUTPUT_PATH(output_dir) + + IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) + GET_FILENAME_COMPONENT(path ${file} PATH) + FILE(MAKE_DIRECTORY ${output_dir}/${path}) + + LATEX_LIST_CONTAINS(use_config ${file} ${LATEX_CONFIGURE}) + IF (use_config) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file} + ${output_dir}/${file} + @ONLY + ) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${file} + COMMAND ${CMAKE_COMMAND} + ARGS ${CMAKE_BINARY_DIR} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file} + ) + ELSE (use_config) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${file} ${output_dir}/${file} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file} + ) + ENDIF (use_config) + ELSE (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) + IF (EXISTS ${output_dir}/${file}) + # Special case: output exists but input does not. Assume that it was + # created elsewhere and skip the input file copy. + ELSE (EXISTS ${output_dir}/${file}) + MESSAGE("Could not find input file ${CMAKE_CURRENT_SOURCE_DIR}/${file}") + ENDIF (EXISTS ${output_dir}/${file}) + ENDIF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}) +ENDMACRO(LATEX_COPY_INPUT_FILE) + +############################################################################# +# Commands provided by the UseLATEX.cmake "package" +############################################################################# + +MACRO(LATEX_USAGE command message) + MESSAGE(SEND_ERROR + "${message}\nUsage: ${command}(<tex_file>\n [BIBFILES <bib_file> <bib_file> ...]\n [INPUTS <tex_file> <tex_file> ...]\n [IMAGE_DIRS <directory1> <directory2> ...]\n [IMAGES <image_file1> <image_file2>\n [CONFIGURE <tex_file> <tex_file> ...]\n [DEPENDS <tex_file> <tex_file> ...]\n [USE_INDEX] [USE_GLOSSARY] [DEFAULT_PDF] [MANGLE_TARGET_NAMES])" + ) +ENDMACRO(LATEX_USAGE command message) + +# Parses arguments to ADD_LATEX_DOCUMENT and ADD_LATEX_TARGETS and sets the +# variables LATEX_TARGET, LATEX_IMAGE_DIR, LATEX_BIBFILES, LATEX_DEPENDS, and +# LATEX_INPUTS. +MACRO(PARSE_ADD_LATEX_ARGUMENTS command) + LATEX_PARSE_ARGUMENTS( + LATEX + "BIBFILES;INPUTS;IMAGE_DIRS;IMAGES;CONFIGURE;DEPENDS" + "USE_INDEX;USE_GLOSSARY;USE_GLOSSARIES;DEFAULT_PDF;MANGLE_TARGET_NAMES" + ${ARGN} + ) + + # The first argument is the target latex file. + IF (LATEX_DEFAULT_ARGS) + LATEX_CAR(LATEX_MAIN_INPUT ${LATEX_DEFAULT_ARGS}) + LATEX_CDR(LATEX_DEFAULT_ARGS ${LATEX_DEFAULT_ARGS}) + GET_FILENAME_COMPONENT(LATEX_TARGET ${LATEX_MAIN_INPUT} NAME_WE) + ELSE (LATEX_DEFAULT_ARGS) + LATEX_USAGE(${command} "No tex file target given to ${command}.") + ENDIF (LATEX_DEFAULT_ARGS) + + IF (LATEX_DEFAULT_ARGS) + LATEX_USAGE(${command} "Invalid or depricated arguments: ${LATEX_DEFAULT_ARGS}") + ENDIF (LATEX_DEFAULT_ARGS) + + # Backward compatibility between 1.6.0 and 1.6.1. + IF (LATEX_USE_GLOSSARIES) + SET(LATEX_USE_GLOSSARY TRUE) + ENDIF (LATEX_USE_GLOSSARIES) +ENDMACRO(PARSE_ADD_LATEX_ARGUMENTS) + +MACRO(ADD_LATEX_TARGETS) + LATEX_GET_OUTPUT_PATH(output_dir) + PARSE_ADD_LATEX_ARGUMENTS(ADD_LATEX_TARGETS ${ARGV}) + + # Set up target names. + IF (LATEX_MANGLE_TARGET_NAMES) + SET(dvi_target ${LATEX_TARGET}_dvi) + SET(pdf_target ${LATEX_TARGET}_pdf) + SET(ps_target ${LATEX_TARGET}_ps) + SET(safepdf_target ${LATEX_TARGET}_safepdf) + SET(html_target ${LATEX_TARGET}_html) + SET(auxclean_target ${LATEX_TARGET}_auxclean) + ELSE (LATEX_MANGLE_TARGET_NAMES) + SET(dvi_target dvi) + SET(pdf_target pdf) + SET(ps_target ps) + SET(safepdf_target safepdf) + SET(html_target html) + SET(auxclean_target auxclean) + ENDIF (LATEX_MANGLE_TARGET_NAMES) + + # For each directory in LATEX_IMAGE_DIRS, glob all the image files and + # place them in LATEX_IMAGES. + FOREACH(dir ${LATEX_IMAGE_DIRS}) + FOREACH(extension ${LATEX_IMAGE_EXTENSIONS}) + FILE(GLOB files ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*${extension}) + FOREACH(file ${files}) + GET_FILENAME_COMPONENT(filename ${file} NAME) + SET(LATEX_IMAGES ${LATEX_IMAGES} ${dir}/${filename}) + ENDFOREACH(file) + ENDFOREACH(extension) + ENDFOREACH(dir) + + SET(dvi_images) + SET(pdf_images) + LATEX_PROCESS_IMAGES(dvi_images pdf_images ${LATEX_IMAGES}) + + SET(make_dvi_command + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + SET(make_pdf_command + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + + SET(make_dvi_depends ${LATEX_DEPENDS} ${dvi_images}) + SET(make_pdf_depends ${LATEX_DEPENDS} ${pdf_images}) + FOREACH(input ${LATEX_MAIN_INPUT} ${LATEX_INPUTS}) + SET(make_dvi_depends ${make_dvi_depends} ${output_dir}/${input}) + SET(make_pdf_depends ${make_pdf_depends} ${output_dir}/${input}) + ENDFOREACH(input) + + IF (LATEX_BIBFILES) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${BIBTEX_COMPILER} ${BIBTEX_COMPILER_FLAGS} ${LATEX_TARGET}) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${BIBTEX_COMPILER} ${BIBTEX_COMPILER_FLAGS} ${LATEX_TARGET}) + FOREACH (bibfile ${LATEX_BIBFILES}) + SET(make_dvi_depends ${make_dvi_depends} ${output_dir}/${bibfile}) + SET(make_pdf_depends ${make_pdf_depends} ${output_dir}/${bibfile}) + ENDFOREACH (bibfile ${LATEX_BIBFILES}) + ENDIF (LATEX_BIBFILES) + + IF (LATEX_USE_INDEX) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${MAKEINDEX_COMPILER} ${MAKEINDEX_COMPILER_FLAGS} ${LATEX_TARGET}.idx) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${MAKEINDEX_COMPILER} ${MAKEINDEX_COMPILER_FLAGS} ${LATEX_TARGET}.idx) + ENDIF (LATEX_USE_INDEX) + + IF (LATEX_USE_GLOSSARY) + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${CMAKE_COMMAND} + -D LATEX_BUILD_COMMAND=makeglossaries + -D LATEX_TARGET=${LATEX_TARGET} + -D MAKEINDEX_COMPILER=${MAKEINDEX_COMPILER} + -D MAKEGLOSSARIES_COMPILER_FLAGS=${MAKEGLOSSARIES_COMPILER_FLAGS} + -P ${LATEX_USE_LATEX_LOCATION} + ) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${CMAKE_COMMAND} + -D LATEX_BUILD_COMMAND=makeglossaries + -D LATEX_TARGET=${LATEX_TARGET} + -D MAKEINDEX_COMPILER=${MAKEINDEX_COMPILER} + -D MAKEGLOSSARIES_COMPILER_FLAGS=${MAKEGLOSSARIES_COMPILER_FLAGS} + -P ${LATEX_USE_LATEX_LOCATION} + ) + ENDIF (LATEX_USE_GLOSSARY) + + SET(make_dvi_command ${make_dvi_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX_COMPILER} ${LATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + SET(make_pdf_command ${make_pdf_command} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT} + COMMAND ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PDFLATEX_COMPILER} ${PDFLATEX_COMPILER_FLAGS} ${LATEX_MAIN_INPUT}) + + IF (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${dvi_target} ${make_dvi_command} + DEPENDS ${make_dvi_depends}) + ELSE (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${dvi_target} ALL ${make_dvi_command} + DEPENDS ${make_dvi_depends}) + ENDIF (LATEX_DEFAULT_PDF) + + IF (PDFLATEX_COMPILER) + IF (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${pdf_target} ALL ${make_pdf_command} + DEPENDS ${make_pdf_depends}) + ELSE (LATEX_DEFAULT_PDF) + ADD_CUSTOM_TARGET(${pdf_target} ${make_pdf_command} + DEPENDS ${make_pdf_depends}) + ENDIF (LATEX_DEFAULT_PDF) + ENDIF (PDFLATEX_COMPILER) + + IF (DVIPS_CONVERTER) + ADD_CUSTOM_TARGET(${ps_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${DVIPS_CONVERTER} ${DVIPS_CONVERTER_FLAGS} -o ${LATEX_TARGET}.ps ${LATEX_TARGET}.dvi + ) + ADD_DEPENDENCIES(${ps_target} ${dvi_target}) + IF (PS2PDF_CONVERTER) + ADD_CUSTOM_TARGET(${safepdf_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${PS2PDF_CONVERTER} ${PS2PDF_CONVERTER_FLAGS} ${LATEX_TARGET}.ps ${LATEX_TARGET}.pdf + ) + ADD_DEPENDENCIES(${safepdf_target} ${ps_target}) + ENDIF (PS2PDF_CONVERTER) + ENDIF (DVIPS_CONVERTER) + + IF (LATEX2HTML_CONVERTER) + ADD_CUSTOM_TARGET(${html_target} + ${CMAKE_COMMAND} -E chdir ${output_dir} + ${LATEX2HTML_CONVERTER} ${LATEX2HTML_CONVERTER_FLAGS} ${LATEX_MAIN_INPUT} + ) + ADD_DEPENDENCIES(${html_target} ${LATEX_MAIN_INPUT} ${LATEX_INPUTS}) + ENDIF (LATEX2HTML_CONVERTER) + + ADD_CUSTOM_TARGET(${auxclean_target} + ${CMAKE_COMMAND} -E remove ${output_dir}/${LATEX_TARGET}.aux ${output_dir}/${LATEX_TARGET}.idx ${output_dir}/${LATEX_TARGET}.ind + ) +ENDMACRO(ADD_LATEX_TARGETS) + +MACRO(ADD_LATEX_DOCUMENT) + LATEX_GET_OUTPUT_PATH(output_dir) + IF (output_dir) + PARSE_ADD_LATEX_ARGUMENTS(ADD_LATEX_DOCUMENT ${ARGV}) + + LATEX_COPY_INPUT_FILE(${LATEX_MAIN_INPUT}) + + FOREACH (bib_file ${LATEX_BIBFILES}) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} + ${output_dir}/${bib_file} + COPYONLY) + ADD_CUSTOM_COMMAND(OUTPUT ${output_dir}/${bib_file} + COMMAND ${CMAKE_COMMAND} + ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} ${output_dir}/${bib_file} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${bib_file} + ) + ENDFOREACH (bib_file) + + FOREACH (input ${LATEX_INPUTS}) + LATEX_COPY_INPUT_FILE(${input}) + ENDFOREACH(input) + + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.cls ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.bst ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.clo ${output_dir}) + LATEX_COPY_GLOBBED_FILES(${CMAKE_CURRENT_SOURCE_DIR}/*.sty ${output_dir}) + + ADD_LATEX_TARGETS(${ARGV}) + ENDIF (output_dir) +ENDMACRO(ADD_LATEX_DOCUMENT) + +############################################################################# +# Actually do stuff +############################################################################# + +IF (LATEX_BUILD_COMMAND) + SET(command_handled) + + IF ("${LATEX_BUILD_COMMAND}" STREQUAL makeglossaries) + LATEX_MAKEGLOSSARIES() + SET(command_handled TRUE) + ENDIF ("${LATEX_BUILD_COMMAND}" STREQUAL makeglossaries) + + IF (NOT command_handled) + MESSAGE(SEND_ERROR "Unknown command: ${LATEX_BUILD_COMMAND}") + ENDIF (NOT command_handled) + +ELSE (LATEX_BUILD_COMMAND) + # Must be part of the actual configure (included from CMakeLists.txt). + LATEX_SETUP_VARIABLES() +ENDIF (LATEX_BUILD_COMMAND) Modified: trunk/spark/doc/CMakeLists.txt =================================================================== --- trunk/spark/doc/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/doc/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -1,32 +1,40 @@ add_subdirectory(devel) +find_package(Doxygen) +find_package(Perl) -########### install files ############### +if (DOXYGEN_DOT_EXECUTABLE) + set(HAVE_DOT "YES") +else (DOXYGEN_DOT_EXECUTABLE) + set(HAVE_DOT "NO") +endif (DOXYGEN_DOT_EXECUTABLE) +if (PERL_FOUND) + set(PERL ${PERL_EXECUTABLE}) +else (PERL_FOUND) + set(PERL "perl") +endif (PERL_FOUND) +if (DOXYGEN_EXECUTABLE) + # variables needed by Doxyfile.in + set(PACKAGE ${CMAKE_PROJECT_NAME}) + set(VERSION ${PACKAGE_VERSION}) + set(top_srcdir ${CMAKE_SOURCE_DIR}) + set(top_builddir ${CMAKE_BINARY_DIR}) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) -#original Makefile.am contents follow: + add_custom_target(doc rm -rf api COMMAND mkdir -p api/developers + COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/devel/howtos/*.* api/developers/ + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile) -#SUBDIRS = devel -# -#all-local: -#if DOXYGEN -# @echo "***" -# @echo "*** To (re-)build the Doxygen API documentation, use 'make doc'" -# @echo "***" -#endif -# -#doc: Doxyfile -# rm -rf $(srcdir)/api/developers -# mkdir -p $(srcdir)/api/developers -# cp $(srcdir)/devel/howtos/*.* $(srcdir)/api/developers/ -#if DOXYGEN -# doxygen Doxyfile -#else -# touch $(srcdir)/api/index.html -#endif -# -#maintainer-clean-local: -# rm -rf api -# rm -rf *~ + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "api") + +endif (DOXYGEN_EXECUTABLE) + +add_custom_target(comment ALL echo '***' + COMMAND echo '*** To \(re-\)build the Doxygen API documentation, use \"make +doc\"' + COMMAND echo '***') + Modified: trunk/spark/doc/Doxyfile.in =================================================================== --- trunk/spark/doc/Doxyfile.in 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/doc/Doxyfile.in 2009-01-21 08:27:33 UTC (rev 24) @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = @PACKAGE@ PROJECT_NUMBER = @VERSION@ -OUTPUT_DIRECTORY = @top_srcdir@/doc/ +OUTPUT_DIRECTORY = @top_builddir@/doc/ OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO EXTRACT_ALL = YES Modified: trunk/spark/doc/devel/CMakeLists.txt =================================================================== --- trunk/spark/doc/devel/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/doc/devel/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -1,32 +1,10 @@ -add_subdirectory(howtos) +find_package(LATEX) +if (PDFLATEX_COMPILER AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/manual.tex) + include(../../cmake/UseLATEX.cmake) + add_latex_document(manual.tex INPUTS conventions.tex introduction.tex + rsg.tex definitions.tex manual.tex zeitgeist.tex DEFAULT_PDF) +endif (PDFLATEX_COMPILER AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/manual.tex) -########### install files ############### - - - - -#original Makefile.am contents follow: - -#SUBDIRS = howtos -# -#if COND_PDFLATEX -#%.toc: %.tex -# touch $@ -# pdflatex $< -# -#%.pdf: %.tex %.toc -# pdflatex $< -# -#all-local: -# @if test -f manual.tex; then \ -# $(MAKE) $(AM_MAKEFLAGS) manual.pdf ; \ -# else \ -# echo "***" ;\ -# echo "*** There is no developers manual yet. Please consider contributing to it." ; \ -# echo "***" ; \ -# fi -# -#EXTRA_DIST = manual.pdf -#CLEANFILES = manual.log manual.pdf manual.aux manual.toc -#endif +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES + "definitions.aux;manual.log;manual.pdf;manual.aux;manual.out;manual.toc") Deleted: trunk/spark/doc/devel/howtos/CMakeLists.txt =================================================================== --- trunk/spark/doc/devel/howtos/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/doc/devel/howtos/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -1,28 +0,0 @@ - -########### install files ############### - - - - -#original Makefile.am contents follow: - -#EXTRA_DIST = README \ -#fileserver.html \ -#highlight.css \ -#howto_agent.html \ -#howto_class.html \ -#howto_control.html \ -#howto_effector.html \ -#howto_export.html \ -#howto_function.html \ -#howto_perceptor.html \ -#howto_register.html \ -#howto_script.html \ -#howto_simulation.html \ -#howtos.html \ -#implementation.html \ -#logserver.html \ -#menu.html \ -#scriptserver.html \ -#welcome.html \ -#examplesrc/survivalcontrolaspect.cpp.html Modified: trunk/spark/lib/kerosin/CMakeLists.txt =================================================================== --- trunk/spark/lib/kerosin/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/lib/kerosin/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -139,4 +139,4 @@ ${BINDIR} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/kerosin - FILES_MATCHING PATTERN "*.h") + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) Modified: trunk/spark/lib/oxygen/CMakeLists.txt =================================================================== --- trunk/spark/lib/oxygen/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/lib/oxygen/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -237,5 +237,5 @@ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/oxygen - FILES_MATCHING PATTERN "*.h") + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) Modified: trunk/spark/lib/salt/CMakeLists.txt =================================================================== --- trunk/spark/lib/salt/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/lib/salt/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -40,7 +40,7 @@ ########### install files ############### install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/salt - FILES_MATCHING PATTERN "*.h") + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/salt-config DESTINATION ${BINDIR} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) Modified: trunk/spark/lib/zeitgeist/CMakeLists.txt =================================================================== --- trunk/spark/lib/zeitgeist/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/lib/zeitgeist/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -74,6 +74,6 @@ DESTINATION ${BINDIR} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/zeitgeist - FILES_MATCHING PATTERN "*.h") + FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) Modified: trunk/spark/utility/rcssnet/CMakeLists.txt =================================================================== --- trunk/spark/utility/rcssnet/CMakeLists.txt 2009-01-20 16:13:20 UTC (rev 23) +++ trunk/spark/utility/rcssnet/CMakeLists.txt 2009-01-21 08:27:33 UTC (rev 24) @@ -33,4 +33,4 @@ ########### install files ############### install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/rcssnet - FILES_MATCHING PATTERN "*.hpp") + FILES_MATCHING PATTERN "*.hpp" PATTERN ".svn" EXCLUDE) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-20 16:13:49
|
Revision: 23 http://simspark.svn.sourceforge.net/simspark/?rev=23&view=rev Author: hedayat Date: 2009-01-20 16:13:20 +0000 (Tue, 20 Jan 2009) Log Message: ----------- Some small fixes in running scripts Adding rcssserver3d's installation directory to the list of resource locations (not very clean!) Modified Paths: -------------- trunk/rcssserver3d/ChangeLog trunk/rcssserver3d/configure.ac trunk/rcssserver3d/rcssmonitor3d/Makefile.am trunk/rcssserver3d/rcssmonitor3d/main.cpp trunk/rcssserver3d/rcssmonitor3d/rcssmonitor3d.rb trunk/rcssserver3d/simspark/main.cpp trunk/rcssserver3d/simspark/simspark.rb trunk/rcssserver3d/windows/rcssserver3d_config.h Property Changed: ---------------- trunk/rcssserver3d/ Property changes on: trunk/rcssserver3d ___________________________________________________________________ Modified: svn:ignore - .project .cproject Makefile.in rcssserver3d_config.h rcssserver3d_config.h.in configure stamp-h1 aclocal.m4 autom4te.cache config.status .cdtconfigure.Build (GNU) libtool Makefile + .project .cproject Makefile.in rcssserver3d_config.h rcssserver3d_config.h.in configure stamp-h1 aclocal.m4 autom4te.cache config.status .cdtconfigure.Build (GNU) libtool Makefile .settings Modified: trunk/rcssserver3d/ChangeLog =================================================================== --- trunk/rcssserver3d/ChangeLog 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/ChangeLog 2009-01-20 16:13:20 UTC (rev 23) @@ -1,3 +1,19 @@ +2009-01-20 Hedayat Vatankhah <he...@gr...> + + * rcssmonitor3d/Makefile.am: + - added rpath + + * rcssmonitor3d/rcssmonitor3d.rb: + - changed monitorspark.rb to rcssmonitor3d.rb + + * rcssmonitor3d/main.cpp (MonitorSpark::InitApp): + * simspark/main.cpp (SimSpark::InitApp): + - adding rcss3d's installation directory to the list of resource locations. + + * windows/rcssserver3d_config.h: + * configure.ac: + - added new define: RCSS_BUNDLE_PATH to store rcss3d's data directory. + 2008-12-19 Hedayat Vatankhah <he...@gr...> * plugin/soccer/kickeffector/kickeffector.cpp: Modified: trunk/rcssserver3d/configure.ac =================================================================== --- trunk/rcssserver3d/configure.ac 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/configure.ac 2009-01-20 16:13:20 UTC (rev 23) @@ -40,6 +40,8 @@ AC_CHECK_HEADERS([backward/hash_map hash_map],break, AC_MSG_NOTICE(['hash_map' will be substituted by 'map'. If you need hash_map install stlport])) +AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,["$prefix/share/"PACKAGE_NAME],["Data dir"]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE Modified: trunk/rcssserver3d/rcssmonitor3d/Makefile.am =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/Makefile.am 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/rcssmonitor3d/Makefile.am 2009-01-20 16:13:20 UTC (rev 23) @@ -12,9 +12,15 @@ @SPARK_CPPFLAGS@ @ZEITGEIST_CPPFLAGS@ \ @OXYGEN_CPPFLAGS@ @KEROSIN_CPPFLAGS@ +if NO_RPATH AM_LDFLAGS = @SALT_LDFLAGS@ \ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +else +AM_LDFLAGS = -Wl,--rpath,$(DESTDIR)$(pkglibdir) \ + @SALT_LDFLAGS@ @SPARK_LDFLAGS@ @ZEITGEIST_LDFLAGS@ \ + @OXYGEN_LDFLAGS@ @KEROSIN_LDFLAGS@ +endif rcssmonitor3d_SOURCES = \ main.cpp Modified: trunk/rcssserver3d/rcssmonitor3d/main.cpp =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/main.cpp 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/rcssmonitor3d/main.cpp 2009-01-20 16:13:20 UTC (rev 23) @@ -20,10 +20,16 @@ #include <spark/spark.h> #include <zeitgeist/zeitgeist.h> +#include <zeitgeist/fileserver/fileserver.h> #include <oxygen/simulationserver/simulationserver.h> #include <kerosin/renderserver/rendercontrol.h> #include <kerosin/inputserver/inputcontrol.h> +#ifdef HAVE_CONFIG_H +#undef PACKAGE_NAME +#include <rcssserver3d_config.h> +#endif + using namespace spark; using namespace kerosin; using namespace oxygen; @@ -93,6 +99,7 @@ bool MonitorSpark::InitApp(int argc, char** argv) { + GetCore()->GetFileServer()->AddResourceLocation(RCSS_BUNDLE_PATH); GetSimulationServer()->SetSimStep(0.02); PrintGreeting(); @@ -115,7 +122,7 @@ GetScriptServer()->Eval(fileStr); } - GetScriptServer()->Run("monitorspark.rb"); + GetScriptServer()->Run("rcssmonitor3d.rb"); // tell the inputControl node the loaction of our camera shared_ptr<InputControl> inputCtr = GetInputControl(); Modified: trunk/rcssserver3d/rcssmonitor3d/rcssmonitor3d.rb =================================================================== --- trunk/rcssserver3d/rcssmonitor3d/rcssmonitor3d.rb 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/rcssmonitor3d/rcssmonitor3d.rb 2009-01-20 16:13:20 UTC (rev 23) @@ -1,5 +1,5 @@ # -# monitorspark.rb +# rcssmonitor3d.rb # sparkSetupRendering() @@ -27,7 +27,7 @@ ) # setup default input bindings -run "bindings.rb" +run "scripts/bindings.rb" # setup default materials common to all simulations run "scripts/materials.rb" Modified: trunk/rcssserver3d/simspark/main.cpp =================================================================== --- trunk/rcssserver3d/simspark/main.cpp 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/simspark/main.cpp 2009-01-20 16:13:20 UTC (rev 23) @@ -20,10 +20,16 @@ #include <spark/spark.h> #include <zeitgeist/zeitgeist.h> +#include <zeitgeist/fileserver/fileserver.h> #include <oxygen/simulationserver/simulationserver.h> #include <kerosin/renderserver/rendercontrol.h> #include <kerosin/inputserver/inputcontrol.h> +#ifdef HAVE_CONFIG_H +#undef PACKAGE_NAME +#include <rcssserver3d_config.h> +#endif + using namespace spark; using namespace kerosin; using namespace oxygen; @@ -88,6 +94,7 @@ bool SimSpark::InitApp(int argc, char** argv) { + GetCore()->GetFileServer()->AddResourceLocation(RCSS_BUNDLE_PATH); GetSimulationServer()->SetSimStep(0.02f); PrintGreeting(); Modified: trunk/rcssserver3d/simspark/simspark.rb =================================================================== --- trunk/rcssserver3d/simspark/simspark.rb 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/simspark/simspark.rb 2009-01-20 16:13:20 UTC (rev 23) @@ -35,7 +35,7 @@ end # setup default input bindings -run "bindings.rb" +run "scripts/bindings.rb" # setup default materials common to all simulations run "scripts/materials.rb" Modified: trunk/rcssserver3d/windows/rcssserver3d_config.h =================================================================== --- trunk/rcssserver3d/windows/rcssserver3d_config.h 2009-01-20 16:06:07 UTC (rev 22) +++ trunk/rcssserver3d/windows/rcssserver3d_config.h 2009-01-20 16:13:20 UTC (rev 23) @@ -4,6 +4,7 @@ #define HAVE_KEROSIN_KEROSIN_H 1 #define PACKAGE_NAME "rcssserver3d" +#define RCSS_BUNDLE_PATH "." #define HAVE_WINSOCK2_H 1 #define HAVE_SOCKET 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-20 16:06:42
|
Revision: 22 http://simspark.svn.sourceforge.net/simspark/?rev=22&view=rev Author: hedayat Date: 2009-01-20 16:06:07 +0000 (Tue, 20 Jan 2009) Log Message: ----------- Add support for having many locations for resources. Some spell corrections A little fix in cmake for building release builds. Modified Paths: -------------- trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/lib/salt/fileclasses.cpp trunk/spark/lib/salt/fileclasses.h trunk/spark/lib/zeitgeist/fileserver/fileserver.cpp trunk/spark/lib/zeitgeist/fileserver/fileserver.h Property Changed: ---------------- trunk/spark/ Property changes on: trunk/spark ___________________________________________________________________ Modified: svn:ignore - .project .cproject autom4te.cache configure sparkconfig.h.in Makefile.in aclocal.m4 .cdtconfigure.Build (GNU) Makefile config.status stamp-h1 libtool sparkconfig.h + .project .cproject autom4te.cache configure sparkconfig.h.in Makefile.in aclocal.m4 .cdtconfigure.Build (GNU) Makefile config.status stamp-h1 libtool sparkconfig.h .settings Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/CMakeLists.txt 2009-01-20 16:06:07 UTC (rev 22) @@ -72,7 +72,7 @@ ########## add extra flags ########## -set(CMAKE_BUILD_TYPE Debug) +set(CMAKE_BUILD_TYPE Debug CACHE STRING "Release or Debug build type") add_definitions(-DHAVE_CONFIG_H) include_directories(${CMAKE_BINARY_DIR}) if (UNIX) Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/ChangeLog 2009-01-20 16:06:07 UTC (rev 22) @@ -1,3 +1,20 @@ +2009-01-20 Hedayat Vatankhah <he...@gr...> + + * lib/zeitgeist/fileserver/fileserver.h: + * lib/zeitgeist/fileserver/fileserver.cpp: + - added new function: AddResourceLocation to support many resource + locations + - some spell corrections + +2009-01-19 Hedayat Vatankhah <he...@gr...> + + * CMakeLists.txt: + - fixed selecting build type from cmake command line + + * lib/salt/fileclasses.h: + * lib/salt/fileclasses.cpp: + - remove some warnings using const char* variables + 2008-12-19 Hedayat Vatankhah <he...@gr...> * lib/oxygen/agentaspect/effector.cpp: Modified: trunk/spark/lib/salt/fileclasses.cpp =================================================================== --- trunk/spark/lib/salt/fileclasses.cpp 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/lib/salt/fileclasses.cpp 2009-01-20 16:06:07 UTC (rev 22) @@ -90,7 +90,7 @@ // MemFile //------------------------------------------------------------------------------------------------ -MemFile::MemFile(const char *fn, char *mode) +MemFile::MemFile(const char *fn, const char *mode) { if(fn==NULL) { @@ -132,7 +132,7 @@ Destroy(); } -bool MemFile::Open(const char *fn, char *mode) +bool MemFile::Open(const char *fn, const char *mode) { if(fn==NULL) return false; @@ -280,7 +280,7 @@ mHandle=h; } -StdFile::StdFile(const char* fn,char* mode) +StdFile::StdFile(const char* fn,const char* mode) { mHandle=NULL; //open file @@ -308,7 +308,7 @@ mHandle = NULL; } -bool StdFile::Open(const char* fileName,char* mode) +bool StdFile::Open(const char* fileName,const char* mode) { //Open fn with mode mode if(fileName==NULL) Modified: trunk/spark/lib/salt/fileclasses.h =================================================================== --- trunk/spark/lib/salt/fileclasses.h 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/lib/salt/fileclasses.h 2009-01-20 16:06:07 UTC (rev 22) @@ -64,7 +64,7 @@ /** opens the file fn in the specified mode. The implementation of * the namespace and mode semantics ist up to derived classes */ - virtual bool Open(const char*fn=NULL, char*mode="rb") = 0; + virtual bool Open(const char* fn=NULL, const char* mode="rb") = 0; /** closes a previously opened file */ virtual void Close() = 0; @@ -181,12 +181,12 @@ class MemFile : public RFile { public: - MemFile(const char*fn=NULL, char*mode="rb"); + MemFile(const char*fn=NULL, const char*mode="rb"); MemFile(FILE*f); MemFile(RFile *f); ~MemFile(); - bool Open(const char*fn=NULL, char*mode="rb"); + bool Open(const char* fn=NULL, const char* mode="rb"); bool Open(void*buffer, long s); void Close(); void Destroy(); @@ -310,10 +310,10 @@ { public: StdFile(FILE*f); - StdFile(const char*fn=NULL, char*mode="rb"); + StdFile(const char* fn = NULL, const char* mode = "rb"); virtual ~StdFile(); - bool Open(const char*fn=NULL, char*mode="rb"); + bool Open(const char*fn=NULL, const char* mode="rb"); void Close(); void Destroy(); Modified: trunk/spark/lib/zeitgeist/fileserver/fileserver.cpp =================================================================== --- trunk/spark/lib/zeitgeist/fileserver/fileserver.cpp 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/lib/zeitgeist/fileserver/fileserver.cpp 2009-01-20 16:06:07 UTC (rev 22) @@ -31,12 +31,18 @@ FileServer::FileServer() : Node(), mNextHandle(1) { + mResourceLocations.push_back(salt::RFile::BundlePath()); } FileServer::~FileServer() { } +void FileServer::AddResourceLocation(const std::string& path) +{ + mResourceLocations.push_back(path + salt::RFile::Sep()); +} + bool FileServer::LocateResource(const std::string& inName, std::string& outName) { if (Exist(inName)) @@ -45,16 +51,19 @@ return true; } - string fname = salt::RFile::BundlePath() + inName; + for (unsigned i = 0; i < mResourceLocations.size(); ++i) + { + string fname = mResourceLocations[i] + inName; - if (Exist(fname)) - { - GetLog()->Debug() << "(FileServer::LocateResource) expanded filename to '" - << fname << "'\n"; + if (Exist(fname)) + { + GetLog()->Debug() << "(FileServer::LocateResource) expanded filename to '" + << fname << "'\n"; - outName = fname; - return true; - } + outName = fname; + return true; + } + } GetLog()->Debug() << "FileServer::LocateResource) unable to locate resource '" Modified: trunk/spark/lib/zeitgeist/fileserver/fileserver.h =================================================================== --- trunk/spark/lib/zeitgeist/fileserver/fileserver.h 2009-01-14 14:38:57 UTC (rev 21) +++ trunk/spark/lib/zeitgeist/fileserver/fileserver.h 2009-01-20 16:06:07 UTC (rev 22) @@ -52,7 +52,7 @@ #ifndef ZEITGEIST_FILESERVER_H #define ZEITGEIST_FILESERVER_H -#include <list> +#include <vector> #include <zeitgeist/node.h> #include "filesystem.h" @@ -94,7 +94,12 @@ FileServer(); ~FileServer(); - /** tests for the existance of the given file at well known + /** + * adds a new location to the list of resource locations + */ + void AddResourceLocation(const std::string& path); + + /** tests for the existence of the given file at well known locations. On success the function returns true. In this case outName is set to the full path to the file. */ @@ -152,7 +157,7 @@ /** iterates through files. 'directory', 'name' and * 'extension' give directory, name and extension a file must - * match. directory,name and extension may be NULL, in wich + * match. directory,name and extension may be NULL, in which * case every directory,extension and/or name matches. For * each match the function callback is called with the name * of the matched file and the additional user parameter @@ -179,6 +184,9 @@ /** the next free handle */ THandle mNextHandle; + + /** list of resource locations */ + std::vector<std::string> mResourceLocations; }; DECLARE_CLASS(FileServer) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yx...@us...> - 2009-01-14 14:39:14
|
Revision: 21 http://simspark.svn.sourceforge.net/simspark/?rev=21&view=rev Author: yxu Date: 2009-01-14 14:38:57 +0000 (Wed, 14 Jan 2009) Log Message: ----------- - correct include files' path - define macro PREFIX in sparkconfig.h.cmake to search rescourse in installed directory Modified Paths: -------------- trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.cpp trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.h trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.h trunk/rcssserver3d/plugin/soccer/ball/ball.cpp trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.cpp trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.h trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.cpp trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.h trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.h trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.h trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.cpp trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.h trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.h trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.h trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.cpp trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.h trunk/rcssserver3d/plugin/soccer/hearperceptor/hearperceptor.cpp trunk/rcssserver3d/plugin/soccer/initeffector/initeffector.cpp trunk/rcssserver3d/plugin/soccer/initeffector/singlematiniteffector.cpp trunk/rcssserver3d/plugin/soccer/initeffector/staticmeshiniteffector.cpp trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.cpp trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.h trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerrender.cpp trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.h trunk/rcssserver3d/plugin/soccer/objectstate/objectstate.h trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.h trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.h trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.cpp trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.h trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.h trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.cpp trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.h trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.h trunk/rcssserver3d/plugin/soccer/trainercommandparser/trainercommandparser.h trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.h trunk/rcssserver3d/rcssagent3d/main.cpp trunk/spark/sparkconfig.h.cmake Modified: trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -20,9 +20,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "agentstate.h" -#include <soccer/soccertypes.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <soccertypes.h> +#include <soccerbase/soccerbase.h> +#include <gamestateaspect/gamestateaspect.h> #include <sstream> using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/agentstate/agentstate.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,8 +22,8 @@ #ifndef AGENTSTATE_H #define AGENTSTATE_H -#include <soccer/soccertypes.h> -#include <soccer/objectstate/objectstate.h> +#include <soccertypes.h> +#include <objectstate/objectstate.h> namespace oxygen { Modified: trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -20,9 +20,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "agentstateperceptor.h" -#include <soccer/agentstate/agentstate.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/restrictedvisionperceptor/restrictedvisionperceptor.h> +#include <agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <restrictedvisionperceptor/restrictedvisionperceptor.h> using namespace salt; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #define AGENTSTATEPERCEPTOR_H #include <oxygen/agentaspect/perceptor.h> -#include <soccer/soccertypes.h> +#include <soccertypes.h> class AgentState; Modified: trunk/rcssserver3d/plugin/soccer/ball/ball.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/ball/ball.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/ball/ball.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -21,7 +21,7 @@ */ #include <oxygen/agentaspect/agentaspect.h> #include <oxygen/physicsserver/body.h> -#include <soccer/ballstateaspect/ballstateaspect.h> +#include <ballstateaspect/ballstateaspect.h> #include "ball.h" using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -25,9 +25,9 @@ #include <oxygen/sceneserver/scene.h> #include <oxygen/agentaspect/agentaspect.h> #include <oxygen/physicsserver/recorderhandler.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/ball/ball.h> +#include <gamestateaspect/gamestateaspect.h> +#include <soccerbase/soccerbase.h> +#include <ball/ball.h> using namespace oxygen; using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/ballstateaspect/ballstateaspect.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,8 +22,8 @@ #ifndef BALLLSTATEASPECT_H #define BALLLSTATEASPECT_H -#include <soccer/soccercontrolaspect/soccercontrolaspect.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <soccercontrolaspect/soccercontrolaspect.h> +#include <gamestateaspect/gamestateaspect.h> /** BallStateAspect is a ControlAspect that holds information about the current state of the ball in the simulation. Modified: trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -21,8 +21,8 @@ */ #include "beamaction.h" #include "beameffector.h" -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> #include <cmath> #include <oxygen/agentaspect/agentaspect.h> Modified: trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/beameffector/beameffector.h 2009-01-14 14:38:57 UTC (rev 21) @@ -24,7 +24,7 @@ #include <oxygen/agentaspect/effector.h> #include <oxygen/physicsserver/body.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <gamestateaspect/gamestateaspect.h> class BeamEffector : public oxygen::Effector { Modified: trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -27,11 +27,11 @@ #include <oxygen/agentaspect/agentaspect.h> #include <oxygen/physicsserver/body.h> #include <oxygen/gamecontrolserver/gamecontrolserver.h> -#include <soccer/ballstateaspect/ballstateaspect.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/soccercontrolaspect/soccercontrolaspect.h> -#include <soccer/soccerruleaspect/soccerruleaspect.h> +#include <ballstateaspect/ballstateaspect.h> +#include <agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <soccercontrolaspect/soccercontrolaspect.h> +#include <soccerruleaspect/soccerruleaspect.h> using namespace boost; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,8 +23,8 @@ #include <oxygen/agentaspect/effector.h> #include <oxygen/physicsserver/body.h> -#include <soccer/ball/ball.h> -#include <soccer/ballstateaspect/ballstateaspect.h> +#include <ball/ball.h> +#include <ballstateaspect/ballstateaspect.h> namespace salt { Modified: trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -24,7 +24,7 @@ #include <salt/gmath.h> #include <zeitgeist/logserver/logserver.h> #include <oxygen/physicsserver/spherecollider.h> -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> #include <oxygen/sceneserver/transform.h> using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.h 2009-01-14 14:38:57 UTC (rev 21) @@ -25,7 +25,7 @@ #include <salt/random.h> #include <oxygen/agentaspect/effector.h> #include <oxygen/physicsserver/body.h> -#include <soccer/agentstate/agentstate.h> +#include <agentstate/agentstate.h> class DriveEffector : public oxygen::Effector { Modified: trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -21,8 +21,8 @@ */ #include "gamestateaspect.h" #include <zeitgeist/logserver/logserver.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> #include <salt/random.h> using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateaspect.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,7 +22,7 @@ #ifndef GAMESTATEASPECT_H #define GAMESTATEASPECT_H -#include <soccer/soccercontrolaspect/soccercontrolaspect.h> +#include <soccercontrolaspect/soccercontrolaspect.h> #include <set> class AgentState; Modified: trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -21,7 +21,7 @@ */ #include "gamestateitem.h" #include "gamestateaspect.h" -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> using namespace oxygen; using namespace std; Modified: trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #define GAMESTATEITEM_H #include <oxygen/monitorserver/monitoritem.h> -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> class GameStateAspect; Modified: trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -21,9 +21,9 @@ */ #include "gamestateperceptor.h" #include <zeitgeist/logserver/logserver.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> +#include <gamestateaspect/gamestateaspect.h> using namespace zeitgeist; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #define GAMESTATEPERCEPTOR_H #include <oxygen/agentaspect/perceptor.h> -#include <soccer/soccertypes.h> +#include <soccertypes.h> class GameStateAspect; class AgentState; Modified: trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -22,7 +22,7 @@ #include "gametimeperceptor.h" #include <zeitgeist/logserver/logserver.h> //#include <soccer/soccerbase/soccerbase.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <gamestateaspect/gamestateaspect.h> using namespace zeitgeist; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/gametimeperceptor/gametimeperceptor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #define GAMETIMEPERCEPTOR_H #include <oxygen/agentaspect/perceptor.h> -#include <soccer/soccertypes.h> +#include <soccertypes.h> class GameStateAspect; //class AgentState; Modified: trunk/rcssserver3d/plugin/soccer/hearperceptor/hearperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/hearperceptor/hearperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/hearperceptor/hearperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -19,9 +19,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "hearperceptor.h" -#include <soccer/agentstate/agentstate.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <gamestateaspect/gamestateaspect.h> //#include <soccer/soccertypes.h> using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/initeffector/initeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/initeffector/initeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/initeffector/initeffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -26,9 +26,9 @@ #include <oxygen/gamecontrolserver/predicate.h> #include <oxygen/physicsserver/body.h> #include <oxygen/physicsserver/space.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> +#include <gamestateaspect/gamestateaspect.h> #include <sstream> using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/initeffector/singlematiniteffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/initeffector/singlematiniteffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/initeffector/singlematiniteffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -25,8 +25,8 @@ //#include <oxygen/gamecontrolserver/predicate.h> #include <oxygen/sceneserver/sceneserver.h> #include <oxygen/physicsserver/body.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> //#include <soccer/gamestateaspect/gamestateaspect.h> #include <kerosin/sceneserver/singlematnode.h> #include <sstream> Modified: trunk/rcssserver3d/plugin/soccer/initeffector/staticmeshiniteffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/initeffector/staticmeshiniteffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/initeffector/staticmeshiniteffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -23,8 +23,8 @@ #include <oxygen/agentaspect/agentaspect.h> #include <oxygen/sceneserver/sceneserver.h> #include <oxygen/physicsserver/body.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <agentstate/agentstate.h> #include <kerosin/sceneserver/staticmesh.h> #include <sstream> #include <string> Modified: trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -20,13 +20,13 @@ #include "internalsoccerinput.h" #include <zeitgeist/scriptserver/scriptserver.h> #include <zeitgeist/logserver/logserver.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/soccerruleaspect/soccerruleaspect.h> +#include <gamestateaspect/gamestateaspect.h> +#include <soccerruleaspect/soccerruleaspect.h> #include <oxygen/physicsserver/body.h> #include <oxygen/sceneserver/fpscontroller.h> #include <oxygen/gamecontrolserver/gamecontrolserver.h> #include <oxygen/agentaspect/agentaspect.h> -#include <soccer/agentstate/agentstate.h> +#include <agentstate/agentstate.h> using namespace boost; using namespace zeitgeist; Modified: trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerinput.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #include <kerosin/inputserver/inputitem.h> #include <kerosin/inputserver/inputcontrol.h> #include <kerosin/renderserver/renderserver.h> -#include <soccer/soccertypes.h> +#include <soccertypes.h> namespace oxygen { Modified: trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerrender.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerrender.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/internalsoccermonitor/internalsoccerrender.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -27,8 +27,8 @@ #include <kerosin/textureserver/texture2d.h> #include <kerosin/fontserver/fontserver.h> #include <kerosin/fontserver/font.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/soccerbase/soccerbase.h> +#include <gamestateaspect/gamestateaspect.h> +#include <soccerbase/soccerbase.h> using namespace kerosin; using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -25,7 +25,7 @@ #include <zeitgeist/logserver/logserver.h> #include <oxygen/sceneserver/transform.h> #include <oxygen/physicsserver/spherecollider.h> -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> using namespace boost; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.h 2009-01-14 14:38:57 UTC (rev 21) @@ -26,8 +26,8 @@ #include <oxygen/agentaspect/agentaspect.h> #include <oxygen/agentaspect/effector.h> #include <oxygen/physicsserver/body.h> -#include <soccer/ball/ball.h> -#include <soccer/ballstateaspect/ballstateaspect.h> +#include <ball/ball.h> +#include <ballstateaspect/ballstateaspect.h> class BallStateAspect; Modified: trunk/rcssserver3d/plugin/soccer/objectstate/objectstate.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/objectstate/objectstate.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/objectstate/objectstate.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,7 +22,7 @@ #ifndef OBJECTSTATE_H #define OBJECTSTATE_H -#include <soccer/soccernode/soccernode.h> +#include <soccernode/soccernode.h> class ObjectState : public SoccerNode { Modified: trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -23,8 +23,8 @@ #include "pantilteffector.h" #include <salt/gmath.h> #include <zeitgeist/logserver/logserver.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/restrictedvisionperceptor/restrictedvisionperceptor.h> +#include <soccerbase/soccerbase.h> +#include <restrictedvisionperceptor/restrictedvisionperceptor.h> using namespace boost; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.h 2009-01-14 14:38:57 UTC (rev 21) @@ -25,7 +25,7 @@ #include <salt/random.h> #include <oxygen/agentaspect/effector.h> #include <oxygen/physicsserver/body.h> -#include <soccer/agentstate/agentstate.h> +#include <agentstate/agentstate.h> class PanTiltEffector : public oxygen::Effector { Modified: trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #include <zeitgeist/logserver/logserver.h> #include <oxygen/sceneserver/scene.h> #include <oxygen/sceneserver/transform.h> -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> #include <salt/gmath.h> using namespace zeitgeist; Modified: trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -28,7 +28,7 @@ #include <oxygen/sceneserver/sceneserver.h> #include <oxygen/sceneserver/transform.h> #include <oxygen/agentaspect/agentaspect.h> -#include <soccer/agentstate/agentstate.h> +#include <agentstate/agentstate.h> class RestrictedVisionPerceptor : public oxygen::Perceptor { Modified: trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -22,9 +22,9 @@ #include "sayeffector.h" #include <zeitgeist/logserver/logserver.h> #include <oxygen/agentaspect/agentaspect.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/soccerruleaspect/soccerruleaspect.h> +#include <agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <soccerruleaspect/soccerruleaspect.h> using namespace boost; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -27,15 +27,15 @@ #include <oxygen/sceneserver/scene.h> #include <oxygen/sceneserver/transform.h> #include <oxygen/agentaspect/agentaspect.h> -#include <soccer/soccertypes.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/ball/ball.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/ballstateaspect/ballstateaspect.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/fieldflag/fieldflag.h> -#include <soccer/sayeffector/sayeffector.h> +#include <soccertypes.h> +#include <soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> +#include <ball/ball.h> +#include <gamestateaspect/gamestateaspect.h> +#include <ballstateaspect/ballstateaspect.h> +#include <agentstate/agentstate.h> +#include <fieldflag/fieldflag.h> +#include <sayeffector/sayeffector.h> #ifndef WIN32 #include <netinet/in.h> Modified: trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/sexpmonitor/sexpmonitor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -26,7 +26,7 @@ #include <string> #include <oxygen/monitorserver/monitorsystem.h> -#include <soccer/trainercommandparser/trainercommandparser.h> +#include <trainercommandparser/trainercommandparser.h> class GameStateAspect; class BallStateAspect; Modified: trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -29,10 +29,10 @@ #include <oxygen/sceneserver/transform.h> #include <oxygen/controlaspect/controlaspect.h> #include <oxygen/gamecontrolserver/gamecontrolserver.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/soccerruleaspect/soccerruleaspect.h> -#include <soccer/agentstate/agentstate.h> -#include <soccer/ball/ball.h> +#include <gamestateaspect/gamestateaspect.h> +#include <soccerruleaspect/soccerruleaspect.h> +#include <agentstate/agentstate.h> +#include <ball/ball.h> #include <oxygen/physicsserver/space.h> #include <zeitgeist/leaf.h> Modified: trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccerbase/soccerbase.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,7 +22,7 @@ #ifndef SOCCERBASE_H #define SOCCERBASE_H -#include <soccer/soccertypes.h> +#include <soccertypes.h> #include <zeitgeist/scriptserver/scriptserver.h> #include <zeitgeist/leaf.h> #include <zeitgeist/logserver/logserver.h> Modified: trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -25,8 +25,8 @@ #include <oxygen/sceneserver/scene.h> #include <oxygen/physicsserver/recorderhandler.h> #include <oxygen/physicsserver/body.h> -#include <soccer/ball/ball.h> -#include <soccer/soccerbase/soccerbase.h> +#include <ball/ball.h> +#include <soccerbase/soccerbase.h> using namespace oxygen; using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccercontrolaspect/soccercontrolaspect.h 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #define SOCCERCONTROLASPECT_H #include <oxygen/controlaspect/controlaspect.h> -#include <soccer/soccertypes.h> +#include <soccertypes.h> class GameStateAspect; class BallStateAspect; Modified: trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -26,10 +26,10 @@ #include <oxygen/physicsserver/body.h> #include <oxygen/sceneserver/scene.h> #include <oxygen/gamecontrolserver/gamecontrolserver.h> -#include <soccer/soccerbase/soccerbase.h> -#include <soccer/gamestateaspect/gamestateaspect.h> -#include <soccer/ballstateaspect/ballstateaspect.h> -#include <soccer/agentstate/agentstate.h> +#include <soccerbase/soccerbase.h> +#include <gamestateaspect/gamestateaspect.h> +#include <ballstateaspect/ballstateaspect.h> +#include <agentstate/agentstate.h> using namespace oxygen; using namespace boost; Modified: trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/soccerruleaspect/soccerruleaspect.h 2009-01-14 14:38:57 UTC (rev 21) @@ -22,10 +22,10 @@ #ifndef SOCCERRULEASPECT_H #define SOCCERRULEASPECT_H -#include <soccer/soccercontrolaspect/soccercontrolaspect.h> -#include <soccer/soccertypes.h> -#include <soccer/ballstateaspect/ballstateaspect.h> -#include <soccer/gamestateaspect/gamestateaspect.h> +#include <soccercontrolaspect/soccercontrolaspect.h> +#include <soccertypes.h> +#include <ballstateaspect/ballstateaspect.h> +#include <gamestateaspect/gamestateaspect.h> class AgentState; Modified: trunk/rcssserver3d/plugin/soccer/trainercommandparser/trainercommandparser.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/trainercommandparser/trainercommandparser.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/trainercommandparser/trainercommandparser.h 2009-01-14 14:38:57 UTC (rev 21) @@ -30,8 +30,8 @@ #include <oxygen/gamecontrolserver/predicate.h> #include <oxygen/gamecontrolserver/baseparser.h> #include <salt/vector.h> -#include <soccer/soccertypes.h> -#include <soccer/soccerruleaspect/soccerruleaspect.h> +#include <soccertypes.h> +#include <soccerruleaspect/soccerruleaspect.h> class TrainerCommandParser : public oxygen::MonitorCmdParser { Modified: trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -23,7 +23,7 @@ #include <zeitgeist/logserver/logserver.h> #include <oxygen/sceneserver/scene.h> #include <oxygen/sceneserver/transform.h> -#include <soccer/soccerbase/soccerbase.h> +#include <soccerbase/soccerbase.h> using namespace zeitgeist; using namespace oxygen; Modified: trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.h =================================================================== --- trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.h 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.h 2009-01-14 14:38:57 UTC (rev 21) @@ -28,7 +28,7 @@ #include <oxygen/sceneserver/sceneserver.h> #include <oxygen/sceneserver/transform.h> #include <oxygen/agentaspect/agentaspect.h> -#include <soccer/agentstate/agentstate.h> +#include <agentstate/agentstate.h> class VisionPerceptor : public oxygen::Perceptor { Modified: trunk/rcssserver3d/rcssagent3d/main.cpp =================================================================== --- trunk/rcssserver3d/rcssagent3d/main.cpp 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/rcssserver3d/rcssagent3d/main.cpp 2009-01-14 14:38:57 UTC (rev 21) @@ -208,7 +208,7 @@ //printf ("xxx-%s\n", buffer+5); // msg is prefixed with it's total length - unsigned int msgLen = ntohl(*(unsigned int*)buffer); + int msgLen = ntohl(*(unsigned int*)buffer); // cerr << "GM 6 / " << msgLen << " (bytesRead " << bytesRead << ")\n"; if(sizeof(unsigned int) + msgLen > sizeof(buffer)) { cerr << "message too long; aborting" << endl; @@ -216,7 +216,7 @@ } // read remaining message segments - unsigned int msgRead = bytesRead - sizeof(unsigned int); + int msgRead = bytesRead - sizeof(unsigned int); //cerr << "msgRead = |" << msgRead << "|\n"; Modified: trunk/spark/sparkconfig.h.cmake =================================================================== --- trunk/spark/sparkconfig.h.cmake 2008-12-19 19:13:20 UTC (rev 20) +++ trunk/spark/sparkconfig.h.cmake 2009-01-14 14:38:57 UTC (rev 21) @@ -35,3 +35,5 @@ #cmakedefine HAVE_KEROSIN_KEROSIN_H 1 #define PACKAGE_NAME "${CMAKE_PROJECT_NAME}" + +#define PREFIX "${prefix}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2008-12-19 19:13:43
|
Revision: 20 http://simspark.svn.sourceforge.net/simspark/?rev=20&view=rev Author: hedayat Date: 2008-12-19 19:13:20 +0000 (Fri, 19 Dec 2008) Log Message: ----------- Replaced make_shared() function calls with .lock() function call, fixing a compilation problem with recent boost versoins. Modified Paths: -------------- trunk/rcssserver3d/ChangeLog trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp Modified: trunk/rcssserver3d/ChangeLog =================================================================== --- trunk/rcssserver3d/ChangeLog 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/ChangeLog 2008-12-19 19:13:20 UTC (rev 20) @@ -0,0 +1,12 @@ +2008-12-19 Hedayat Vatankhah <he...@gr...> + + * plugin/soccer/kickeffector/kickeffector.cpp: + * plugin/soccer/driveeffector/driveeffector.cpp: + * plugin/soccer/catcheffector/catcheffector.cpp: + * plugin/soccer/visionperceptor/visionperceptor.cpp: + * plugin/soccer/sayeffector/sayeffector.cpp: + * plugin/soccer/pantilteffector/pantilteffector.cpp: + * plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp: + * plugin/soccer/agentstateperceptor/agentstateperceptor.cpp: + - Replaced make_shared() with .lock() function call.(fixed compilation + error with recent boost versions.) \ No newline at end of file Modified: trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/agentstateperceptor/agentstateperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -61,7 +61,7 @@ predicate.parameter.Clear(); shared_ptr<BaseNode> parent = - shared_dynamic_cast<BaseNode>(make_shared(GetParent())); + shared_dynamic_cast<BaseNode>(GetParent().lock()); if (parent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/catcheffector/catcheffector.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -177,7 +177,7 @@ SoccerBase::GetSoccerRuleAspect(*this,mSoccerRule); - mAgent = shared_dynamic_cast<AgentAspect>(make_shared(GetParent())); + mAgent = shared_dynamic_cast<AgentAspect>(GetParent().lock()); if (mAgent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/driveeffector/driveeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -50,7 +50,7 @@ } shared_ptr<BaseNode> parent = - shared_dynamic_cast<BaseNode>(make_shared(GetParent())); + shared_dynamic_cast<BaseNode>(GetParent().lock()); if (parent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/kickeffector/kickeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -181,7 +181,7 @@ SoccerBase::GetBall(*this,mBall); SoccerBase::GetBallBody(*this,mBallBody); - mAgent = shared_dynamic_cast<AgentAspect>(make_shared(GetParent())); + mAgent = shared_dynamic_cast<AgentAspect>(GetParent().lock()); if (mAgent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/pantilteffector/pantilteffector.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -50,7 +50,7 @@ } shared_ptr<BaseNode> parent = - shared_dynamic_cast<BaseNode>(make_shared(GetParent())); + shared_dynamic_cast<BaseNode>(GetParent().lock()); if (parent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/restrictedvisionperceptor/restrictedvisionperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -155,7 +155,7 @@ SoccerBase::GetActiveScene(*this,mActiveScene); shared_ptr<AgentAspect> agent_aspect = - make_shared(FindParentSupportingClass<AgentAspect>()); + FindParentSupportingClass<AgentAspect>().lock(); if (agent_aspect == 0) { GetLog()->Error() @@ -164,7 +164,7 @@ else { mAgentAspect = agent_aspect; - agent_aspect = make_shared(agent_aspect->FindParentSupportingClass<AgentAspect>()); + agent_aspect = agent_aspect->FindParentSupportingClass<AgentAspect>().lock(); if (agent_aspect != 0) { mAgentAspect = agent_aspect; @@ -236,12 +236,12 @@ od.mObj = shared_static_cast<ObjectState>(*i); shared_ptr<BaseNode> node = shared_dynamic_cast<BaseNode>(mActiveScene); - shared_ptr<AgentAspect> agent_aspect = make_shared( - od.mObj->FindParentSupportingClass<AgentAspect>()); + shared_ptr<AgentAspect> agent_aspect = + od.mObj->FindParentSupportingClass<AgentAspect>().lock(); if (agent_aspect != 0) { - shared_ptr<AgentAspect> aspect = make_shared( - agent_aspect->FindParentSupportingClass<AgentAspect>()); + shared_ptr<AgentAspect> aspect = + agent_aspect->FindParentSupportingClass<AgentAspect>().lock(); if (aspect != 0) { agent_aspect = aspect; @@ -293,7 +293,7 @@ if (agent_aspect != 0) { shared_ptr<AgentAspect> aspect = - make_shared(agent_aspect->FindParentSupportingClass<AgentAspect>()); + agent_aspect->FindParentSupportingClass<AgentAspect>().lock(); if (aspect != 0) { agent_aspect = aspect; Modified: trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/sayeffector/sayeffector.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -142,7 +142,7 @@ SoccerBase::GetAgentState(*this,mAgentState); SoccerBase::GetSoccerRuleAspect(*this,mSoccerRule); - mAgent = shared_dynamic_cast<AgentAspect>(make_shared(GetParent())); + mAgent = shared_dynamic_cast<AgentAspect>(GetParent().lock()); if (mAgent.get() == 0) { Modified: trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp =================================================================== --- trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp 2008-12-19 18:12:56 UTC (rev 19) +++ trunk/rcssserver3d/plugin/soccer/visionperceptor/visionperceptor.cpp 2008-12-19 19:13:20 UTC (rev 20) @@ -77,7 +77,7 @@ SoccerBase::GetActiveScene(*this,mActiveScene); shared_ptr<AgentAspect> agent_aspect = - make_shared(FindParentSupportingClass<AgentAspect>()); + FindParentSupportingClass<AgentAspect>().lock(); if (agent_aspect == 0) { GetLog()->Error() @@ -86,7 +86,7 @@ else { mAgentAspect = agent_aspect; - agent_aspect = make_shared(agent_aspect->FindParentSupportingClass<AgentAspect>()); + agent_aspect = agent_aspect->FindParentSupportingClass<AgentAspect>().lock(); if (agent_aspect != 0) { mAgentAspect = agent_aspect; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2008-12-19 18:14:31
|
Revision: 19 http://simspark.svn.sourceforge.net/simspark/?rev=19&view=rev Author: hedayat Date: 2008-12-19 18:12:56 +0000 (Fri, 19 Dec 2008) Log Message: ----------- Replaced make_shared() function calls with .lock() function call. Fixed compilation problem with recent boost versions. Modified Paths: -------------- trunk/spark/ChangeLog trunk/spark/lib/oxygen/agentaspect/effector.cpp trunk/spark/lib/oxygen/agentaspect/jointeffector.h trunk/spark/lib/oxygen/agentaspect/jointperceptor.h trunk/spark/lib/oxygen/physicsserver/body.cpp trunk/spark/lib/oxygen/physicsserver/bodycontroller.cpp trunk/spark/lib/oxygen/physicsserver/collider.cpp trunk/spark/lib/oxygen/physicsserver/collisionhandler.cpp trunk/spark/lib/oxygen/physicsserver/joint.cpp trunk/spark/lib/oxygen/sceneserver/basenode.cpp trunk/spark/lib/oxygen/sceneserver/fpscontroller.cpp trunk/spark/lib/oxygen/sceneserver/sceneserver.cpp trunk/spark/lib/oxygen/sceneserver/transform.cpp trunk/spark/lib/oxygen/simulationserver/simcontrolnode.cpp trunk/spark/lib/zeitgeist/class.cpp trunk/spark/lib/zeitgeist/core.cpp trunk/spark/lib/zeitgeist/leaf.cpp trunk/spark/lib/zeitgeist/leaf.h trunk/spark/lib/zeitgeist/node.cpp trunk/spark/lib/zeitgeist/node.h trunk/spark/plugin/forceeffector/forceeffector.cpp trunk/spark/plugin/perfectvisionperceptor/perfectvisionperceptor.cpp Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/ChangeLog 2008-12-19 18:12:56 UTC (rev 19) @@ -1,3 +1,28 @@ +2008-12-19 Hedayat Vatankhah <he...@gr...> + + * lib/oxygen/agentaspect/effector.cpp: + * lib/oxygen/agentaspect/jointeffector.h: + * lib/oxygen/agentaspect/jointperceptor.h: + * lib/oxygen/physicsserver/bodycontroller.cpp: + * lib/oxygen/physicsserver/collider.cpp: + * lib/oxygen/physicsserver/collisionhandler.cpp: + * lib/oxygen/physicsserver/joint.cpp: + * lib/oxygen/sceneserver/basenode.cpp: + * lib/oxygen/sceneserver/fpscontroller.cpp: + * lib/oxygen/simulationserver/simcontrolnode.cpp: + * lib/oxygen/sceneserver/transform.cpp: + * lib/oxygen/sceneserver/sceneserver.cpp: + * lib/oxygen/physicsserver/body.cpp: + * lib/zeitgeist/class.cpp: + * lib/zeitgeist/core.cpp: + * lib/zeitgeist/leaf.cpp: + * lib/zeitgeist/leaf.h: + * lib/zeitgeist/node.cpp: + * lib/zeitgeist/node.h: + * plugin/forceeffector/forceeffector.cpp: + * plugin/perfectvisionperceptor/perfectvisionperceptor.cpp: + - Replaced make_shared() with .lock() function call. + 2008-12-02 Hedayat Vatankhah <he...@gr...> * utility/libobj/CMakeLists.txt: Modified: trunk/spark/lib/oxygen/agentaspect/effector.cpp =================================================================== --- trunk/spark/lib/oxygen/agentaspect/effector.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/agentaspect/effector.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -30,7 +30,7 @@ Effector::GetAgentAspect() { return shared_static_cast<AgentAspect> - (make_shared(GetParentSupportingClass("AgentAspect"))); + (GetParentSupportingClass("AgentAspect").lock()); } bool Effector::Realize(boost::shared_ptr<ActionObject> action) Modified: trunk/spark/lib/oxygen/agentaspect/jointeffector.h =================================================================== --- trunk/spark/lib/oxygen/agentaspect/jointeffector.h 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/agentaspect/jointeffector.h 2008-12-19 18:12:56 UTC (rev 19) @@ -42,7 +42,7 @@ virtual void UpdateCached() { Effector::UpdateCached(); - mJoint = make_shared(FindParentSupportingClass<_JOINT>()); + mJoint = FindParentSupportingClass<_JOINT>().lock(); if (mJoint.get() == 0) { Modified: trunk/spark/lib/oxygen/agentaspect/jointperceptor.h =================================================================== --- trunk/spark/lib/oxygen/agentaspect/jointperceptor.h 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/agentaspect/jointperceptor.h 2008-12-19 18:12:56 UTC (rev 19) @@ -40,7 +40,7 @@ virtual void UpdateCached() { Perceptor::UpdateCached(); - mJoint = make_shared(FindParentSupportingClass<_JOINT>()); + mJoint = FindParentSupportingClass<_JOINT>().lock(); if (mJoint.get() == 0) { Modified: trunk/spark/lib/oxygen/physicsserver/body.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/body.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/physicsserver/body.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -126,7 +126,7 @@ dBodySetData(mODEBody, this); shared_ptr<BaseNode> baseNode = shared_static_cast<BaseNode> - (make_shared(GetParent())); + (GetParent().lock()); const Matrix& mat = baseNode->GetWorldTransform(); SetRotation(mat); @@ -425,7 +425,7 @@ const dReal* rot = dBodyGetRotation(mODEBody); shared_ptr<BaseNode> baseNode = shared_static_cast<BaseNode> - (make_shared(GetParent())); + (GetParent().lock()); Matrix mat; @@ -513,7 +513,7 @@ } shared_ptr<Body> body = shared_static_cast<Body> - (make_shared(bodyPtr->GetSelf())); + (bodyPtr->GetSelf().lock()); if (body.get() == 0) { Modified: trunk/spark/lib/oxygen/physicsserver/bodycontroller.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/bodycontroller.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/physicsserver/bodycontroller.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -43,7 +43,7 @@ mBody.reset(); mBody = shared_dynamic_cast<Body> - (make_shared(GetParentSupportingClass("Body"))); + (GetParentSupportingClass("Body").lock()); if (mBody.get() == 0) { Modified: trunk/spark/lib/oxygen/physicsserver/collider.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/collider.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/physicsserver/collider.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -194,7 +194,7 @@ } shared_ptr<Collider> collider = shared_static_cast<Collider> - (make_shared(collPtr->GetSelf())); + (collPtr->GetSelf().lock()); if (collider.get() == 0) { Modified: trunk/spark/lib/oxygen/physicsserver/collisionhandler.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/collisionhandler.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/physicsserver/collisionhandler.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -69,7 +69,7 @@ << "(CollisionHandler) found no Space node\n"; } - mCollider = shared_static_cast<Collider>(make_shared(GetParent())); + mCollider = shared_static_cast<Collider>(GetParent().lock()); if (mCollider.get() == 0) { GetLog()->Debug() Modified: trunk/spark/lib/oxygen/physicsserver/joint.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/joint.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/physicsserver/joint.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -66,7 +66,7 @@ } shared_ptr<Joint> joint = shared_static_cast<Joint> - (make_shared(jointPtr->GetSelf())); + (jointPtr->GetSelf().lock()); if (joint.get() == 0) { @@ -126,7 +126,7 @@ } shared_ptr<Leaf> mySelf = shared_static_cast<Leaf> - (make_shared(GetSelf())); + (GetSelf().lock()); shared_ptr<Leaf> leaf = GetCore()->Get(path,mySelf); Modified: trunk/spark/lib/oxygen/sceneserver/basenode.cpp =================================================================== --- trunk/spark/lib/oxygen/sceneserver/basenode.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/sceneserver/basenode.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -153,7 +153,7 @@ } // move up the hierarchy until we find a scene node - return make_shared(FindParentSupportingClass<Scene>()); + return FindParentSupportingClass<Scene>().lock(); } void BaseNode::EnableDebugMode() Modified: trunk/spark/lib/oxygen/sceneserver/fpscontroller.cpp =================================================================== --- trunk/spark/lib/oxygen/sceneserver/fpscontroller.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/sceneserver/fpscontroller.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -161,7 +161,7 @@ mBody->SetVelocity(velocity); shared_ptr<BaseNode> bodyParent = shared_static_cast<BaseNode> - (make_shared(mBody->GetParent())); + (mBody->GetParent().lock()); if (bodyParent.get() != 0) { Modified: trunk/spark/lib/oxygen/sceneserver/sceneserver.cpp =================================================================== --- trunk/spark/lib/oxygen/sceneserver/sceneserver.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/sceneserver/sceneserver.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -297,7 +297,7 @@ void SceneServer::ReparentTransformChildren(shared_ptr<Transform> node) { shared_ptr<BaseNode> parent = - shared_dynamic_cast<BaseNode>(make_shared(node->GetParent())); + shared_dynamic_cast<BaseNode>(node->GetParent().lock()); // while not empty while (node->begin() != node->end()) Modified: trunk/spark/lib/oxygen/sceneserver/transform.cpp =================================================================== --- trunk/spark/lib/oxygen/sceneserver/transform.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/sceneserver/transform.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -66,7 +66,7 @@ void Transform::SetWorldTransform(const salt::Matrix &transform) { shared_ptr<BaseNode> parent = shared_static_cast<BaseNode> - (make_shared(mParent)); + (mParent.lock()); if (parent.get() == 0) { @@ -122,7 +122,7 @@ void Transform::UpdateHierarchyInternal() { - shared_ptr<BaseNode> parent = shared_static_cast<BaseNode>(make_shared(mParent)); + shared_ptr<BaseNode> parent = shared_static_cast<BaseNode>(mParent.lock()); // no parent, return local transform if (parent.get() == NULL) Modified: trunk/spark/lib/oxygen/simulationserver/simcontrolnode.cpp =================================================================== --- trunk/spark/lib/oxygen/simulationserver/simcontrolnode.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/oxygen/simulationserver/simcontrolnode.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -40,7 +40,7 @@ shared_ptr<SimulationServer> SimControlNode::GetSimulationServer() { return shared_static_cast<SimulationServer> - (make_shared(GetParent())); + (GetParent().lock()); } void SimControlNode::SetSimTime( float now ) Modified: trunk/spark/lib/zeitgeist/class.cpp =================================================================== --- trunk/spark/lib/zeitgeist/class.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/class.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -62,7 +62,7 @@ if (obj.get()) { if (obj->Construct(obj, shared_static_cast<Class> - (make_shared(GetSelf()))) == true) + (GetSelf().lock())) == true) { // successfully constructed AttachInstance(obj); @@ -85,7 +85,7 @@ } - return make_shared(mCore); + return mCore.lock(); } void Class::AttachInstance(const boost::weak_ptr<Object> &instance) Modified: trunk/spark/lib/zeitgeist/core.cpp =================================================================== --- trunk/spark/lib/zeitgeist/core.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/core.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -232,7 +232,7 @@ boost::shared_ptr<CoreContext> Core::CreateContext() { - return shared_ptr<CoreContext>(new CoreContext(make_shared(mSelf), GetRoot())); + return shared_ptr<CoreContext>(new CoreContext(mSelf.lock(), GetRoot())); } boost::shared_ptr<Object> Modified: trunk/spark/lib/zeitgeist/leaf.cpp =================================================================== --- trunk/spark/lib/zeitgeist/leaf.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/leaf.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -51,13 +51,13 @@ { if (name.compare("..") == 0) { - return make_shared(GetParent()); + return GetParent().lock(); } if (name.compare(".") == 0) { - return shared_static_cast<Leaf>(make_shared(GetSelf())); + return shared_static_cast<Leaf>(GetSelf().lock()); } return boost::shared_ptr<Leaf>(); @@ -77,12 +77,12 @@ { if (name.compare("..") == 0) { - baseList.push_back(make_shared(GetParent())); + baseList.push_back(GetParent().lock()); } if (name.compare(".") == 0) { - baseList.push_back(shared_static_cast<Leaf>(make_shared(GetSelf()))); + baseList.push_back(shared_static_cast<Leaf>(GetSelf().lock())); } } @@ -98,7 +98,7 @@ Leaf::GetParentSupportingClass(const std::string &name) const { shared_ptr<Node> node - = shared_static_cast<Node>(make_shared(GetParent())); + = shared_static_cast<Node>(GetParent().lock()); while ( @@ -107,7 +107,7 @@ (! node->GetClass()->SupportsClass(name)) ) { - node = make_shared(node->GetParent()); + node = node->GetParent().lock(); } return weak_ptr<Node>(node); @@ -160,7 +160,7 @@ { if (p) { - shared_ptr<Leaf> blah = make_shared(GetParent()); + shared_ptr<Leaf> blah = GetParent().lock(); parentPath = blah->GetFullPath(); } } Modified: trunk/spark/lib/zeitgeist/leaf.h =================================================================== --- trunk/spark/lib/zeitgeist/leaf.h 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/leaf.h 2008-12-19 18:12:56 UTC (rev 19) @@ -199,7 +199,7 @@ FindParentSupportingClass() const; // { // boost::shared_ptr<Node> node -// = boost::shared_static_cast<Node>(make_shared(GetParent())); +// = boost::shared_static_cast<Node>(GetParent().lock()); // while (node.get() != 0) // { @@ -211,7 +211,7 @@ // return test; // } -// node = boost::shared_static_cast<Node>(make_shared(node->GetParent())); +// node = boost::shared_static_cast<Node>(node->GetParent().lock()); // } // return boost::shared_ptr<CLASS>(); Modified: trunk/spark/lib/zeitgeist/node.cpp =================================================================== --- trunk/spark/lib/zeitgeist/node.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/node.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -232,7 +232,7 @@ } mChildren.push_back(leaf); - leaf->SetParent(shared_static_cast<Node>(make_shared(GetSelf()))); + leaf->SetParent(shared_static_cast<Node>(GetSelf().lock())); return true; } Modified: trunk/spark/lib/zeitgeist/node.h =================================================================== --- trunk/spark/lib/zeitgeist/node.h 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/lib/zeitgeist/node.h 2008-12-19 18:12:56 UTC (rev 19) @@ -132,7 +132,7 @@ Leaf::FindParentSupportingClass() const { boost::shared_ptr<Node> node - = boost::shared_static_cast<Node>(make_shared(GetParent())); + = boost::shared_static_cast<Node>(GetParent().lock()); while (node.get() != 0) { @@ -144,7 +144,7 @@ return test; } - //node = boost::shared_static_cast<Node>(make_shared(node->GetParent())); + //node = boost::shared_static_cast<Node>(node->GetParent().lock()); node = boost::shared_static_cast<Node>(node->GetParent().lock()); } Modified: trunk/spark/plugin/forceeffector/forceeffector.cpp =================================================================== --- trunk/spark/plugin/forceeffector/forceeffector.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/plugin/forceeffector/forceeffector.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -83,7 +83,7 @@ void ForceEffector::OnLink() { shared_ptr<BaseNode> parent = - shared_dynamic_cast<BaseNode>(make_shared(GetParent())); + shared_dynamic_cast<BaseNode>(GetParent().lock()); if (parent.get() == 0) { Modified: trunk/spark/plugin/perfectvisionperceptor/perfectvisionperceptor.cpp =================================================================== --- trunk/spark/plugin/perfectvisionperceptor/perfectvisionperceptor.cpp 2008-12-01 20:57:25 UTC (rev 18) +++ trunk/spark/plugin/perfectvisionperceptor/perfectvisionperceptor.cpp 2008-12-19 18:12:56 UTC (rev 19) @@ -71,7 +71,7 @@ // we want positions relative to the closest parent transform node shared_ptr<Transform> parent = shared_dynamic_cast<Transform> - (make_shared(FindParentSupportingClass<Transform>())); + (FindParentSupportingClass<Transform>().lock()); salt::Vector3f myPos(0,0,0); if (parent.get() == 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2008-12-01 20:57:28
|
Revision: 18 http://simspark.svn.sourceforge.net/simspark/?rev=18&view=rev Author: hedayat Date: 2008-12-01 20:57:25 +0000 (Mon, 01 Dec 2008) Log Message: ----------- Some cleanups Checking for networking libraries Modified Paths: -------------- trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/configure.ac trunk/spark/lib/kerosin/CMakeLists.txt trunk/spark/lib/oxygen/CMakeLists.txt trunk/spark/lib/salt/CMakeLists.txt trunk/spark/lib/zeitgeist/CMakeLists.txt trunk/spark/spark/CMakeLists.txt trunk/spark/utility/libobj/CMakeLists.txt trunk/spark/utility/rcssnet/CMakeLists.txt Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -38,14 +38,49 @@ ########## check types/functions ########## include(CheckFunctionExists) +include(CheckTypeSize) check_function_exists(strupr HAVE_STRUPR) -include(CheckTypeSize) set(CMAKE_REQUIRED_FLAGS "-include sys/socket.h") check_type_size(socklen_t SOCKLEN_T) +set(CMAKE_REQUIRED_FLAGS "") +########## check for required libraries ########## +include(CheckLibraryExists) +check_function_exists(socket FUNC_SOCKET_EXISTS) +if (NOT FUNC_SOCKET_EXISTS) + check_library_exists(socket socket "" SOCKET_LIB_REQ) + if (SOCKET_LIB_REQ) + set(NET_LIBS ${NET_LIBS} socket) + endif (SOCKET_LIB_REQ) +endif (NOT FUNC_SOCKET_EXISTS) + +check_function_exists(gethostbyname FUNC_GETHOSTBYNAME_EXISTS) +if (NOT FUNC_GETHOSTBYNAME_EXISTS) + check_library_exists(nsl gethostbyname "" NSL_LIB_REQ) + if (NSL_LIB_REQ) + set(NET_LIBS ${NET_LIBS} nsl) + endif (NSL_LIB_REQ) +endif (NOT FUNC_GETHOSTBYNAME_EXISTS) + +check_function_exists(hstrerror FUNC_HSTRERROR_EXISTS) +if (NOT FUNC_HSTRERROR_EXISTS) + check_library_exists(resolv hstrerror "" RESOLV_LIB_REQ) + if (RESOLV_LIB_REQ) + set(NET_LIBS ${NET_LIBS} resolv) + endif (RESOLV_LIB_REQ) +endif (NOT FUNC_HSTRERROR_EXISTS) + + ########## add extra flags ########## +set(CMAKE_BUILD_TYPE Debug) add_definitions(-DHAVE_CONFIG_H) include_directories(${CMAKE_BINARY_DIR}) +if (UNIX) + set(CMAKE_CXX_FLAGS "-Wno-deprecated") + set(CMAKE_CXX_FLAGS_DEBUG "-g -W -Wall -Woverloaded-virtual") + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") +endif (UNIX) + set(BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "The directory to install binaries into.") set(LIBDIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH @@ -98,7 +133,7 @@ add_subdirectory(lib) add_subdirectory(plugin) add_subdirectory(test) -#add_subdirectory(doc) +add_subdirectory(doc) add_subdirectory(spark) add_subdirectory(data) Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/ChangeLog 2008-12-01 20:57:25 UTC (rev 18) @@ -1,3 +1,18 @@ +2008-12-02 Hedayat Vatankhah <he...@gr...> + + * utility/libobj/CMakeLists.txt: + * spark/CMakeLists.txt: + * lib/zeitgeist/CMakeLists.txt: + * lib/salt/CMakeLists.txt: + * lib/kerosin/CMakeLists.txt: + * lib/oxygen/CMakeLists.txt: + * utility/rcssnet/CMakeLists.txt: + - some cleanup + - added header files to target's sources (will be added to VS projects) + + * configure.ac: + - removed wxutil makefile generation + 2008-12-01 Hedayat Vatankhah <he...@gr...> * plugin/soundsystemfmod/CMakeLists.txt: Modified: trunk/spark/configure.ac =================================================================== --- trunk/spark/configure.ac 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/configure.ac 2008-12-01 20:57:25 UTC (rev 18) @@ -140,7 +140,6 @@ utility/sfsexp/Makefile \ utility/rcssnet/Makefile \ utility/tinyxml/Makefile \ - utility/wxutil/Makefile \ lib/Makefile \ lib/salt/Makefile \ lib/salt/salt-config \ Modified: trunk/spark/lib/kerosin/CMakeLists.txt =================================================================== --- trunk/spark/lib/kerosin/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/lib/kerosin/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -1,3 +1,52 @@ +########### target ############### +set(kerosin_LIB_HDRS + fontserver/font.h + fontserver/fontserver.h + fontserver/glyph.h + imageserver/image.h + imageserver/imageserver.h + inputserver/inputdevice.h + inputserver/inputserver.h + inputserver/inputsystem.h + inputserver/scancodemap.h + inputserver/inputcontrol.h + inputserver/inputitem.h + inputserver/input.h + kerosin.h + materialserver/material.h + materialserver/materialserver.h + sceneserver/axis.h + materialserver/material2dtexture.h + materialserver/materialexternal.h + materialserver/materialsolid.h + materialserver/materialexporter.h + sceneserver/singlematnode.h + sceneserver/light.h + sceneserver/sphere.h + sceneserver/box.h + sceneserver/ccylinder.h + sceneserver/cylinder.h + sceneserver/staticmesh.h + soundserver/soundeffect.h + soundserver/soundmodule.h + soundserver/soundobject.h + soundserver/soundserver.h + soundserver/soundstream.h + soundserver/soundsystem.h + textureserver/texture.h + textureserver/texture2d.h + textureserver/textureserver.h + openglserver/openglwrapper.h + openglserver/openglsystem.h + openglserver/openglserver.h + openglserver/glbase.h + renderserver/baserenderserver.h + renderserver/renderserver.h + renderserver/rendernode.h + renderserver/rendercontrol.h + renderserver/customrender.h +) + set(kerosin_LIB_SRCS fontserver/font.cpp fontserver/fontserver.cpp @@ -70,10 +119,8 @@ include_directories(${CMAKE_SOURCE_DIR}/lib ${FREETYPE_INCLUDE_DIRS} ${DevIL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR}) -########### target ############### +add_library(kerosin SHARED ${kerosin_LIB_SRCS} ${kerosin_LIB_HDRS}) -add_library(kerosin SHARED ${kerosin_LIB_SRCS}) - target_link_libraries(kerosin ${FREETYPE_LIBRARIES} ${DevIL_LIBRARIES} ${SDL_LIBRARY} ${OPENGL_LIBRARIES}) @@ -93,53 +140,3 @@ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/kerosin FILES_MATCHING PATTERN "*.h") - -#original Makefile.am contents follow: - -#nobase_libpkginclude_HEADERS = \ -#fontserver/font.h \ -#fontserver/fontserver.h \ -#fontserver/glyph.h \ -#imageserver/image.h \ -#imageserver/imageserver.h \ -#inputserver/inputdevice.h \ -#inputserver/inputserver.h \ -#inputserver/inputsystem.h \ -#inputserver/scancodemap.h \ -#inputserver/inputcontrol.h \ -#inputserver/inputitem.h \ -#inputserver/input.h \ -#kerosin.h \ -#materialserver/material.h \ -#materialserver/materialserver.h \ -#sceneserver/axis.h \ -#materialserver/material2dtexture.h \ -#materialserver/materialexternal.h \ -#materialserver/materialsolid.h \ -#materialserver/materialexporter.h \ -#sceneserver/singlematnode.h \ -#sceneserver/light.h \ -#sceneserver/sphere.h \ -#sceneserver/box.h \ -#sceneserver/ccylinder.h \ -#sceneserver/cylinder.h \ -#sceneserver/staticmesh.h \ -#soundserver/soundeffect.h \ -#soundserver/soundmodule.h \ -#soundserver/soundobject.h \ -#soundserver/soundserver.h \ -#soundserver/soundstream.h \ -#soundserver/soundsystem.h \ -#textureserver/texture.h \ -#textureserver/texture2d.h \ -#textureserver/textureserver.h \ -#openglserver/openglwrapper.h \ -#openglserver/openglsystem.h \ -#openglserver/openglserver.h \ -#openglserver/glbase.h \ -#renderserver/baserenderserver.h \ -#renderserver/renderserver.h \ -#renderserver/rendernode.h \ -#renderserver/rendercontrol.h \ -#renderserver/customrender.h -# Modified: trunk/spark/lib/oxygen/CMakeLists.txt =================================================================== --- trunk/spark/lib/oxygen/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/lib/oxygen/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -1,3 +1,87 @@ +########### next target ############### +set(oxygen_LIB_HDRS + agentaspect/agentaspect.h + agentaspect/effector.h + agentaspect/jointeffector.h + agentaspect/jointperceptor.h + agentaspect/perceptor.h + agentaspect/createaction.h + controlaspect/controlaspect.h + gamecontrolserver/predicate.h + gamecontrolserver/gamecontrolserver.h + gamecontrolserver/baseparser.h + gamecontrolserver/actionobject.h + gamecontrolserver/behavior.h + oxygen.h + physicsserver/body.h + physicsserver/bodycontroller.h + physicsserver/boxcollider.h + physicsserver/ccylindercollider.h + physicsserver/collider.h + physicsserver/collisionhandler.h + physicsserver/contactjointhandler.h + physicsserver/odeobject.h + physicsserver/odewrapper.h + physicsserver/physicsserver.h + physicsserver/planecollider.h + physicsserver/raycollider.h + physicsserver/recorderhandler.h + physicsserver/space.h + physicsserver/spherecollider.h + physicsserver/transformcollider.h + physicsserver/world.h + physicsserver/dragcontroller.h + physicsserver/velocitycontroller.h + physicsserver/joint.h + physicsserver/balljoint.h + physicsserver/hingejoint.h + physicsserver/fixedjoint.h + physicsserver/sliderjoint.h + physicsserver/universaljoint.h + physicsserver/hinge2joint.h + physicsserver/angularmotor.h + sceneserver/sceneimporter.h + sceneserver/basenode.h + sceneserver/fpscontroller.h + sceneserver/scene.h + sceneserver/sceneserver.h + sceneserver/sceneimporter.h + sceneserver/transform.h + sceneserver/camera.h + sceneserver/scenedict.h + simulationserver/simulationserver.h + simulationserver/simcontrolnode.h + simulationserver/agentcontrol.h + simulationserver/monitorcontrol.h + simulationserver/monitorlogger.h + simulationserver/netcontrol.h + simulationserver/netclient.h + simulationserver/netmessage.h + simulationserver/netbuffer.h + simulationserver/traincontrol.h + geometryserver/geometryserver.h + geometryserver/meshexporter.h + geometryserver/meshimporter.h + geometryserver/stdmeshimporter.h + geometryserver/trimesh.h + geometryserver/indexbuffer.h + monitorserver/monitorserver.h + monitorserver/monitorsystem.h + monitorserver/monitoritem.h + monitorserver/custommonitor.h + monitorserver/monitorcmdparser.h +) +if(SPADES_FOUND) + set(oxygen_LIB_HDRS + ${oxygen_LIB_HDRS} + spadesserver/spadesserver.h + spadesserver/paramreader.h + spadesserver/paramstorer.h + spadesserver/spadescreatesenseevent.h + spadesserver/spadesactevent.h + ) +endif(SPADES_FOUND) + set(oxygen_LIB_SRCS agentaspect/agentaspect.cpp agentaspect/agentaspect_c.cpp @@ -135,10 +219,8 @@ include_directories(${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/utility/) -########### next target ############### +add_library(oxygen SHARED ${oxygen_LIB_SRCS} ${oxygen_LIB_HDRS}) -add_library(oxygen SHARED ${oxygen_LIB_SRCS}) - target_link_libraries(oxygen rcssnet3D ${Boost_LIBRARIES} ${ODE_LIBRARY}) set_target_properties(oxygen PROPERTIES VERSION ${OXYGEN_VERSION} @@ -157,86 +239,3 @@ install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/oxygen FILES_MATCHING PATTERN "*.h") - -#original Makefile.am contents follow: - -#if DEBUG -#liboxygen_debug_la_CXXFLAGS = -O -g -W -Wall -Woverloaded-virtual -Wno-deprecated -#else -#liboxygen_la_CXXFLAGS = -O2 -Wno-deprecated -#liboxygen_la_LIBADD = -lode $(spades_libs) @BOOST_THREADS_LIB@ -# - -#nobase_libpkginclude_HEADERS = \ -#agentaspect/agentaspect.h \ -#agentaspect/effector.h \ -#agentaspect/jointeffector.h \ -#agentaspect/jointperceptor.h \ -#agentaspect/perceptor.h \ -#agentaspect/createaction.h \ -#controlaspect/controlaspect.h \ -#gamecontrolserver/predicate.h \ -#gamecontrolserver/gamecontrolserver.h \ -#gamecontrolserver/baseparser.h \ -#gamecontrolserver/actionobject.h \ -#gamecontrolserver/behavior.h \ -#oxygen.h \ -#physicsserver/body.h \ -#physicsserver/bodycontroller.h \ -#physicsserver/boxcollider.h \ -#physicsserver/ccylindercollider.h \ -#physicsserver/collider.h \ -#physicsserver/collisionhandler.h \ -#physicsserver/contactjointhandler.h \ -#physicsserver/odeobject.h \ -#physicsserver/odewrapper.h \ -#physicsserver/physicsserver.h \ -#physicsserver/planecollider.h \ -#physicsserver/raycollider.h \ -#physicsserver/recorderhandler.h \ -#physicsserver/space.h \ -#physicsserver/spherecollider.h \ -#physicsserver/transformcollider.h \ -#physicsserver/world.h \ -#physicsserver/dragcontroller.h \ -#physicsserver/velocitycontroller.h \ -#physicsserver/joint.h \ -#physicsserver/balljoint.h \ -#physicsserver/hingejoint.h \ -#physicsserver/fixedjoint.h \ -#physicsserver/sliderjoint.h \ -#physicsserver/universaljoint.h \ -#physicsserver/hinge2joint.h \ -#physicsserver/angularmotor.h \ -#sceneserver/sceneimporter.h \ -#sceneserver/basenode.h \ -#sceneserver/fpscontroller.h \ -#sceneserver/scene.h \ -#sceneserver/sceneserver.h \ -#sceneserver/sceneimporter.h \ -#sceneserver/transform.h \ -#sceneserver/camera.h \ -#sceneserver/scenedict.h \ -#simulationserver/simulationserver.h \ -#simulationserver/simcontrolnode.h \ -#simulationserver/agentcontrol.h \ -#simulationserver/monitorcontrol.h \ -#simulationserver/monitorlogger.h \ -#simulationserver/netcontrol.h \ -#simulationserver/netclient.h \ -#simulationserver/netmessage.h \ -#simulationserver/netbuffer.h \ -#simulationserver/traincontrol.h \ -#geometryserver/geometryserver.h \ -#geometryserver/meshexporter.h \ -#geometryserver/meshimporter.h \ -#geometryserver/stdmeshimporter.h \ -#geometryserver/trimesh.h \ -#geometryserver/indexbuffer.h \ -#monitorserver/monitorserver.h \ -#monitorserver/monitorsystem.h \ -#monitorserver/monitoritem.h \ -#monitorserver/custommonitor.h \ -#monitorserver/monitorcmdparser.h \ -#$(spades_headers) -# Modified: trunk/spark/lib/salt/CMakeLists.txt =================================================================== --- trunk/spark/lib/salt/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/lib/salt/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -1,17 +1,33 @@ +########### target ############### +set(salt_LIB_HDRS + bounds.h + fileclasses.h + gmath.h + path.h + random.h + salt.h + tvector.h + defines.h + frustum.h + matrix.h + plane.h + rect.h + sharedlibrary.h + vector.h +) + set(salt_LIB_SRCS - bounds.cpp - fileclasses.cpp - frustum.cpp - matrix.cpp - path.cpp - plane.cpp - sharedlibrary.cpp + bounds.cpp + fileclasses.cpp + frustum.cpp + matrix.cpp + path.cpp + plane.cpp + sharedlibrary.cpp ) -########### target ############### +add_library(salt SHARED ${salt_LIB_SRCS} ${salt_LIB_HDRS}) -add_library(salt SHARED ${salt_LIB_SRCS}) - target_link_libraries(salt libobject) set_target_properties(salt PROPERTIES VERSION ${SALT_VERSION} @@ -29,24 +45,3 @@ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) -#original Makefile.am contents follow: - -#if DEBUG -#libsalt_debug_la_CXXFLAGS = -O -g -W -Wall -#libsalt_la_CXXFLAGS = -O2 -# -#libpkginclude_HEADERS = \ -#bounds.h \ -#fileclasses.h \ -#gmath.h \ -#path.h \ -#random.h \ -#salt.h \ -#tvector.h \ -#defines.h \ -#frustum.h \ -#matrix.h \ -#plane.h \ -#rect.h \ -#sharedlibrary.h \ -#vector.h Modified: trunk/spark/lib/zeitgeist/CMakeLists.txt =================================================================== --- trunk/spark/lib/zeitgeist/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/lib/zeitgeist/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -1,3 +1,28 @@ +########### target ############### +set(zeitgeist_LIB_HDRS + class.h + core.h + corecontext.h + leaf.h + parameterlist.h + node.h + object.h + object_c.h + zeitgeist.h + fileserver/fileserver.h + fileserver/filesystem.h + logserver/logserver.h + logserver/logserverstreambuf.h + randomserver/randomserver.h + scriptserver/gcvalue.h + scriptserver/scriptserver.h + scriptserver/rubywrapper.h + + #telnetserver/telnetdaemon.h + #telnetserver/telnetserver.h + #telnetserver/telnetsession.h +) + set(zeitgeist_LIB_SRCS class.cpp class_c.cpp @@ -31,8 +56,7 @@ include_directories(${CMAKE_SOURCE_DIR}/lib ${RUBY_INCLUDE_PATH}) -########### target ############### -add_library(zeitgeist SHARED ${zeitgeist_LIB_SRCS}) +add_library(zeitgeist SHARED ${zeitgeist_LIB_SRCS} ${zeitgeist_LIB_HDRS}) target_link_libraries(zeitgeist ${RUBY_LIBRARY}) @@ -53,27 +77,3 @@ FILES_MATCHING PATTERN "*.h") -#original Makefile.am contents follow: - -#nobase_libpkginclude_HEADERS = \ -#class.h \ -#core.h \ -#corecontext.h \ -#leaf.h \ -#parameterlist.h \ -#node.h \ -#object.h \ -#object_c.h \ -#zeitgeist.h \ -#fileserver/fileserver.h \ -#fileserver/filesystem.h \ -#logserver/logserver.h \ -#logserver/logserverstreambuf.h \ -#randomserver/randomserver.h \ -#scriptserver/gcvalue.h \ -#scriptserver/scriptserver.h \ -#scriptserver/rubywrapper.h -# -##telnetserver/telnetdaemon.h \ -##telnetserver/telnetserver.h \ -##telnetserver/telnetsession.h Modified: trunk/spark/spark/CMakeLists.txt =================================================================== --- trunk/spark/spark/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/spark/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -2,6 +2,7 @@ set(spark_LIB_SRCS spark.cpp + spark.h ) include_directories(${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/utility @@ -25,18 +26,3 @@ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) install(FILES spark.h DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/spark) - - - -#original Makefile.am contents follow: - -#libspark_debug_la_CXXFLAGS = -O -g -W -Wall -#libspark_la_LIBADD = @FREETYPE_LIBADD@ @SDL_LIBADD@ @IL_LIBADD@ @GL_LIBADD@ -#bin_SCRIPTS = spark-config -# -#AM_CPPFLAGS = -I${top_srcdir}/lib -I${top_srcdir}/utility \ -# @FREETYPE_CPPFLAGS@ @RUBY_CPPFLAGS@ @SDL_CPPFLAGS@ -# -# -#nobase_libpkginclude_HEADERS = \ -#spark.h Modified: trunk/spark/utility/libobj/CMakeLists.txt =================================================================== --- trunk/spark/utility/libobj/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/utility/libobj/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -8,17 +8,5 @@ add_library(libobject STATIC ${libobject_STAT_SRCS}) -########### install files ############### - - - - -#original Makefile.am contents follow: - -#noinst_LTLIBRARIES = liblibobject.la # -#liblibobject_la_SOURCES = libobj.c -# -#liblibobject_la_LIBADD = @LTLIBOBJS@ -# #EXTRA_DIST = memcmp.c _vsnprintf.c Modified: trunk/spark/utility/rcssnet/CMakeLists.txt =================================================================== --- trunk/spark/utility/rcssnet/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) +++ trunk/spark/utility/rcssnet/CMakeLists.txt 2008-12-01 20:57:25 UTC (rev 18) @@ -1,18 +1,29 @@ +########### target ############### +set(rcssnet3D_LIB_HDRS + addr.hpp + exception.hpp + handler.hpp + iosocketstream.hpp + isocketstream.hpp + osocketstream.hpp + socket.hpp + socketstreambuf.hpp + tcpsocket.hpp + udpsocket.hpp +) -########### next target ############### - set(rcssnet3D_LIB_SRCS - addr.cpp - exception.cpp - handler.cpp - socket.cpp - tcpsocket.cpp - udpsocket.cpp + addr.cpp + exception.cpp + handler.cpp + socket.cpp + tcpsocket.cpp + udpsocket.cpp ) -add_library(rcssnet3D SHARED ${rcssnet3D_LIB_SRCS}) +add_library(rcssnet3D SHARED ${rcssnet3D_LIB_SRCS} ${rcssnet3D_LIB_HDRS}) -target_link_libraries(rcssnet3D) +target_link_libraries(rcssnet3D ${NET_LIBS}) set_target_properties(rcssnet3D PROPERTIES VERSION ${RCSSNET_VERSION} SOVERSION ${RCSSNET_SO_VERSION}) @@ -23,23 +34,3 @@ install(DIRECTORY ./ DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}/rcssnet FILES_MATCHING PATTERN "*.hpp") - - - -#original Makefile.am contents follow: - -#libpkginclude_HEADERS = \ -#addr.hpp \ -#exception.hpp \ -#handler.hpp \ -#iosocketstream.hpp \ -#isocketstream.hpp \ -#osocketstream.hpp \ -#socket.hpp \ -#socketstreambuf.hpp \ -#tcpsocket.hpp \ -#udpsocket.hpp -# -#librcssnet3D_la_LIBADD = @NET_LIBS@ -### define include directory local to the pkgincludedir -#EXTRA_DIST = README This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2008-12-01 15:04:12
|
Revision: 17 http://simspark.svn.sourceforge.net/simspark/?rev=17&view=rev Author: hedayat Date: 2008-12-01 15:04:08 +0000 (Mon, 01 Dec 2008) Log Message: ----------- Added CPACK support Added FMOD checking support Modified Paths: -------------- trunk/spark/CMakeLists.txt trunk/spark/ChangeLog trunk/spark/plugin/soundsystemfmod/CMakeLists.txt Added Paths: ----------- trunk/spark/cmake/FindFMOD.cmake Modified: trunk/spark/CMakeLists.txt =================================================================== --- trunk/spark/CMakeLists.txt 2008-11-30 21:56:52 UTC (rev 16) +++ trunk/spark/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) @@ -32,6 +32,7 @@ find_package(ODE REQUIRED) find_package(OpenGL REQUIRED) find_package(SDL REQUIRED) +find_package(FMOD) set(HAVE_IL_IL_H 1) set(HAVE_KEROSIN_KEROSIN_H 1) @@ -55,6 +56,8 @@ "The directory to install includes into.") set(CMAKE_SHARED_MODULE_PREFIX "") +mark_as_advanced(BINDIR LIBDIR DATADIR INCLUDEDIR) + ########## library version numbers ########## set(SALT_SO_VERSION 3) set(SALT_VERSION ${SALT_SO_VERSION}.1.3) @@ -106,7 +109,15 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sparkconfig.h DESTINATION ${INCLUDEDIR}/${CMAKE_PROJECT_NAME}) +########### CPack section ############# +set(CPACK_SOURCE_GENERATOR TGZ) +set(CPACK_SOURCE_IGNORE_FILES + /CVS/ /[.]svn/ /.*[.]o /autom4te[.]cache/ /[.].*) +set(CPACK_PACKAGE_VERSION "0.1") +set(CPACK_SOURCE_PACKAGE_FILE_NAME + ${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}) +include(CPack) #original Makefile.am contents follow: Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2008-11-30 21:56:52 UTC (rev 16) +++ trunk/spark/ChangeLog 2008-12-01 15:04:08 UTC (rev 17) @@ -1,3 +1,15 @@ +2008-12-01 Hedayat Vatankhah <he...@gr...> + + * plugin/soundsystemfmod/CMakeLists.txt: + - fixed FMOD support + + * cmake/FindFMOD.cmake: + - added to the project + + * CMakeLists.txt: + - added initial cpack support + - added check for FMOD + 2008-11-25 Hedayat Vatankhah <he...@gr...> * lib/oxygen/Makefile.am: Added: trunk/spark/cmake/FindFMOD.cmake =================================================================== --- trunk/spark/cmake/FindFMOD.cmake (rev 0) +++ trunk/spark/cmake/FindFMOD.cmake 2008-12-01 15:04:08 UTC (rev 17) @@ -0,0 +1,94 @@ +# - Find FMOD includes and library +# +# This module defines +# FMOD_INCLUDE_DIRS +# FMOD_LIBRARIES, the libraries to link against to use FMOD. +# FMOD_LIBRARY_DIRS, the location of the libraries +# FMOD_FOUND, If false, do not try to use FMOD +# +# Copyright © 2007-2008, Matt Williams +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +IF (FMOD_LIBRARIES AND FMOD_INCLUDE_DIRS) + SET(FMOD_FIND_QUIETLY TRUE) +ENDIF (FMOD_LIBRARIES AND FMOD_INCLUDE_DIRS) + +SET(FMOD_INCLUDE_SEARCH_DIRS + ${INCLUDE_SEARCH_DIRS} + ${CMAKE_INCLUDE_PATH} + /usr/include + /usr/local/include + /usr/include/fmodex + /usr/local/include/fmodex + /opt/include/fmodex + /opt/fmodex/include + CACHE STRING "" +) + +SET(FMOD_LIBRARY_SEARCH_DIRS + ${LIBRARY_SEARCH_DIRS} + ${CMAKE_LIBRARY_PATH} + /usr/lib + /usr/lib64 + /usr/local/lib + /usr/local/lib64 + /opt/lib + /opt/lib64 + /opt/fmodex/lib + /opt/fmodex/lib64 + CACHE STRING "" +) + +IF (WIN32) #Windows + MESSAGE(STATUS "Looking for FMOD") + FIND_PATH(FMOD_INCLUDE_DIRS fmod.h ${FMOD_INCLUDE_SEARCH_DIRS}) + FIND_LIBRARY(FMOD_LIBRARIES debug fmodexp optimized fmodex PATHS ${FMOD_LIBRARY_SEARCH_DIRS}) + +ELSE (WIN32) #Unix + CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) + FIND_PACKAGE(PkgConfig) + IF(PKG_CONFIG_FOUND) + # TODO i don't know how this would be registered in pkg-config + PKG_SEARCH_MODULE(FMOD FMOD) + SET(FMOD_INCLUDE_DIRS ${FMOD_INCLUDE_DIRS}) + SET(FMOD_LIBRARY_DIRS ${FMOD_LIBDIR}) + SET(FMOD_LIBRARIES ${FMOD_LIBRARIES} CACHE STRING "") + ENDIF(PKG_CONFIG_FOUND) + IF(NOT FMOD_FOUND) #If PkgConfig couldn't find OGRE... + IF (NOT FMOD_FIND_QUIETLY) + MESSAGE(STATUS " Manually searching for FMOD") + ENDIF (NOT FMOD_FIND_QUIETLY) + FIND_PATH(FMOD_INCLUDE_DIRS fmod.h ${FMOD_INCLUDE_SEARCH_DIRS}) + MESSAGE(STATUS "FMOD_INCLUDE_DIRS: " ${FMOD_INCLUDE_DIRS}) + FIND_LIBRARY(FMOD_LIBRARY fmodex ${FMOD_LIBRARY_SEARCH_DIRS}) + SET(FMOD_LIBRARIES ${FMOD_LIBRARY}) + ENDIF(NOT FMOD_FOUND) +ENDIF (WIN32) + +#Do some preparation +SEPARATE_ARGUMENTS(FMOD_INCLUDE_DIRS) +SEPARATE_ARGUMENTS(FMOD_LIBRARIES) + +SET(FMOD_INCLUDE_DIRS ${FMOD_INCLUDE_DIRS}) +SET(FMOD_LIBRARIES ${FMOD_LIBRARIES}) +SET(FMOD_LIBRARY_DIRS ${FMOD_LIBRARY_DIRS}) + +MARK_AS_ADVANCED(FMOD_INCLUDE_DIRS FMOD_LIBRARIES FMOD_LIBRARY_DIRS) + +IF (FMOD_INCLUDE_DIRS AND FMOD_LIBRARIES) + SET(FMOD_FOUND TRUE) +ENDIF (FMOD_INCLUDE_DIRS AND FMOD_LIBRARIES) + +IF (FMOD_FOUND) + IF (NOT FMOD_FIND_QUIETLY) + MESSAGE(STATUS " libraries : ${FMOD_LIBRARIES} from ${FMOD_LIBRARY_DIRS}") + MESSAGE(STATUS " includes : ${FMOD_INCLUDE_DIRS}") + ENDIF (NOT FMOD_FIND_QUIETLY) +ELSE (FMOD_FOUND) + MESSAGE(STATUS "fmod not found!") + IF (FMOD_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find FMOD. Make sure you have the FMOD development headers are installed. Otherwise, try setting LIBRARY_SEARCH_DIRS and INCLUDE_SEARCH_DIRS to the place FMOD was installed with -DLIBRARY_SEARCH_DIRS=<path/to/lib> -DINCLUDE_SEARCH_DIRS=<path/to/include>") + ENDIF (FMOD_FIND_REQUIRED) +ENDIF (FMOD_FOUND) Modified: trunk/spark/plugin/soundsystemfmod/CMakeLists.txt =================================================================== --- trunk/spark/plugin/soundsystemfmod/CMakeLists.txt 2008-11-30 21:56:52 UTC (rev 16) +++ trunk/spark/plugin/soundsystemfmod/CMakeLists.txt 2008-12-01 15:04:08 UTC (rev 17) @@ -15,9 +15,12 @@ ) if (FMOD_FOUND) + include_directories(${FMOD_INCLUDE_DIRS}) + link_directories(${FMOD_LIBRARY_DIRS}) + add_library(soundsystemfmod MODULE ${soundsystemfmod_LIB_SRCS}) - target_link_libraries(soundsystemfmod fmod) + target_link_libraries(soundsystemfmod ${FMOD_LIBRARIES}) set_target_properties(soundsystemfmod PROPERTIES VERSION 0.0.0 SOVERSION 0) install(TARGETS soundsystemfmod DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME}) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |