Skip to content

Commit 6299b1f

Browse files
committed
+hellocmake port
A test cmake port with a library and exe. It also prints out os version macro info.
1 parent b7c3ef6 commit 6299b1f

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.pipelines/build-package-preconfigured.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ parameters:
1212
values:
1313
- ffmpeg
1414
- ffmpeg-cloud
15+
- hellocmake
1516
- hunspell
1617
- hunspell-debug
1718
- libpng
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# hellocmake
2+
vcpkg_from_github(
3+
OUT_SOURCE_PATH SOURCE_PATH
4+
REPO mike-malburg/hellocmake
5+
REF master
6+
SHA512 abdf17c67b59daf64ba971294d67bf53d3380be01618eb42ed06fe1da206da7b9d4ce4662bf00abafc4c7098750f515c761ba1bbebad66c024caefe7c6b78041
7+
HEAD_REF master
8+
)
9+
10+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
11+
set(VCPKG_POLICY_SKIP_COPYRIGHT_CHECK enabled)
12+
13+
vcpkg_cmake_configure(
14+
SOURCE_PATH ${SOURCE_PATH}
15+
OPTIONS
16+
--no-warn-unused-cli
17+
)
18+
vcpkg_install_cmake()
19+
vcpkg_copy_pdbs()
20+
vcpkg_fixup_pkgconfig()
21+
22+
# Move hellocmake exe to tools dir
23+
vcpkg_copy_tools(
24+
TOOL_NAMES hellocmaketest
25+
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/bin
26+
DESTINATION ${CURRENT_PACKAGES_DIR}/tools
27+
AUTO_CLEAN
28+
)

custom-ports/hellocmake/vcpkg.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "hellocmake",
3+
"version": "1.0.0",
4+
"port-version": 1,
5+
"description": "A test program built with cmake, 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",
6+
"dependencies": [
7+
{
8+
"name": "vcpkg-cmake",
9+
"host": true
10+
},
11+
{
12+
"name": "vcpkg-cmake-config",
13+
"host": true
14+
}
15+
]
16+
}

preconfigured-packages.json

+27
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,33 @@
244244
"linkType": "dynamic",
245245
"buildType": "release"
246246
}
247+
},
248+
{
249+
"name": "hellocmake",
250+
"mac": {
251+
"package": "hellocmake",
252+
"linkType": "dynamic",
253+
"buildType": "release",
254+
"publish": {
255+
"include": false,
256+
"lib": true,
257+
"bin": true,
258+
"share": true,
259+
"tools": true
260+
}
261+
},
262+
"win": {
263+
"package": "hellocmake",
264+
"linkType": "dynamic",
265+
"buildType": "release",
266+
"publish": {
267+
"include": false,
268+
"lib": true,
269+
"bin": true,
270+
"share": true,
271+
"tools": true
272+
}
273+
}
247274
}
248275
]
249276
}

0 commit comments

Comments
 (0)