Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ports/gif-load/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO hidefromkgb/gif_load
REF 74b674de2704bc1b20fc3bf482a5ee3e774b67c5
SHA512 f58b02ad62c0898865bb0c933711f52eb203c3e49b832847613a1de32330192636ddd31aacba2cefe7a7acde7c9be3c5edeea262b905b9a49bf05f4bbafddc21
HEAD_REF master
)

file(INSTALL "${SOURCE_PATH}/gif_load.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/unofficial-gif-load-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-gif-load")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/gif_load.h")
5 changes: 5 additions & 0 deletions ports/gif-load/unofficial-gif-load-config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(NOT TARGET unofficial::gif-load::gif-load)
add_library(unofficial::gif-load::gif-load INTERFACE IMPORTED)
set_target_properties(unofficial::gif-load::gif-load PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include")
endif()
7 changes: 7 additions & 0 deletions ports/gif-load/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "gif-load",
"version-date": "2019-01-06",
"description": "A slim, fast and header-only GIF loader written in C",
"homepage": "https://github.com/hidefromkgb/gif_load",
"license": "Unlicense"
}
5 changes: 5 additions & 0 deletions scripts/test_ports/vcpkg-ci-gif-load/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_cmake_configure(
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
)
vcpkg_cmake_build()
5 changes: 5 additions & 0 deletions scripts/test_ports/vcpkg-ci-gif-load/project/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.22)
project(gif-load-test LANGUAGES C)
find_package(unofficial-gif-load CONFIG REQUIRED)
add_executable(main main.c)
target_link_libraries(main PRIVATE unofficial::gif-load::gif-load)
15 changes: 15 additions & 0 deletions scripts/test_ports/vcpkg-ci-gif-load/project/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <gif_load.h>
#include <stdbool.h>

static const unsigned char gif_data[] = { 0x47 };
static void frame_writer(void *anim, struct GIF_WHDR *whdr)
{
(void)anim;
(void)whdr;
}

int main(void)
{
const bool success = GIF_Load((void *)gif_data, (long)sizeof(gif_data), frame_writer, 0, 0, 0) == 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this isn't actually running the result; it's a compile only test, so I'm not sure how plausible this needs to be.

return 0;
}
12 changes: 12 additions & 0 deletions scripts/test_ports/vcpkg-ci-gif-load/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "vcpkg-ci-gif-load",
"version-string": "ci",
"description": "Validates gif-load",
"dependencies": [
"gif-load",
{
"name": "vcpkg-cmake",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3432,6 +3432,10 @@
"baseline": "2019-10-07",
"port-version": 3
},
"gif-load": {
"baseline": "2019-01-06",
"port-version": 0
},
"giflib": {
"baseline": "6.1.3",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/g-/gif-load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "935cba3a1773d4c9f46d5a676ad4170bfa4cc132",
"version-date": "2019-01-06",
"port-version": 0
}
]
}
Loading