Skip to content

Commit

Permalink
Add port: testmacbuildvars
Browse files Browse the repository at this point in the history
This is a port that I'll use to test to see what Mac build vars existed at build time.
  • Loading branch information
mike-malburg committed Oct 28, 2024
1 parent 7e9629a commit 2a8d660
Show file tree
Hide file tree
Showing 4 changed files with 72 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 @@ -23,6 +23,7 @@ parameters:
- pango
- sqlite3
- sqlite-modern-cpp
- testmacbuildvars
- tinyxml
- whispercpp
- whispercpp-basic
Expand Down
28 changes: 28 additions & 0 deletions custom-ports/testmacbuildvars/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# testmacbuildvars
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mike-malburg/testmacbuildvars
REF master
SHA512 41c7ecb22198afff3f6fb77e3a17324555c4a35e51e2c609a1d61f8c4cc8084f17b7aef314a59ab39c555ab843d8ceba622079ff7c23d70a771026157d81a251
HEAD_REF master
)

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
set(VCPKG_POLICY_SKIP_COPYRIGHT_CHECK enabled)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
--no-warn-unused-cli
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

# Move testmacbuildvars exe to tools dir
vcpkg_copy_tools(
TOOL_NAMES testmacbuildvars
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/bin
DESTINATION ${CURRENT_PACKAGES_DIR}/tools
AUTO_CLEAN
)
16 changes: 16 additions & 0 deletions custom-ports/testmacbuildvars/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "testmacbuildvars",
"version": "1.0.0",
"port-version": 1,
"description": "A test program to see what MacOS version macros exist at build time.",
"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 @@ -244,6 +244,33 @@
"linkType": "dynamic",
"buildType": "release"
}
},
{
"name": "testmacbuildvars",
"mac": {
"package": "testmacbuildvars",
"linkType": "dynamic",
"buildType": "release",
"publish": {
"include": false,
"lib": false,
"bin": false,
"share": true,
"tools": true
}
},
"win": {
"package": "testmacbuildvars",
"linkType": "dynamic",
"buildType": "release",
"publish": {
"include": false,
"lib": false,
"bin": false,
"share": true,
"tools": true
}
}
}
]
}

0 comments on commit 2a8d660

Please sign in to comment.