[minitrace] Update minitrace to the latest version (#31069)

* [minitrace] Update minitrace to the latest version

This version includes two important changes:
1. It can be built and installed with CMake, which removes the need for a custom CMakeLists.txt
2. It can be built as a shared library as well as a static library

* [minitrace] Update to latest version that uses the correct installation directories

* [minitrace] Update versions file
This commit is contained in:
JuliusBrueggemann 2023-04-25 21:52:41 +02:00 committed by GitHub
parent 5787cfa699
commit b669595870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 42 deletions

View File

@ -1,32 +0,0 @@
cmake_minimum_required(VERSION 3.8)
project(minitrace C)
set(minitrace_HEADERS minitrace.h)
set(minitrace_SOURCES minitrace.c)
add_library(minitrace ${minitrace_SOURCES})
# Install headers
install(FILES ${minitrace_HEADERS} DESTINATION include/minitrace)
# Install minitrace
install(
TARGETS minitrace EXPORT minitraceConfig
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
# Export config file for minitrace
export(
TARGETS minitrace
NAMESPACE minitrace::
FILE "${CMAKE_CURRENT_BINARY_DIR}/minitrace-config.cmake"
)
# Install config file
install(
EXPORT minitraceConfig
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/minitrace"
NAMESPACE minitrace::
)

View File

@ -1,15 +1,11 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO hrydgard/minitrace REPO hrydgard/minitrace
REF a48215c409dd848fa0a76c5eb4dfaba4ca3bca39 REF a45ca4f58c8af2fc4d4d6042e68aa68bfea422c9
SHA512 591fa52132b6bbe8e7e121526a43d07056deff8fe026227c1a4c26bebf95536e5d68750fa8551d23afebf048fe8b8503017b9a93650e18a992cf2e5678d46135 SHA512 5ea6fb58a1f2397444e58e449fd32b4b45f5a15afe8f8694115a0025f5444cf493ba8228a58f0772ca1dc149fd1633fc897b0a264b8927cfd6cc15eefa40c336
HEAD_REF master HEAD_REF master
) )
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
) )

View File

@ -1,7 +1,6 @@
{ {
"name": "minitrace", "name": "minitrace",
"version-string": "2019.02.06", "version-date": "2023-04-23",
"port-version": 2,
"description": "Simple C/C++ library for producing JSON traces suitable for Chrome's built-in trace viewer.", "description": "Simple C/C++ library for producing JSON traces suitable for Chrome's built-in trace viewer.",
"dependencies": [ "dependencies": [
{ {

View File

@ -5185,8 +5185,8 @@
"port-version": 0 "port-version": 0
}, },
"minitrace": { "minitrace": {
"baseline": "2019.02.06", "baseline": "2023-04-23",
"port-version": 2 "port-version": 0
}, },
"miniupnpc": { "miniupnpc": {
"baseline": "2.1", "baseline": "2.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "e6bb405d13f5270e92c492306f317cb01dc4ab30",
"version-date": "2023-04-23",
"port-version": 0
},
{ {
"git-tree": "a108afe478661d93adbf6ca758501a543d89f2b1", "git-tree": "a108afe478661d93adbf6ca758501a543d89f2b1",
"version-string": "2019.02.06", "version-string": "2019.02.06",