SerializeDemo: create a testFile.bullet if it is missing

Serialization: remove obsolete autogenerated headers
Minor changes in btSequentialImpulseConstraintSolver: split methods to make it easier to derive from the class and add functionality.
This commit is contained in:
erwin.coumans
2010-02-19 23:24:04 +00:00
parent 07ea2a71e2
commit 85724b5500
13 changed files with 436 additions and 865 deletions

View File

@@ -21,3 +21,12 @@ INCLUDE_DIRECTORIES(${includes})
SET(Main_LIBS LinearMath)
ADD_EXECUTABLE(HeaderGenerator ${cpp_SRC} ${h_SRC})
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
ADD_CUSTOM_COMMAND(
TARGET HeaderGenerator
POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/HeaderGenerator/createDnaString.bat ${CMAKE_CURRENT_BINARY_DIR}/createDnaString.bat
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/HeaderGenerator/bulletGenerate.py ${CMAKE_CURRENT_BINARY_DIR}/bulletGenerate.py
)
ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)

View File

@@ -24,7 +24,7 @@ header = """/* Copyright (C) 2006-2009 Erwin Coumans & Charlie C
dtList = dump.DataTypeList
out = "../BulletFileLoader/autogenerated/"
out = "autogenerated/"
spaces = 4
def addSpaces(file, space):

View File

@@ -1,5 +1,7 @@
delete dnaString.txt
mkdir autogenerated
Debug\HeaderGenerator.exe
python bulletGenerate.py