* add hlslpp

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/1962/head
vkensou 2 years ago committed by GitHub
parent 1a596ccf1f
commit c723d09c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      packages/h/hlslpp/xmake.lua

@ -0,0 +1,28 @@
package("hlslpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/redorav/hlslpp")
set_description("Math library using hlsl syntax with SSE/NEON support")
set_license("MIT")
add_urls("https://github.com/redorav/hlslpp/archive/refs/tags/$(version).tar.gz")
add_versions("3.1", "6f933e43bf8150a41d76a188377e59007897dc87e96be30608e7f2007605d5c4")
add_versions("3.2.3", "132149d25306cdc56a87c1d6a4a93d3200de4864b5d27d758d235ce4ace64498")
on_install("linux", "macosx", "bsd", "windows", "android", "iphoneos", function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
using namespace hlslpp;
float4 foo4 = float4(1, 2, 3, 4);
float4x4 fooMatrix4x4 = float4x4( 1, 2, 3, 4,
5, 6, 7, 8,
8, 7, 6, 5,
4, 3, 2, 1);
float4 myTransformedVector = mul(fooMatrix4x4, foo4);
}
]]}, {configs = {languages = "c++14"}, includes = "hlsl++.h"}))
end)
Loading…
Cancel
Save