Skip to content

Commit

Permalink
+macrotest-cmake port
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-malburg committed Oct 30, 2024
1 parent fac68d9 commit 00fa034
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pipelines/build-package-preconfigured.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ parameters:
- libpng
- libzip-static
- libzip-dynamic
- macrotest-cmake
- macrotest-meson
- minizip
- openssl-static
Expand Down
6 changes: 6 additions & 0 deletions custom-ports/macrotest-cmake/README.md
Original file line number Diff line number Diff line change
@@ -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
```
24 changes: 24 additions & 0 deletions custom-ports/macrotest-cmake/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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
)
16 changes: 16 additions & 0 deletions custom-ports/macrotest-cmake/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
27 changes: 27 additions & 0 deletions preconfigured-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 00fa034

Please sign in to comment.