aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/shiftmedia-libgpg-error
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/shiftmedia-libgpg-error
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/shiftmedia-libgpg-error')
-rw-r--r--vcpkg/ports/shiftmedia-libgpg-error/TargetPlatformMinVersion.patch12
-rw-r--r--vcpkg/ports/shiftmedia-libgpg-error/outdir.patch152
-rw-r--r--vcpkg/ports/shiftmedia-libgpg-error/portfile.cmake69
-rw-r--r--vcpkg/ports/shiftmedia-libgpg-error/runtime.patch244
-rw-r--r--vcpkg/ports/shiftmedia-libgpg-error/vcpkg.json9
5 files changed, 486 insertions, 0 deletions
diff --git a/vcpkg/ports/shiftmedia-libgpg-error/TargetPlatformMinVersion.patch b/vcpkg/ports/shiftmedia-libgpg-error/TargetPlatformMinVersion.patch
new file mode 100644
index 0000000..fe8288f
--- /dev/null
+++ b/vcpkg/ports/shiftmedia-libgpg-error/TargetPlatformMinVersion.patch
@@ -0,0 +1,12 @@
+diff --git a/SMP/libgpg-error_winrt.vcxproj b/SMP/llibgpg-error_winrt.vcxproj
+index e1acf679..f9c302be 100644
+--- a/SMP/libgpg-error_winrt.vcxproj
++++ b/SMP/libgpg-error_winrt.vcxproj
+@@ -3,6 +3,7 @@
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{AA4A762D-A8D7-4F68-9B79-FBE63C6BE105}</ProjectGuid>
+ <RootNamespace>gpg-error</RootNamespace>
++ <TargetPlatformMinVersion>10.0.17200.0</TargetPlatformMinVersion>
+ </PropertyGroup>
+ <ImportGroup Label="PropertySheets">
+ <Import Project="smp_winrt.props" />
diff --git a/vcpkg/ports/shiftmedia-libgpg-error/outdir.patch b/vcpkg/ports/shiftmedia-libgpg-error/outdir.patch
new file mode 100644
index 0000000..db87bfd
--- /dev/null
+++ b/vcpkg/ports/shiftmedia-libgpg-error/outdir.patch
@@ -0,0 +1,152 @@
+diff --git a/SMP/smp.props b/SMP/smp.props
+index e2ed214..fc70bd8 100644
+--- a/SMP/smp.props
++++ b/SMP/smp.props
+@@ -87,7 +87,7 @@
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <TargetName>lib$(RootNamespace)d</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -95,7 +95,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <TargetName>lib$(RootNamespace)d</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -103,7 +103,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLL|Win32'">
+ <TargetName>$(RootNamespace)d</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -111,7 +111,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLL|x64'">
+ <TargetName>$(RootNamespace)d</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -119,7 +119,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <TargetName>lib$(RootNamespace)</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -127,7 +127,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <TargetName>lib$(RootNamespace)</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -135,7 +135,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">
+ <TargetName>$(RootNamespace)</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -143,7 +143,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">
+ <TargetName>$(RootNamespace)</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+diff --git a/SMP/smp_winrt.props b/SMP/smp_winrt.props
+index 9b453a5..cb5f090 100644
+--- a/SMP/smp_winrt.props
++++ b/SMP/smp_winrt.props
+@@ -98,7 +98,7 @@
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|Win32'">
+ <TargetName>lib$(RootNamespace)d_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -106,7 +106,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|x64'">
+ <TargetName>lib$(RootNamespace)d_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -114,7 +114,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|Win32'">
+ <TargetName>$(RootNamespace)d_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -122,7 +122,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|x64'">
+ <TargetName>$(RootNamespace)d_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -130,7 +130,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|Win32'">
+ <TargetName>lib$(RootNamespace)_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -138,7 +138,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|x64'">
+ <TargetName>lib$(RootNamespace)_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -146,7 +146,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|Win32'">
+ <TargetName>$(RootNamespace)_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
+@@ -154,7 +154,7 @@
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|x64'">
+ <TargetName>$(RootNamespace)_winrt</TargetName>
+- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
++ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+ <CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
diff --git a/vcpkg/ports/shiftmedia-libgpg-error/portfile.cmake b/vcpkg/ports/shiftmedia-libgpg-error/portfile.cmake
new file mode 100644
index 0000000..383d48b
--- /dev/null
+++ b/vcpkg/ports/shiftmedia-libgpg-error/portfile.cmake
@@ -0,0 +1,69 @@
+vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ShiftMediaProject/libgpg-error
+ REF "libgpg-error-${VERSION}"
+ SHA512 779983bd0aac1f281bf357d0218e9626a5c72c3391513eef8a56148f08966f3cc75495e97f410ea7156d40be16977b5c64748c66626ae6d877e2a6c28dc822a2
+ HEAD_REF master
+ PATCHES
+ outdir.patch
+ runtime.patch
+ TargetPlatformMinVersion.patch
+)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ set(CONFIGURATION_RELEASE ReleaseDLL)
+ set(CONFIGURATION_DEBUG DebugDLL)
+else()
+ set(CONFIGURATION_RELEASE Release)
+ set(CONFIGURATION_DEBUG Debug)
+endif()
+
+if(VCPKG_TARGET_IS_UWP)
+ string(APPEND CONFIGURATION_RELEASE WinRT)
+ string(APPEND CONFIGURATION_DEBUG WinRT)
+endif()
+
+if(VCPKG_TARGET_IS_UWP)
+ set(_gpg-errorproject "${SOURCE_PATH}/SMP/libgpg-error_winrt.vcxproj")
+else()
+ set(_gpg-errorproject "${SOURCE_PATH}/SMP/libgpg-error.vcxproj")
+endif()
+
+if(VCPKG_CRT_LINKAGE STREQUAL "static")
+ set(RuntimeLibraryExt "")
+else()
+ set(RuntimeLibraryExt "DLL")
+endif()
+
+vcpkg_install_msbuild(
+ USE_VCPKG_INTEGRATION
+ SOURCE_PATH "${SOURCE_PATH}"
+ PROJECT_SUBPATH SMP/libgpg-error.sln
+ PLATFORM ${TRIPLET_SYSTEM_ARCH}
+ LICENSE_SUBPATH COPYING.LIB
+ RELEASE_CONFIGURATION ${CONFIGURATION_RELEASE}
+ DEBUG_CONFIGURATION ${CONFIGURATION_DEBUG}
+ SKIP_CLEAN
+ OPTIONS_DEBUG "/p:RuntimeLibrary=MultiThreadedDebug${RuntimeLibraryExt}"
+ OPTIONS_RELEASE "/p:RuntimeLibrary=MultiThreaded${RuntimeLibraryExt}"
+)
+
+get_filename_component(SOURCE_PATH_SUFFIX "${SOURCE_PATH}" NAME)
+file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${SOURCE_PATH_SUFFIX}/msvc/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
+
+set(exec_prefix "\${prefix}")
+set(libdir "\${prefix}/lib")
+set(includedir "\${prefix}/include")
+set(GPG_ERROR_CONFIG_LIBS "-L\${libdir} -lgpg-error")
+configure_file("${SOURCE_PATH}/src/gpg-error.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gpg-error.pc" @ONLY)
+
+set(exec_prefix "\${prefix}")
+set(libdir "\${prefix}/lib")
+set(includedir "\${prefix}/../include")
+set(GPG_ERROR_CONFIG_LIBS "-L\${libdir} -lgpg-errord")
+configure_file("${SOURCE_PATH}/src/gpg-error.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gpg-error.pc" @ONLY)
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/COPYING.LIB" "${CURRENT_PACKAGES_DIR}/debug/lib/COPYING.LIB")
diff --git a/vcpkg/ports/shiftmedia-libgpg-error/runtime.patch b/vcpkg/ports/shiftmedia-libgpg-error/runtime.patch
new file mode 100644
index 0000000..3339850
--- /dev/null
+++ b/vcpkg/ports/shiftmedia-libgpg-error/runtime.patch
@@ -0,0 +1,244 @@
+diff --git a/SMP/smp.props b/SMP/smp.props
+index fc70bd8..d515523 100644
+--- a/SMP/smp.props
++++ b/SMP/smp.props
+@@ -86,7 +86,7 @@
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+- <TargetName>lib$(RootNamespace)d</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -94,7 +94,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+- <TargetName>lib$(RootNamespace)d</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -118,7 +118,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+- <TargetName>lib$(RootNamespace)</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -126,7 +126,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+- <TargetName>lib$(RootNamespace)</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -159,6 +159,7 @@
+ <ProgramDataBaseFileName>$(OutDir)\lib\x86\$(TargetName).pdb</ProgramDataBaseFileName>
+ <MinimalRebuild>false</MinimalRebuild>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -177,6 +178,7 @@
+ <ProgramDataBaseFileName>$(OutDir)\lib\x64\$(TargetName).pdb</ProgramDataBaseFileName>
+ <MinimalRebuild>false</MinimalRebuild>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -196,6 +198,7 @@
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <MinimalRebuild>false</MinimalRebuild>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <OutputFile>$(OutDir)\bin\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -219,6 +222,7 @@
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <MinimalRebuild>false</MinimalRebuild>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <OutputFile>$(OutDir)\bin\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -248,6 +252,7 @@
+ <InterproceduralOptimization>SingleFile</InterproceduralOptimization>
+ <ProgramDataBaseFileName>$(OutDir)\lib\x86\$(TargetName).pdb</ProgramDataBaseFileName>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -273,6 +278,7 @@
+ <InterproceduralOptimization>SingleFile</InterproceduralOptimization>
+ <ProgramDataBaseFileName>$(OutDir)\lib\x64\$(TargetName).pdb</ProgramDataBaseFileName>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -297,6 +303,7 @@
+ <AdditionalIncludeDirectories>$(OutDir)\include;$(ProjectDir)\..\..\prebuilt\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+@@ -328,6 +335,7 @@
+ <AdditionalIncludeDirectories>$(OutDir)\include;$(ProjectDir)\..\..\prebuilt\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+diff --git a/SMP/smp_winrt.props b/SMP/smp_winrt.props
+index cb5f090..f7d8e23 100644
+--- a/SMP/smp_winrt.props
++++ b/SMP/smp_winrt.props
+@@ -97,7 +97,7 @@
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|Win32'">
+- <TargetName>lib$(RootNamespace)d_winrt</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -105,7 +105,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|x64'">
+- <TargetName>lib$(RootNamespace)d_winrt</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -113,7 +113,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|Win32'">
+- <TargetName>$(RootNamespace)d_winrt</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -121,7 +121,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|x64'">
+- <TargetName>$(RootNamespace)d_winrt</TargetName>
++ <TargetName>$(RootNamespace)d</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -129,7 +129,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|Win32'">
+- <TargetName>lib$(RootNamespace)_winrt</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -137,7 +137,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|x64'">
+- <TargetName>lib$(RootNamespace)_winrt</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -145,7 +145,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|Win32'">
+- <TargetName>$(RootNamespace)_winrt</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -153,7 +153,7 @@
+ <MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|x64'">
+- <TargetName>$(RootNamespace)_winrt</TargetName>
++ <TargetName>$(RootNamespace)</TargetName>
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
+ <IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
+ <GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
+@@ -172,6 +172,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -192,6 +193,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -213,6 +215,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <OutputFile>$(OutDir)\bin\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -240,6 +243,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <OutputFile>$(OutDir)\bin\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -273,6 +277,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
+@@ -301,6 +306,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Lib>
+ <OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
+@@ -327,6 +333,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+@@ -362,6 +369,7 @@
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
++ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
diff --git a/vcpkg/ports/shiftmedia-libgpg-error/vcpkg.json b/vcpkg/ports/shiftmedia-libgpg-error/vcpkg.json
new file mode 100644
index 0000000..c585c0c
--- /dev/null
+++ b/vcpkg/ports/shiftmedia-libgpg-error/vcpkg.json
@@ -0,0 +1,9 @@
+{
+ "name": "shiftmedia-libgpg-error",
+ "version": "1.45",
+ "port-version": 1,
+ "description": "An unofficial libgpg-error with added native Visual Studio project system",
+ "homepage": "https://github.com/ShiftMediaProject/libgpg-error",
+ "license": "LGPL-2.1-only",
+ "supports": "windows & !mingw & !(arm | arm64)"
+}