From 2a8d66019a43aa5fcb0c377b8dbb549f755dcb16 Mon Sep 17 00:00:00 2001 From: Mike Malburg Date: Mon, 28 Oct 2024 12:41:04 -0400 Subject: [PATCH] Add port: testmacbuildvars This is a port that I'll use to test to see what Mac build vars existed at build time. --- .pipelines/build-package-preconfigured.yml | 1 + custom-ports/testmacbuildvars/portfile.cmake | 28 ++++++++++++++++++++ custom-ports/testmacbuildvars/vcpkg.json | 16 +++++++++++ preconfigured-packages.json | 27 +++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 custom-ports/testmacbuildvars/portfile.cmake create mode 100644 custom-ports/testmacbuildvars/vcpkg.json diff --git a/.pipelines/build-package-preconfigured.yml b/.pipelines/build-package-preconfigured.yml index 7dc25959..b3a74fc2 100644 --- a/.pipelines/build-package-preconfigured.yml +++ b/.pipelines/build-package-preconfigured.yml @@ -23,6 +23,7 @@ parameters: - pango - sqlite3 - sqlite-modern-cpp + - testmacbuildvars - tinyxml - whispercpp - whispercpp-basic diff --git a/custom-ports/testmacbuildvars/portfile.cmake b/custom-ports/testmacbuildvars/portfile.cmake new file mode 100644 index 00000000..31b4a8f1 --- /dev/null +++ b/custom-ports/testmacbuildvars/portfile.cmake @@ -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 +) diff --git a/custom-ports/testmacbuildvars/vcpkg.json b/custom-ports/testmacbuildvars/vcpkg.json new file mode 100644 index 00000000..2a7daf23 --- /dev/null +++ b/custom-ports/testmacbuildvars/vcpkg.json @@ -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 + } + ] +} diff --git a/preconfigured-packages.json b/preconfigured-packages.json index 79d37ca4..b652d56b 100644 --- a/preconfigured-packages.json +++ b/preconfigured-packages.json @@ -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 + } + } } ] }