From e3234f169ff663b5ee16b4550a628bf2f5b6e93e Mon Sep 17 00:00:00 2001 From: Mike Malburg Date: Wed, 30 Oct 2024 17:06:02 -0400 Subject: [PATCH] +macrotest-cmake port --- .pipelines/build-package-preconfigured.yml | 1 + custom-ports/macrotest-cmake/README.md | 6 +++++ custom-ports/macrotest-cmake/portfile.cmake | 24 ++++++++++++++++++ custom-ports/macrotest-cmake/vcpkg.json | 16 ++++++++++++ preconfigured-packages.json | 27 +++++++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 custom-ports/macrotest-cmake/README.md create mode 100644 custom-ports/macrotest-cmake/portfile.cmake create mode 100644 custom-ports/macrotest-cmake/vcpkg.json diff --git a/.pipelines/build-package-preconfigured.yml b/.pipelines/build-package-preconfigured.yml index 4b682ea2..066a002b 100644 --- a/.pipelines/build-package-preconfigured.yml +++ b/.pipelines/build-package-preconfigured.yml @@ -19,6 +19,7 @@ parameters: - libpng - libzip-static - libzip-dynamic + - macrotest-cmake - macrotest-meson - minizip - openssl-static diff --git a/custom-ports/macrotest-cmake/README.md b/custom-ports/macrotest-cmake/README.md new file mode 100644 index 00000000..c829d5d6 --- /dev/null +++ b/custom-ports/macrotest-cmake/README.md @@ -0,0 +1,6 @@ +# macrotest-cmake +This is not signed for mac on the build server. Because of this, you will have to run this before you are able to execute it, if it was built on the build server: + +```bash +sudo xattr -rd com.apple.quarantine macrotest-cmake +``` \ No newline at end of file diff --git a/custom-ports/macrotest-cmake/portfile.cmake b/custom-ports/macrotest-cmake/portfile.cmake new file mode 100644 index 00000000..c58106cb --- /dev/null +++ b/custom-ports/macrotest-cmake/portfile.cmake @@ -0,0 +1,24 @@ +# macrotest-cmake +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mike-malburg/macrotest-cmake + REF main + SHA512 40baa81ab881794b4f94c894c985fb03c3a6478043b9ded4de840ce0f9121ae45e6f9bd18b533e205d86f4ff8d4ddaf1d0e5e27c6cb4aaea5e4cf69c9829173e + HEAD_REF main +) + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +vcpkg_configure_cmake(SOURCE_PATH "${SOURCE_PATH}") +vcpkg_install_cmake() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +# Move main exe to tools dir +vcpkg_copy_tools( + TOOL_NAMES macrotest-cmake + SEARCH_DIR ${CURRENT_PACKAGES_DIR}/bin + DESTINATION ${CURRENT_PACKAGES_DIR}/tools + AUTO_CLEAN +) diff --git a/custom-ports/macrotest-cmake/vcpkg.json b/custom-ports/macrotest-cmake/vcpkg.json new file mode 100644 index 00000000..8c058020 --- /dev/null +++ b/custom-ports/macrotest-cmake/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "macrotest-cmake", + "version": "1.0.0", + "port-version": 1, + "description": "A test program, built with cmake, which prints off OS version macro data for debugging purposes.", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/preconfigured-packages.json b/preconfigured-packages.json index cca96333..5e72ecec 100644 --- a/preconfigured-packages.json +++ b/preconfigured-packages.json @@ -299,6 +299,33 @@ } } }, + { + "name": "macrotest-cmake", + "mac": { + "package": "macrotest-cmake", + "linkType": "dynamic", + "buildType": "release", + "publish": { + "include": false, + "lib": false, + "bin": false, + "share": true, + "tools": true + } + }, + "win": { + "package": "macrotest-cmake", + "linkType": "dynamic", + "buildType": "release", + "publish": { + "include": false, + "lib": false, + "bin": false, + "share": true, + "tools": true + } + } + }, { "name": "macrotest-meson", "mac": {