From 3cca353a8a54629e98dfaa99740757d3a5568c7b Mon Sep 17 00:00:00 2001 From: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> Date: Tue, 14 Jun 2022 18:50:00 +0200 Subject: [PATCH] [mmloader] Fix `supports` (#25232) * [mmloader] Fix supports * Fix version db * Fix version * version * [mmloader] Remove from CI baseline * unsupported on UWP * version * Revert version db --- ports/mmloader/portfile.cmake | 17 +++++------------ ports/mmloader/vcpkg.json | 13 ++++++++++--- scripts/ci.baseline.txt | 7 ------- versions/baseline.json | 4 ++-- versions/m-/mmloader.json | 5 +++++ 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/ports/mmloader/portfile.cmake b/ports/mmloader/portfile.cmake index 72d6534846..1250881fac 100644 --- a/ports/mmloader/portfile.cmake +++ b/ports/mmloader/portfile.cmake @@ -1,4 +1,5 @@ -# source +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO tishion/mmLoader @@ -7,27 +8,19 @@ vcpkg_from_github( HEAD_REF master ) -# feature vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES shellcode BUILD_SHELLCODE_GEN ) -# config -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} ) -# pre-clean -file(REMOVE_RECURSE "${SOURCE_PATH}/output") +vcpkg_cmake_install(DISABLE_PARALLEL) -# build and install -vcpkg_install_cmake(DISABLE_PARALLEL) - -# remove the debug/include directory file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -# collect license files file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/mmloader/vcpkg.json b/ports/mmloader/vcpkg.json index 30d49748ff..e436ab1118 100644 --- a/ports/mmloader/vcpkg.json +++ b/ports/mmloader/vcpkg.json @@ -1,10 +1,17 @@ { "name": "mmloader", - "version-date": "2021-12-13", - "port-version": 1, + "version": "1.0.1", + "port-version": 2, "description": "A library for loading dll module bypassing windows PE loader from memory (x86/x64)", "homepage": "http://tishion.github.io/mmLoader/", - "supports": "(x86 | x64) & windows & static", + "license": "MIT", + "supports": "(x86 | x64) & windows & !uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ], "features": { "shellcode": { "description": "Generate mmLoader shell code headers" diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 32ec72ef8a..0208f31203 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -656,13 +656,6 @@ microsoft-signalr:x64-windows-static-md=skip microsoft-signalr:x86-windows=skip # https://github.com/mlpack/mlpack/pull/2945 mlpack:x64-uwp=fail -mmloader:arm64-windows=fail -mmloader:arm-uwp=fail -mmloader:x64-linux=fail -mmloader:x64-osx=fail -mmloader:x64-uwp=fail -mmloader:x64-windows=fail -mmloader:x86-windows=fail # mmx installs many problematic headers, such as `json.h` and `sched.h` mmx:x64-windows=skip mmx:x64-windows-static=skip diff --git a/versions/baseline.json b/versions/baseline.json index 38856410a1..d530730700 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4601,8 +4601,8 @@ "port-version": 5 }, "mmloader": { - "baseline": "2021-12-13", - "port-version": 1 + "baseline": "1.0.1", + "port-version": 2 }, "mmx": { "baseline": "2019-09-29", diff --git a/versions/m-/mmloader.json b/versions/m-/mmloader.json index a381834b38..3257087c78 100644 --- a/versions/m-/mmloader.json +++ b/versions/m-/mmloader.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "4b102ccdbd92919d2f3f62fff55b2a51839199ad", + "version": "1.0.1", + "port-version": 2 + }, { "git-tree": "104d16ae01f6ae753fde8406f75a01b9353aa1f2", "version-date": "2021-12-13",