diff --git a/.pipelines/build-package-preconfigured.yml b/.pipelines/build-package-preconfigured.yml index 4b682ea..066a002 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 0000000..c829d5d --- /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 0000000..531c436 --- /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 e36fec79b82d1c5954149822e4f4aa96da16a33649c1bfb1e674feb8f2c169da99befca75b18c1e39b6b3311b21c3407c28b81798bc604c300b7d9805fb1bb48 + 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 0000000..8c05802 --- /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 cca9633..5e72ece 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": {