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 Nov 4, 2024
1 parent bf0f1dd commit e3234f1
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 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
)
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 e3234f1

Please sign in to comment.