package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
719 B
19 lines
719 B
1 year ago
|
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)
|