diff --git a/ports/botan/embed-debug-info.patch b/ports/botan/embed-debug-info.patch new file mode 100644 index 0000000000..09a17202e0 --- /dev/null +++ b/ports/botan/embed-debug-info.patch @@ -0,0 +1,17 @@ +diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt +index 2306a4485..977e2e958 100644 +--- a/src/build-data/cc/msvc.txt ++++ b/src/build-data/cc/msvc.txt +@@ -17,10 +17,10 @@ optimization_flags "/O2 /Oi" + size_optimization_flags "/O1 /Os" + + # for debug info in the object file: +-#debug_info_flags "/Z7" ++debug_info_flags "/Z7" + + # for using a PDB file: +-debug_info_flags "/Zi /FS" ++#debug_info_flags "/Zi /FS" + + preproc_flags "/nologo /EP" + diff --git a/ports/botan/portfile.cmake b/ports/botan/portfile.cmake index 3adb37cc30..c8613741ff 100644 --- a/ports/botan/portfile.cmake +++ b/ports/botan/portfile.cmake @@ -6,6 +6,7 @@ vcpkg_from_github( HEAD_REF master PATCHES fix-generate-build-path.patch + embed-debug-info.patch ) if(CMAKE_HOST_WIN32) @@ -80,11 +81,16 @@ function(BOTAN_BUILD BOTAN_BUILD_TYPE) "--distribution-info=vcpkg ${TARGET_TRIPLET}" --prefix=${BOTAN_FLAG_PREFIX} --with-pkg-config - --link-method=copy) + --link-method=copy + --with-debug-info) if(CMAKE_HOST_WIN32) list(APPEND configure_arguments ${BOTAN_MSVC_RUNTIME}${BOTAN_MSVC_RUNTIME_SUFFIX}) endif() + if(VCPKG_CXX_FLAGS) + list(APPEND configure_arguments --extra-cxxflags ${VCPKG_CXX_FLAGS}) + endif() + if("-DBOTAN_AMALGAMATION=ON" IN_LIST FEATURE_OPTIONS) list(APPEND configure_arguments --amalgamation) endif() diff --git a/ports/botan/vcpkg.json b/ports/botan/vcpkg.json index abed4f53d4..1f68d73b8c 100644 --- a/ports/botan/vcpkg.json +++ b/ports/botan/vcpkg.json @@ -1,7 +1,7 @@ { "name": "botan", "version": "2.18.1", - "port-version": 7, + "port-version": 8, "description": "A cryptography library written in C++11", "homepage": "https://botan.randombit.net", "license": "BSD-2-Clause", diff --git a/versions/b-/botan.json b/versions/b-/botan.json index e8f11e406f..2e501dd3b9 100644 --- a/versions/b-/botan.json +++ b/versions/b-/botan.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "267c31f3759881d233529d28ec78e2a0c8d1e9b4", + "version": "2.18.1", + "port-version": 8 + }, { "git-tree": "dfbd885e94b11d3b8074d96c92e810a0f1a7be7a", "version": "2.18.1", diff --git a/versions/baseline.json b/versions/baseline.json index 4d946a1033..c1e1d8c2c9 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1126,7 +1126,7 @@ }, "botan": { "baseline": "2.18.1", - "port-version": 7 + "port-version": 8 }, "box2d": { "baseline": "2.4.1",