Skip to content

Commit

Permalink
Add LuaRocks rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitianux committed Mar 21, 2023
1 parent 72e537b commit 0e029b7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions xtf8-master-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package = "xtf8"
version = "master-1"

description = {
summary = "Encode hybrid UTF-8 text and binary bytes to valid UTF-8 strings",
homepage = "https://github.com/liweitianux/xtf8",
license = "MIT",
}

dependencies = {}

source = {
url = "git://github.com/liweitianux/xtf8",
branch = "master",
}

local _defines = { "NDEBUG" }

build = {
type = "builtin",
modules = {
["xtf8.ffi"] = "xtf8.lua",
["libxtf8"] = {
sources = { "xtf8.c" },
defines = _defines,
},
["xtf8"] = {
sources = { "xtf8_lua.c", "xtf8.c" },
defines = _defines,
},
},
}

0 comments on commit 0e029b7

Please sign in to comment.