Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2008, 6:09:05 PM (17 years ago)
Author:
scheusso
Message:

merged trunk changes from 1101 to 1202 into camera branch

Location:
code/branches/camera/src/util
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • code/branches/camera/src/util/CMakeLists.txt

    r1085 r1211  
    1 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
    2 
    3 SET (UTIL_SRC_FILES
     1SET(UTIL_SRC_FILES
    42  ArgReader.cc
     3  Clipboard.cc
     4  ExprParser.cc
    55  Math.cc
    6   String.cc
    7   Clipboard.cc
    8   SubString.cc
    96  MultiTypePrimitive.cc
    107  MultiTypeString.cc
    118  MultiTypeMath.cc
     9  String.cc
     10  SubString.cc
     11
     12  tinyxml/ticpp.cc
     13  tinyxml/tinystr.cc
     14  tinyxml/tinyxml.cc
     15  tinyxml/tinyxmlerror.cc
     16  tinyxml/tinyxmlparser.cc
     17
    1218  tolua/tolua_event.c
    1319  tolua/tolua_is.c
     
    1521  tolua/tolua_push.c
    1622  tolua/tolua_to.c
    17   ${TINYXML_SRC_FILES}
    1823)
    1924
    20 ADD_LIBRARY( util SHARED ${UTIL_SRC_FILES} )
     25ADD_LIBRARY(util SHARED ${UTIL_SRC_FILES})
    2126
    2227IF(TESTING_ENABLED)
     
    2429ENDIF(TESTING_ENABLED)
    2530
    26 TARGET_LINK_LIBRARIES( util
     31TARGET_LINK_LIBRARIES(util
    2732  ${OGRE_LIBRARIES}
    2833  ${Lua_LIBRARIES}
    29   ${Lua_LIBRARY}
    3034)
    3135
     36ADD_SUBDIRECTORY(tolua)
     37
  • code/branches/camera/src/util/String.cc

    r1064 r1211  
    274274    if (str.size() == 0)
    275275        return str;
     276    else if (str.size() == 1)
     277    {
     278      //TODO: decide whether we need the commented code
     279      /*if (str[0] != '\\')
     280        return "";
     281      else*/
     282      return str;
     283    }
    276284
    277285    std::string output = "";
  • code/branches/camera/src/util/tolua/CMakeLists.txt

    r1076 r1211  
    1 PROJECT(ToLua)
    2 
    3 #This sets where to look for modules (e.g. "Find*.cmake" files)
    4 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/)
    5 
    6 #Check whether we are on a tardis box
    7 INCLUDE(CheckTardis)
    8 
    9 ########## Compiler/Linker options ##############
    10 
    11 # if on tardis change compiler and reset boost include directory
    12 IF(IS_TARDIS)
    13   MESSAGE("System is a TARDIS: Setting Compiler to g++-4.1.1")
    14   # force-set the compiler on tardis machines, as default points to g++-3.3
    15   SET(CMAKE_CXX_COMPILER "g++-4.1.1")
    16 ENDIF(IS_TARDIS)
    17 
    18 #set binary output directories
    19 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../../../bin)
    20 SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/../../../bin)
    21 
    22 # global compiler/linker flags. force -O2!
    23 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O2 -Wall -g -ggdb")
    24 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -Wall -g -ggdb")
    25 SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}")
    26 SET(CMAKE_EXE_LINKER_FLAGS " --no-undefined")
    27 SET(CMAKE_SHARED_LINKER_FLAGS " --no-undefined")
    28 SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined")
    29 
    30 #Create verbose makefile output when compiling
    31 SET(CMAKE_VERBOSE_MAKEFILE TRUE)
    32 
    33 
    34 ############### Library finding #################
    35 
    36 #Performs the search and sets the variables
    37 FIND_PACKAGE(Lua)
    38 
    39 #Set the search paths for the linking
    40 LINK_DIRECTORIES(
    41 )
    42 
    43 #Set the search paths for include files
    44 INCLUDE_DIRECTORIES(
    45   ${Lua_INCLUDE_DIR}
    46 )
    47 
    48 
    49 ################ Source files ###################
    50 
    51 SET (TOLUA_SRC_FILES
     1SET(TOLUA_SRC_FILES
    522  tolua.c
    533  tolua_event.c
     
    599)
    6010
    61 ADD_EXECUTABLE( tolua ${TOLUA_SRC_FILES} )
     11ADD_EXECUTABLE(tolua ${TOLUA_SRC_FILES})
    6212
    63 TARGET_LINK_LIBRARIES( tolua
     13TARGET_LINK_LIBRARIES(tolua
    6414  ${Lua_LIBRARIES}
    65   ${Lua_LIBRARY}
    6615  m
    6716)
     17
Note: See TracChangeset for help on using the changeset viewer.