diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/mxml/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/mxml/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/mxml/portfile.cmake | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/mxml/portfile.cmake b/vcpkg/ports/mxml/portfile.cmake new file mode 100644 index 0000000..814dfb5 --- /dev/null +++ b/vcpkg/ports/mxml/portfile.cmake @@ -0,0 +1,42 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO michaelrsweet/mxml
+ REF "v${VERSION}"
+ SHA512 11ef51b7e8abe8f5b1728ee072217605456e11e56bd0abc5375820c1a0e30ea1a6f0a306e65a40c1cdda3394486b51e2d67cc9081113dbc570b6d9d835f5890f
+
+ HEAD_REF master
+)
+
+if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
+ # Force Z7 debug information format for MSVC builds
+ vcpkg_replace_string("${SOURCE_PATH}/vcnet/mxml4.vcxproj"
+ "<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>"
+ "<DebugInformationFormat>OldStyle</DebugInformationFormat>"
+ )
+ vcpkg_replace_string("${SOURCE_PATH}/vcnet/mxml4.vcxproj"
+ "<DebugInformationFormat>EditAndContinue</DebugInformationFormat>"
+ "<DebugInformationFormat>OldStyle</DebugInformationFormat>"
+ )
+ vcpkg_replace_string("${SOURCE_PATH}/vcnet/mxml4.vcxproj"
+ "<MinimalRebuild>true</MinimalRebuild>"
+ "<MinimalRebuild>false</MinimalRebuild>"
+ )
+
+ vcpkg_msbuild_install(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PROJECT_SUBPATH "vcnet/mxml4.vcxproj"
+ TARGET Build
+ )
+ file(INSTALL "${SOURCE_PATH}/mxml.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+else()
+ vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ COPY_SOURCE
+ )
+ vcpkg_make_install()
+ vcpkg_fixup_pkgconfig()
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|