Skip to content

Commit

Permalink
fmi: add package (#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Sep 23, 2023
1 parent f85fd01 commit ea09c9a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/f/fmi/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package("fmi")
set_kind("library", {headeronly = true})
set_homepage("https://fmi-standard.org/")
set_description("Specification of the Functional Mock-Up Interface (FMI)")

add_urls("https://github.com/modelica/fmi-standard/archive/refs/tags/$(version).tar.gz",
"https://github.com/modelica/fmi-standard.git")

add_versions("v3.0.1", "aba8c3b6d67484926fada2cf7433ad10c6b3b3fc4f84df7dc90230609ea257c1")

on_install(function (package)
os.cp("headers/*.h", package:installdir("include"))
os.cp("schema", package:installdir("share"))
end)

on_test(function (package)
assert(package:has_ctypes("fmi3Status", {includes = "fmi3FunctionTypes.h"}))
end)

0 comments on commit ea09c9a

Please sign in to comment.