From 8161f655436492669adc8eb6f269dc41392ffa70 Mon Sep 17 00:00:00 2001 From: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> Date: Tue, 28 Nov 2023 08:02:41 +0100 Subject: [PATCH] [flatbuffers] Only build tool in release mode (#35333) * [flatbuffers] Only build tools in release mode * version * Remove headers for PCH * version --- ports/flatbuffers/portfile.cmake | 4 +++- ports/flatbuffers/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/f-/flatbuffers.json | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ports/flatbuffers/portfile.cmake b/ports/flatbuffers/portfile.cmake index 4adaf46459..3be02cc504 100644 --- a/ports/flatbuffers/portfile.cmake +++ b/ports/flatbuffers/portfile.cmake @@ -25,6 +25,8 @@ vcpkg_cmake_configure( -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_BUILD_GRPCTEST=OFF ${options} + OPTIONS_DEBUG + -DFLATBUFFERS_BUILD_FLATC=OFF ) vcpkg_cmake_install() @@ -40,8 +42,8 @@ else() endif() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/flatbuffers/pch") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") -# Handle copyright vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/flatbuffers/vcpkg.json b/ports/flatbuffers/vcpkg.json index f52dbbb3c0..d4f55f4114 100644 --- a/ports/flatbuffers/vcpkg.json +++ b/ports/flatbuffers/vcpkg.json @@ -1,6 +1,7 @@ { "name": "flatbuffers", "version": "23.5.26", + "port-version": 1, "description": [ "Memory Efficient Serialization Library", "FlatBuffers is an efficient cross platform serialization library for games and other memory constrained apps. It allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility." diff --git a/versions/baseline.json b/versions/baseline.json index 2d1951122d..239bf5bd1b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2658,7 +2658,7 @@ }, "flatbuffers": { "baseline": "23.5.26", - "port-version": 0 + "port-version": 1 }, "flatbush": { "baseline": "1.2.0", diff --git a/versions/f-/flatbuffers.json b/versions/f-/flatbuffers.json index 9bf9340f37..d2e5996c11 100644 --- a/versions/f-/flatbuffers.json +++ b/versions/f-/flatbuffers.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "2f827d9a5f37614af7cdb44c15075dbaac88d740", + "version": "23.5.26", + "port-version": 1 + }, { "git-tree": "5146d5516c8570263780a1cdf73df98d70936e07", "version": "23.5.26",