Skip to content

Commit

Permalink
jwasm: add package
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 17, 2024
1 parent e8cd7c5 commit 044210d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/j/jwasm/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package("jwasm")
set_kind("binary")
set_homepage("https://github.com/JWasm/JWasm")
set_description("JWasm continuation")

add_urls("https://github.com/JWasm/JWasm.git")
add_versions("2022.12.25", "7218960b65d69216693a655d928eb4c2fb6b505c")

on_install(function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("jwasm")
set_kind("binary")
add_files("*.c")
add_includedirs("H")
]])
import("package.tools.xmake").install(package)
end)

on_test(function (package)
-- os.vrun("jwasm -h") -- return 1
assert(os.isexec(package:installdir("bin/jwasm") .. (is_host("windows") and ".exe" or "")))
end)

0 comments on commit 044210d

Please sign in to comment.