[abcmake] Add new port (#49876)

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Andrei Gramakov 2026-02-11 19:30:15 +01:00 committed by GitHub
parent f4155cdf81
commit b716eeeed9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,18 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO an-dr/abcmake
REF "v6.4.0"
SHA512 85724b25e158f41f0aa0e5f01ea0530a46f6b4397606b1af115c8aec1c29d317aaaf40a6161795687d713b6f00f66b13a1ab3982f351a139dc79a7d4ac42b7da
)
set(VCPKG_BUILD_TYPE release) # CMake support file only port
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/abcmake/usage Normal file
View File

@ -0,0 +1,4 @@
abcmake provides CMake configs:
find_package(abcmake CONFIG REQUIRED)
add_main_component(${PROJECT_NAME})

13
ports/abcmake/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "abcmake",
"version": "6.4.0",
"description": "Simple, component-first CMake helper for small & medium C/C++ projects",
"homepage": "https://github.com/an-dr/abcmake",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -0,0 +1,3 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project")
vcpkg_cmake_build()

View File

@ -0,0 +1,6 @@
# from:
# https://github.com/an-dr/abcmake/tree/4a45dea784dd98473195132a29a2980ed29b3c75/examples/hello_with_find_package
cmake_minimum_required(VERSION 3.15)
project(HelloWorld)
find_package(abcmake CONFIG REQUIRED)
add_main_component(${PROJECT_NAME})

View File

@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello from abcmake using find_package()!" << std::endl;
return 0;
}

View File

@ -0,0 +1,12 @@
{
"name": "vcpkg-ci-abcmake",
"version": "1.0.0",
"description": "Test port for abcmake",
"dependencies": [
"abcmake",
{
"name": "vcpkg-cmake",
"host": true
}
]
}

9
versions/a-/abcmake.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ee7b2ca269c0bbca7802c6750bc3555d750506a7",
"version": "6.4.0",
"port-version": 0
}
]
}

View File

@ -8,6 +8,10 @@
"baseline": "25.1",
"port-version": 1
},
"abcmake": {
"baseline": "6.4.0",
"port-version": 0
},
"ableton-link": {
"baseline": "3.1.5",
"port-version": 0