Skip to content

Commit

Permalink
+hellomeson port
Browse files Browse the repository at this point in the history
A test meson port with a library and exe.  It also prints out os version macro info.
  • Loading branch information
mike-malburg committed Oct 30, 2024
1 parent 6299b1f commit 2494e91
Show file tree
Hide file tree
Showing 4 changed files with 67 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 @@ -13,6 +13,7 @@ parameters:
- ffmpeg
- ffmpeg-cloud
- hellocmake
- hellomeson
- hunspell
- hunspell-debug
- libpng
Expand Down
27 changes: 27 additions & 0 deletions custom-ports/hellomeson/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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
)
12 changes: 12 additions & 0 deletions custom-ports/hellomeson/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
27 changes: 27 additions & 0 deletions preconfigured-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
]
}

0 comments on commit 2494e91

Please sign in to comment.