Skip to content

Commit 41566a1

Browse files
committed
chore(port): [andrew-hardin-cmake-git-version-tracking] new port
Signed-off-by: msclock <[email protected]>
1 parent 0cc6b7c commit 41566a1

File tree

5 files changed

+54
-0
lines changed

5 files changed

+54
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH
3+
SOURCE_PATH
4+
REPO
5+
andrew-hardin/cmake-git-version-tracking
6+
REF
7+
${VERSION}
8+
SHA512
9+
24a12c37c779f8499e4a65e7234424fed5aa1c6290ec955e9f44c3be4030d0768246e4f75e4996152bc7c135e6b73347564dce70b4032c8443ed992369f2f948
10+
HEAD_REF
11+
master)
12+
13+
vcpkg_cmake_module(
14+
PATH_LIST ${SOURCE_PATH}/git_watcher.cmake ${SOURCE_PATH}/git.h
15+
${SOURCE_PATH}/git.c.in ${SOURCE_PATH}/CMakeLists.txt)
16+
17+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage
18+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
19+
20+
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
21+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The package andrew-hardin-cmake-git-version-tracking provides modules:
2+
3+
find_package(andrew-hardin-cmake-git-version-tracking REQUIRED)
4+
# More details can refer to <https://github.com/andrew-hardin/cmake-git-version-tracking>.
5+
# Defaults to the directory with the top level CMakeLists.txt.
6+
set(GIT_WORKING_DIR git/working/path)
7+
add_subdirectory(${andrew-hardin-cmake-git-version-tracking_MODULE_PATH})
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "andrew-hardin-cmake-git-version-tracking",
3+
"version-string": "9b5fc5088b4089ff2adc20d607976b9923e3d737",
4+
"description": "Embed Git metadata in a C/C++ compatible static library using CMake (e.g. commit ID, author, date, and message).",
5+
"homepage": "https://github.com/andrew-hardin/cmake-git-version-tracking/tree/master",
6+
"license": "MIT",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake-module",
10+
"host": true
11+
}
12+
]
13+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "faf8751a29a93575ef647256109dba6b29c91a56",
5+
"version-string": "9b5fc5088b4089ff2adc20d607976b9923e3d737",
6+
"port-version": 0
7+
}
8+
]
9+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"baseline": "0.32.1",
55
"port-version": 0
66
},
7+
"andrew-hardin-cmake-git-version-tracking": {
8+
"baseline": "9b5fc5088b4089ff2adc20d607976b9923e3d737",
9+
"port-version": 0
10+
},
711
"cmake-conan": {
812
"baseline": "0.18.1",
913
"port-version": 0

0 commit comments

Comments
 (0)