Skip to content

Commit

Permalink
add jolt-physics feedstock data
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 19, 2024
1 parent 4bd4c5b commit 9cfcc08
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/data/jolt-physics/ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
- linux-64
zip_keys:
- - c_stdlib_version
- cdt_name
20 changes: 20 additions & 0 deletions tests/data/jolt-physics/ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
MACOSX_SDK_VERSION:
- '10.13'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
- osx-64
10 changes: 10 additions & 0 deletions tests/data/jolt-physics/ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
c_stdlib:
- vs
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- vs2019
target_platform:
- win-64
63 changes: 63 additions & 0 deletions tests/data/jolt-physics/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
context:
version: 5.1.0

package:
name: jolt-physics
version: ${{ version }}

source:
url: https://github.com/jrouwe/JoltPhysics/archive/refs/tags/v${{ version }}.zip
sha256: 10fcc863ae2b9d48c2f22d8b0204034820e57a55f858b7c388ac9579d8cf4095

requirements:
build:
- ${{ compiler("cxx") }}
- ${{ stdlib("c") }}
- cmake
- ninja

build:
number: 0
script:
- if: win
then: |
cmake -GNinja ^
%CMAKE_ARGS% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_BUILD_TYPE=Distribution ^
-DCROSS_PLATFORM_DETERMINISTIC=ON ^
-DTARGET_VIEWER=OFF ^
-DTARGET_SAMPLES=OFF ^
-DTARGET_HELLO_WORLD=OFF ^
-DTARGET_UNIT_TESTS=OFF ^
-DTARGET_PERFORMANCE_TEST=OFF ^
-S %SRC_DIR%\Build
cmake --build . --target install
else: |
cmake -GNinja \
$CMAKE_ARGS \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Distribution \
-DCROSS_PLATFORM_DETERMINISTIC=ON \
-DTARGET_VIEWER=OFF \
-DTARGET_SAMPLES=OFF \
-DTARGET_HELLO_WORLD=OFF \
-DTARGET_UNIT_TESTS=OFF \
-DTARGET_PERFORMANCE_TEST=OFF \
-S $SRC_DIR/Build
cmake --build . --target install
about:
homepage: https://github.com/jrouwe/JoltPhysics
license: MIT
license_file: LICENSE
summary: A multi core friendly rigid body physics and collision detection library.
description: A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
documentation: https://jrouwe.github.io/JoltPhysics/
repository: https://github.com/jrouwe/JoltPhysics

extra:
recipe-maintainers:
- baszalmstra
21 changes: 21 additions & 0 deletions tests/data/jolt-physics/sources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
name: jolt-physics
version: 0.0.1

source:
- if: target_platform == "linux-64"
then:
url: https://foo.com
sha256: 679d42a76b82a6dc20ffd9048ab45fb2e5557a526113aaedc7419e12f3cfab38
- if: target_platform == "win-64"
then:
url: https://win.com
sha256: xxx
- if: target_platform == "osx-64" or target_platform == "win-64"
then:
url: https://osx.com/${{ target_platform }}/foo.zip
sha256: zzz
- url: https://all.com
sha256: yyy
- url: ["https://foo.com/${{ target_platform }}/zip.zip", "https://mirror.com/${{ target_platform }}/zip.zip"]
sha256: ${{ "xxx" if win else "yyy" }}

0 comments on commit 9cfcc08

Please sign in to comment.