diff --git a/tests/data/jolt-physics/ci_support/linux_64_.yaml b/tests/data/jolt-physics/ci_support/linux_64_.yaml new file mode 100644 index 0000000..4f1618d --- /dev/null +++ b/tests/data/jolt-physics/ci_support/linux_64_.yaml @@ -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 \ No newline at end of file diff --git a/tests/data/jolt-physics/ci_support/osx_64_.yaml b/tests/data/jolt-physics/ci_support/osx_64_.yaml new file mode 100644 index 0000000..10fa2ff --- /dev/null +++ b/tests/data/jolt-physics/ci_support/osx_64_.yaml @@ -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 \ No newline at end of file diff --git a/tests/data/jolt-physics/ci_support/win_64_.yaml b/tests/data/jolt-physics/ci_support/win_64_.yaml new file mode 100644 index 0000000..34df7ec --- /dev/null +++ b/tests/data/jolt-physics/ci_support/win_64_.yaml @@ -0,0 +1,10 @@ +c_stdlib: +- vs +channel_sources: +- conda-forge +channel_targets: +- conda-forge main +cxx_compiler: +- vs2019 +target_platform: +- win-64 \ No newline at end of file diff --git a/tests/data/jolt-physics/recipe.yaml b/tests/data/jolt-physics/recipe.yaml new file mode 100644 index 0000000..1747cd2 --- /dev/null +++ b/tests/data/jolt-physics/recipe.yaml @@ -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 \ No newline at end of file diff --git a/tests/data/jolt-physics/sources.yaml b/tests/data/jolt-physics/sources.yaml new file mode 100644 index 0000000..f98f122 --- /dev/null +++ b/tests/data/jolt-physics/sources.yaml @@ -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" }} \ No newline at end of file