From 2494e91cb7037fc8393aecee1cbdbed293002cf4 Mon Sep 17 00:00:00 2001 From: Mike Malburg Date: Wed, 30 Oct 2024 14:12:30 -0400 Subject: [PATCH] +hellomeson port A test meson port with a library and exe. It also prints out os version macro info. --- .pipelines/build-package-preconfigured.yml | 1 + custom-ports/hellomeson/portfile.cmake | 27 ++++++++++++++++++++++ custom-ports/hellomeson/vcpkg.json | 12 ++++++++++ preconfigured-packages.json | 27 ++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 custom-ports/hellomeson/portfile.cmake create mode 100644 custom-ports/hellomeson/vcpkg.json diff --git a/.pipelines/build-package-preconfigured.yml b/.pipelines/build-package-preconfigured.yml index add17f5..69553ae 100644 --- a/.pipelines/build-package-preconfigured.yml +++ b/.pipelines/build-package-preconfigured.yml @@ -13,6 +13,7 @@ parameters: - ffmpeg - ffmpeg-cloud - hellocmake + - hellomeson - hunspell - hunspell-debug - libpng diff --git a/custom-ports/hellomeson/portfile.cmake b/custom-ports/hellomeson/portfile.cmake new file mode 100644 index 0000000..d7f57a0 --- /dev/null +++ b/custom-ports/hellomeson/portfile.cmake @@ -0,0 +1,27 @@ +# hellomeson +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mike-malburg/hellomeson + REF master + SHA512 122d2c69c426994a752da6b3817dbe8b4cca8407039434acfe95b05aa104140286a131a65d123a506d4f330b8d5abea44c408c789b945f9ae72ec24e36d6ad23 + HEAD_REF master +) + +set(VCPKG_POLICY_SKIP_COPYRIGHT_CHECK enabled) +set(VCPKG_POLICY_ALLOW_EXES_IN_BIN enabled) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_install_meson() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +# # Move hellomesontest exe to tools dir +vcpkg_copy_tools( + TOOL_NAMES hellomesontest + SEARCH_DIR ${CURRENT_PACKAGES_DIR}/bin + DESTINATION ${CURRENT_PACKAGES_DIR}/tools + AUTO_CLEAN +) diff --git a/custom-ports/hellomeson/vcpkg.json b/custom-ports/hellomeson/vcpkg.json new file mode 100644 index 0000000..e1e8981 --- /dev/null +++ b/custom-ports/hellomeson/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "hellomeson", + "version": "1.0.0", + "port-version": 1, + "description": "A test program built with meson, including a shared library and a exe which depends on that library. The exe prints off OS version macro data, as well, for debugging purposes", + "dependencies": [ + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/preconfigured-packages.json b/preconfigured-packages.json index aca5b3f..c21e8d0 100644 --- a/preconfigured-packages.json +++ b/preconfigured-packages.json @@ -271,6 +271,33 @@ "tools": true } } + }, + { + "name": "hellomeson", + "mac": { + "package": "hellomeson", + "linkType": "dynamic", + "buildType": "release", + "publish": { + "include": true, + "lib": true, + "bin": true, + "share": true, + "tools": true + } + }, + "win": { + "package": "hellomeson", + "linkType": "dynamic", + "buildType": "release", + "publish": { + "include": true, + "lib": true, + "bin": true, + "share": true, + "tools": true + } + } } ] }