WIP of assimp integration.

This commit is contained in:
Areloch 2019-02-08 16:25:43 -06:00
parent 32c7f2c7a7
commit bf170ffbca
2135 changed files with 1260856 additions and 7 deletions

View file

@ -0,0 +1,49 @@
# -----------------------------------------------------------------------------
# Copyright (c) 2014 GarageGames, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# -----------------------------------------------------------------------------
#project(assimp)
#addPath("${libDir}/assimp/code")
#addPath("${libDir}/assimp/contrib/clipper")
#addPath("${libDir}/assimp/contrib/poly2tri")
#addPath("${libDir}/assimp/contrib/irrXML")
#addPath("${libDir}/assimp/contrib/zlib")
#addPath("${libDir}/assimp/contrib/unzip")
#addPath("${libDir}/assimp/contrib/rapidjson")
#addPath("${libDir}/assimp/contrib/ConvertUTF")
#addDef(ASSIMP_BUILD_NO_GLTF_IMPORTER)
#addDef(ASSIMP_BUILD_NO_C4D_IMPORTER)
#addDef(ASSIMP_BUILD_NO_IFC_IMPORTER)
#addDef(ASSIMP_BUILD_NO_OPENGEX_IMPORTER)
#addInclude(${libDir}/assimp/include/)
#addInclude(${libDir}/assimp/include/assimp)
#addInclude("${libDir}/assimp")
#addInclude("${libDir}/assimp/contrib")
#addInclude("${libDir}/assimp/contrib/irrXML")
#addInclude("${libDir}/assimp/contrib/unzip")
#addInclude("${libDir}/assimp/contrib/zlib")
include(${libDir}/assimp/CMakeLists.txt)
#finishLibrary()

View file

@ -345,6 +345,7 @@ addPath("${srcDir}/module")
addPathRec("${srcDir}/T3D/assets")
addPathRec("${srcDir}/persistence")
addPathRec("${srcDir}/ts/collada")
addPathRec("${srcDir}/ts/assimp")
addPathRec("${srcDir}/ts/loader")
addPathRec("${projectSrcDir}")
@ -643,6 +644,7 @@ addLib(convexDecomp)
if (TORQUE_OPENGL)
addLib(glad)
endif()
addLib(assimp)
if(WIN32)
# copy pasted from T3D build system, some might not be needed
@ -700,6 +702,7 @@ addDef(BAN_OPCODE_AUTOLINK)
addDef(ICE_NO_DLL)
addDef(TORQUE_OPCODE)
addDef(TORQUE_COLLADA)
addDef(TORQUE_ASSIMP)
addDef(DOM_INCLUDE_TINYXML)
addDef(PCRE_STATIC)
addDef(_CRT_SECURE_NO_WARNINGS)
@ -804,6 +807,7 @@ addInclude("${libDir}/libogg/include")
addInclude("${libDir}/opcode")
addInclude("${libDir}/collada/include")
addInclude("${libDir}/collada/include/1.4")
addInclude("${libDir}/assimp/include")
if(TORQUE_SDL)
addInclude("${libDir}/nativeFileDialogs/include")
endif()