Add TinyGLTF 2.8.5
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8863 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: ed25d8474fe31ab8d81d9539f64159e3bef508db Former-commit-id: 50044e0de462c57b11750f3f6c08d34ae6adf516
This commit is contained in:
parent
a88dc37376
commit
9cdb966e9a
4 changed files with 47 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# file : CMakeLists.txt
|
||||
# created : Aug 5 2015
|
||||
# copyright : (C) 2015-2022 Joe Thompson
|
||||
# copyright : (C) 2015-2023 Joe Thompson
|
||||
# email : beaglejoe@users.sourceforge.net
|
||||
# version : $Id$
|
||||
#
|
||||
|
@ -112,7 +112,8 @@ option(OPTION_SQLITE3 "Download and Build sqlite3" false)
|
|||
option(OPTION_FREETYPE "Download and Build FreeType" true)
|
||||
option(OPTION_CURL "Download and Build curl" true)
|
||||
option(OPTION_OSG "Download and Build OpenSceneGraph" true)
|
||||
option(OPTION_GLM "Download and install GLM math headers" false)
|
||||
option(OPTION_GLM "Download and install GLM math headers" true)
|
||||
option(OPTION_TINYGLTF "Download and Build TinyGLTF" true)
|
||||
option(OPTION_CACHED_ARCHIVES "Download from a defined cache" false)
|
||||
|
||||
set(CACHED_URL "" CACHE STRING "Preferred url from which to download")
|
||||
|
@ -139,6 +140,7 @@ if(OPTION_CACHED_ARCHIVES)
|
|||
set(OSG_URL "${CACHED_URL}/${OSG_FILE}")
|
||||
set(GLM_URL "${CACHED_URL}/${GLM_FILE}")
|
||||
set(SQLITE3_URL "${CACHED_URL}/${SQLITE3_FILE}")
|
||||
set(TINYGLTF_URL "${CACHED_URL}/${TINYGLTF_FILE}")
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -534,6 +536,18 @@ else(OPTION_GLM)
|
|||
set(GLM_PROJECT )
|
||||
endif(OPTION_GLM)
|
||||
|
||||
if(OPTION_TINYGLTF)
|
||||
set(TINYGLTF_ARGS ${EXTERNALS_CMAKE_ARGS} -D TINYGLTF_BUILD_LOADER_EXAMPLE=Off
|
||||
-D CMAKE_DEBUG_POSTFIX= )
|
||||
ExternalProject_Add(${TINYGLTF_PROJECT}
|
||||
URL ${TINYGLTF_URL}
|
||||
URL_HASH ${TINYGLTF_HASH}
|
||||
CMAKE_ARGS ${TINYGLTF_ARGS})
|
||||
else(OPTION_TINYGLTF)
|
||||
set(TINYGLTF_PROJECT )
|
||||
endif(OPTION_TINYGLTF)
|
||||
|
||||
|
||||
# no-output target, for having some files available in IDEs.
|
||||
set(DOCSOURCES COPYING LICENSE readme.txt)
|
||||
|
||||
|
|
21
packaging/3rdParty-devel/Licenses/tinygltf/LICENSE
Normal file
21
packaging/3rdParty-devel/Licenses/tinygltf/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Syoyo Fujita, Aurélien Chatelain and many contributors
|
||||
|
||||
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.
|
|
@ -211,3 +211,10 @@ set(GLM_PROJECT glm-${GLM_VERSION})
|
|||
set(GLM_FILE ${GLM_PROJECT}.zip)
|
||||
set(GLM_URL https://github.com/g-truc/glm/releases/download/${GLM_VERSION}/${GLM_FILE})
|
||||
set(GLM_HASH SHA256=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c)
|
||||
|
||||
# TinyGLTF
|
||||
set(TINYGLTF_VERSION 2.8.5)
|
||||
set(TINYGLTF_PROJECT TinyGLTF-${TINYGLTF_VERSION})
|
||||
set(TINYGLTF_FILE ${TINYGLTF_PROJECT}.tar.gz)
|
||||
set(TINYGLTF_URL https://github.com/syoyo/tinygltf/archive/refs/tags/v${TINYGLTF_VERSION}.tar.gz)
|
||||
set(TINYGLTF_HASH SHA256=c2deafb54d987e97636334055fa689b8186ee8aa5e4769914ffd2775be20b51a)
|
||||
|
|
|
@ -73,6 +73,7 @@ if(NOT CACHED_URL STREQUAL "")
|
|||
set(OSG_URL "${CACHED_URL}/${OSG_FILE}")
|
||||
set(SQLITE3_URL "${CACHED_URL}/${SQLITE3_FILE}")
|
||||
set(GLM_URL "${CACHED_URL}/${GLM_FILE}")
|
||||
set(TINYGLTF_URL "${CACHED_URL}/${TINYGLTF_FILE}")
|
||||
else()
|
||||
set(SDL2_URL "${CACHED_URL}/${SDL2_FILE} ${SDL2_URL}")
|
||||
set(SDL2_LEGACY_URL "${CACHED_URL}/${SDL2_LEGACY_FILE} ${SDL2_LEGACY_URL}")
|
||||
|
@ -97,6 +98,7 @@ if(NOT CACHED_URL STREQUAL "")
|
|||
set(OSG_URL "${CACHED_URL}/${OSG_FILE} ${OSG_URL}")
|
||||
set(SQLITE3_URL "${CACHED_URL}/${SQLITE3_FILE} ${SQLITE3_URL}")
|
||||
set(GLM_URL "${CACHED_URL}/${GLM_FILE} ${GLM_URL}")
|
||||
set(TINYGLTF_URL "${CACHED_URL}/${TINYGLTF_FILE} ${TINYGLTF_URL}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -152,6 +154,7 @@ SD_DownloadIfNeeded(${DOWNLOAD_DIRECTORY}/${CURL_FILE} ${CURL_URL})
|
|||
SD_DownloadIfNeeded(${DOWNLOAD_DIRECTORY}/${OSG_FILE} ${OSG_URL})
|
||||
SD_DownloadIfNeeded(${DOWNLOAD_DIRECTORY}/${SQLITE3_FILE} ${SQLITE3_URL})
|
||||
SD_DownloadIfNeeded(${DOWNLOAD_DIRECTORY}/${GLM_FILE} ${GLM_URL})
|
||||
SD_DownloadIfNeeded(${DOWNLOAD_DIRECTORY}/${TINYGLTF_FILE} ${TINYGLTF_URL})
|
||||
|
||||
|
||||
message(STATUS "DOWNLOAD_DIRECTORY = " ${DOWNLOAD_DIRECTORY})
|
||||
|
|
Loading…
Reference in a new issue