-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package = "mtint" | ||
version = "0.3.3-1" | ||
local versionNumber = version:gsub("^(.*)-.-$", "%1") | ||
source = { | ||
url = "https://github.com/osch/lua-mtint/archive/v"..versionNumber..".zip", | ||
dir = "lua-mtint-"..versionNumber, | ||
} | ||
description = { | ||
summary = "Make threads and coroutines interruptible", | ||
homepage = "https://github.com/osch/lua-mtint", | ||
license = "MIT/X11", | ||
detailed = [[ | ||
This package provides a way to make arbitrary Lua interpreter states (i.e. main | ||
states and couroutines) interruptible from concurrently running threads. | ||
The implementation is independent from the underlying threading | ||
library (e.g. Lanes or lua-llthreads2). | ||
]], | ||
} | ||
dependencies = { | ||
"lua >= 5.1, <= 5.4", | ||
} | ||
build = { | ||
type = "builtin", | ||
platforms = { | ||
unix = { | ||
modules = { | ||
mtint = { | ||
libraries = {"pthread"}, | ||
} | ||
} | ||
}, | ||
windows = { | ||
modules = { | ||
mtint = { | ||
libraries = {"kernel32"}, | ||
} | ||
} | ||
} | ||
}, | ||
modules = { | ||
mtint = { | ||
sources = { | ||
"src/main.c", | ||
"src/interruptible.c", | ||
"src/error.c", | ||
"src/util.c", | ||
"src/async_util.c", | ||
"src/mtint_compat.c", | ||
}, | ||
defines = { "MTINT_VERSION="..versionNumber }, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters