Changeset 5752
- Timestamp:
- Sep 20, 2009, 2:58:51 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/GenerateToluaBindings.cmake
r5695 r5752 39 39 SET(_tolua_pkgfile "${CMAKE_CURRENT_BINARY_DIR}/tolua.pkg") 40 40 SET(_tolua_cxxfile "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.cc") 41 SET(_tolua_hfile "${CMAKE_ CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.h")41 SET(_tolua_hfile "${CMAKE_BINARY_DIR}/src/toluabind/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.h") 42 42 43 43 SET(${_target_source_files} -
code/trunk/src/CMakeLists.txt
r5744 r5752 69 69 ${VLD_INCLUDE_DIR} 70 70 71 # All library includes are prefixed with the path to avoid conflicts 72 ${CMAKE_CURRENT_SOURCE_DIR} 73 # Bullet headers really need the include directory 71 # All includes in "externals" should be prefixed with the path 72 # relative to "external" to avoid conflicts 73 ${CMAKE_CURRENT_SOURCE_DIR}/external 74 # Include directories needed even if only included by Orxonox 74 75 ${CMAKE_CURRENT_SOURCE_DIR}/external/bullet 75 # OIS headers need the root dir as well 76 ${CMAKE_CURRENT_SOURCE_DIR}/external/ois 76 77 77 # OrxonoxConfig.h 78 78 ${CMAKE_CURRENT_BINARY_DIR} 79 # Tolua bind files for Core80 ${CMAKE_CURRENT_BINARY_DIR}/libraries/core/${CMAKE_CFG_INTDIR}81 # Tolua bind files for Orxonox82 ${CMAKE_CURRENT_BINARY_DIR}/orxonox/${CMAKE_CFG_INTDIR}83 84 # Add the base directories for convenience85 ${CMAKE_CURRENT_SOURCE_DIR}/external86 ${CMAKE_CURRENT_SOURCE_DIR}/libraries87 ${CMAKE_CURRENT_SOURCE_DIR}/modules88 ${CMAKE_CURRENT_SOURCE_DIR}/orxonox89 79 ) 90 80 … … 93 83 ENDIF() 94 84 85 ################### Tolua Bind ################## 86 87 # Create directory because the tolua application doesn't work otherwise 88 IF(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 89 FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 90 ENDIF() 91 92 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 93 95 94 ################ Sub Directories ################ 96 95 97 96 ADD_SUBDIRECTORY(external) 98 97 ADD_SUBDIRECTORY(libraries) 98 ADD_SUBDIRECTORY(orxonox) 99 99 ADD_SUBDIRECTORY(modules) 100 ADD_SUBDIRECTORY(orxonox)101 100 102 101 ################ Executable ################ 102 103 INCLUDE_DIRECTORIES( 104 ${CMAKE_CURRENT_SOURCE_DIR}/libraries 105 ${CMAKE_CURRENT_SOURCE_DIR}/orxonox 106 ) 103 107 104 108 # Translate argument … … 117 121 ) 118 122 123 # Get name to configure the run scripts 119 124 GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION) 120 125 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME) -
code/trunk/src/Orxonox.cc
r5747 r5752 34 34 */ 35 35 36 #include "OrxonoxPrereqs.h"37 36 #include "SpecialConfig.h" 38 37 -
code/trunk/src/external/tolua/lua/package.lua
r5738 r5752 127 127 128 128 if flags.H then 129 local header = gsub(flags.H, '^.-([%w_]*%.[%w_]*)$', '%1') 130 local package_lower = string.lower(self.name) 131 output('#include "'..header..'"\n') 129 output('#include "'..flags.H..'"\n') 132 130 end 133 131 … … 204 202 205 203 if flags.H then 206 local package_lower = string.lower(self.name) 207 output('#include "'..package_lower..'/'..self.name..'Prereqs.h"\n') 204 output('#include "'..flags.w..'/'..self.name..'Prereqs.h"\n') 208 205 output('/* Exported function */') 209 206 output('_'..self.name..'Export') … … 222 219 -- *** Thanks to Ariel Manzur for fixing bugs in nested directives *** 223 220 function extract_code(fn,s) 224 local code = '\n$#include "'.. string.lower(flags.n)..'/'..fn..'"\n'221 local code = '\n$#include "'..flags.w..'/'..fn..'"\n' 225 222 s= "\n" .. s .. "\n" -- add blank lines as sentinels 226 223 -
code/trunk/src/libraries/CMakeLists.txt
r5738 r5752 18 18 # 19 19 20 INCLUDE_DIRECTORIES( 21 ${CMAKE_SOURCE_DIR}/src/external 22 ${CMAKE_CURRENT_SOURCE_DIR} 23 ) 24 20 25 ################ Sub Directories ################ 21 26 -
code/trunk/src/modules/CMakeLists.txt
r5738 r5752 18 18 # 19 19 20 INCLUDE_DIRECTORIES( 21 ${CMAKE_SOURCE_DIR}/src/external 22 ${CMAKE_SOURCE_DIR}/src/libraries 23 ${CMAKE_SOURCE_DIR}/src/orxonox 24 ${CMAKE_CURRENT_SOURCE_DIR} 25 ) 26 20 27 ################ Sub Directories ################ 21 28 -
code/trunk/src/orxonox/CMakeLists.txt
r5744 r5752 17 17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 18 # 19 20 INCLUDE_DIRECTORIES( 21 ${CMAKE_SOURCE_DIR}/src/external 22 ${CMAKE_SOURCE_DIR}/src/libraries 23 ${CMAKE_CURRENT_SOURCE_DIR} 24 ) 19 25 20 26 SET_SOURCE_FILES(ORXONOX_SRC_FILES
Note: See TracChangeset
for help on using the changeset viewer.