Skip to content

Commit adf12f8

Browse files
feat: Add apng support for vtfpp.
1 parent be97344 commit adf12f8

File tree

7 files changed

+621
-3
lines changed

7 files changed

+621
-3
lines changed

ext/_ext.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ endfunction()
8787
# stb
8888
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/stb")
8989

90+
#apng_loader
91+
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/apng_loader")
9092

9193
# tinyexr
9294
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/tinyexr")
9395

94-
9596
# tbb
9697
function(sourcepp_add_tbb TARGET)
9798
if(SOURCEPP_BUILD_WITH_TBB)

ext/apng_loader/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cmake_minimum_required(VERSION 3.28)
2+
3+
project(apng_loader)
4+
5+
add_library(${PROJECT_NAME} STATIC ${CMAKE_CURRENT_LIST_DIR}/uc_apng_loader.cpp ${CMAKE_CURRENT_LIST_DIR}/uc_apng_loader.h)
6+
target_link_libraries(${PROJECT_NAME} PRIVATE sourcepp_stb)
7+
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR})

ext/apng_loader/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

ext/apng_loader/uc_apng_loader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "uc_apng_loader.h"

0 commit comments

Comments
 (0)