[modp-base64] Add missing header files (#29062)

* [modp-base64] Add missing header files

* update vcpkg.json

* update version

* add license

* update version

* update CMakeLists.txt

* update version

* remove blank line

* update version
This commit is contained in:
JonLiu1993 2023-01-21 14:13:43 +08:00 committed by GitHub
parent b9152d18a0
commit 5f3345eb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 11 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8)
project(libmodpbase64 C)
if(MSVC)
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
add_compile_options(/wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
endif()
configure_file(config.h.cmake config.h @ONLY)
@ -20,7 +20,11 @@ install(
if(NOT DISABLE_INSTALL_HEADERS)
install(
FILES ${SOURCE_PATH}/src/modp_b64.h
FILES
"${SOURCE_PATH}/src/extern_c_begin.h"
"${SOURCE_PATH}/src/extern_c_end.h"
"${SOURCE_PATH}/src/modp_b64.h"
"${SOURCE_PATH}/src/modp_stdint.h"
DESTINATION include
)
endif()

View File

@ -6,14 +6,13 @@ vcpkg_from_github(
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
OPTIONS -DSOURCE_PATH=${SOURCE_PATH}
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
# Handle copyright
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,6 +1,14 @@
{
"name": "modp-base64",
"version-string": "2020-09-26",
"port-version": 1,
"description": "High performance base64 encoder/decoder"
"version-date": "2020-09-26",
"port-version": 2,
"description": "High performance base64 encoder/decoder",
"homepage": "https://github.com/client9/stringencoders",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -5026,7 +5026,7 @@
},
"modp-base64": {
"baseline": "2020-09-26",
"port-version": 1
"port-version": 2
},
"mongo-c-driver": {
"baseline": "1.22.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "85f2a557b0fdca31efb6e9e6c769309d583ea2a3",
"version-date": "2020-09-26",
"port-version": 2
},
{
"git-tree": "8e39629dc5108d0e7dac7c91bea6e7fbdeaeee14",
"version-string": "2020-09-26",