aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-bullet3
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-bullet3
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-bullet3')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-bullet3/portfile.cmake19
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-bullet3/project/CMakeLists.txt24
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-bullet3/vcpkg.json45
3 files changed, 88 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/portfile.cmake
new file mode 100644
index 0000000..77b7277
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/portfile.cmake
@@ -0,0 +1,19 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO bulletphysics/bullet3
+ REF 3.25
+ SHA512 7086e5fcf69635801bb311261173cb8d173b712ca1bd78be03df48fad884674e85512861190e45a1a62d5627aaad65cde08c175c44a3be9afa410d3dfd5358d4
+ HEAD_REF master
+)
+
+vcpkg_find_acquire_program(PKGCONFIG)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+ OPTIONS
+ "-DSOURCE_PATH=${SOURCE_PATH}"
+ "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/project/CMakeLists.txt
new file mode 100644
index 0000000..3e89f35
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/project/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.10)
+project(bullet3-test CXX)
+
+set(CMAKE_CXX_STANDARD 11)
+
+block()
+ find_package(Bullet CONFIG REQUIRED)
+
+ add_executable(main "${SOURCE_PATH}/examples/HelloWorld/HelloWorld.cpp")
+ target_link_libraries(main PRIVATE ${BULLET_LIBRARIES})
+endblock()
+
+if(WIN32)
+ set(unused "${PKG_CONFIG_EXECUTABLE}")
+ return()
+endif()
+
+block()
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(bullet bullet REQUIRED IMPORTED_TARGET)
+
+ add_executable(main-pkgconfig "${SOURCE_PATH}/examples/HelloWorld/HelloWorld.cpp")
+ target_link_libraries(main-pkgconfig PRIVATE PkgConfig::bullet)
+endblock()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/vcpkg.json
new file mode 100644
index 0000000..ecf08fa
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-bullet3/vcpkg.json
@@ -0,0 +1,45 @@
+{
+ "name": "vcpkg-ci-bullet3",
+ "version-string": "ci",
+ "description": "Port to force features of bullet3 within CI",
+ "homepage": "https://github.com/microsoft/vcpkg",
+ "license": "MIT",
+ "dependencies": [
+ "bullet3",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ "extras",
+ {
+ "name": "opencl",
+ "platform": "!uwp"
+ }
+ ],
+ "features": {
+ "extras": {
+ "description": "bullet3[extras]",
+ "dependencies": [
+ {
+ "name": "bullet3",
+ "features": [
+ "extras"
+ ]
+ }
+ ]
+ },
+ "opencl": {
+ "description": "bullet3[opencl]",
+ "dependencies": [
+ {
+ "name": "bullet3",
+ "features": [
+ "opencl"
+ ]
+ }
+ ]
+ }
+ }
+}