diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-crashpad | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-crashpad')
4 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/portfile.cmake new file mode 100644 index 0000000..bc78596 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/portfile.cmake @@ -0,0 +1,4 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project") +vcpkg_cmake_build() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/CMakeLists.txt new file mode 100644 index 0000000..b24d994 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.29) +project(crashpad-test CXX) + +set(CMAKE_CXX_STANDARD 11) + +add_executable(main main.cpp) + +find_package(crashpad CONFIG REQUIRED) +target_link_libraries(main PRIVATE crashpad::crashpad) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/main.cpp new file mode 100644 index 0000000..f450f9e --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/project/main.cpp @@ -0,0 +1,7 @@ +#include "client/crashpad_client.h" + +int main() +{ + auto *client = new crashpad::CrashpadClient(); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/vcpkg.json new file mode 100644 index 0000000..1903999 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-crashpad/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "vcpkg-ci-crashpad", + "version-string": "ci", + "description": "Validates crashpad", + "dependencies": [ + "crashpad", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |