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
3 changes: 3 additions & 0 deletions ports/stb/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: stb
Version: 1.0
Description: stb single-file public domain libraries for C/C++
16 changes: 16 additions & 0 deletions ports/stb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
URL "https://github.com/nothings/stb/archive/master.zip"
FILENAME "stb.zip"
MD5 23bbf81dcfa7871b785e1c45d2ad24f5
)
vcpkg_extract_source_archive(${ARCHIVE})

# Put the licence file where vcpkg expects it
file(RENAME ${CURRENT_BUILDTREES_DIR}/src/stb-master ${CURRENT_BUILDTREES_DIR}/src/stb)
file(COPY ${CURRENT_BUILDTREES_DIR}/src/stb/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright.)

# Copy the stb header files
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/stb/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.h")
vcpkg_copy_pdbs()