mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
add luv and lua-compat-5.3
This commit is contained in:
parent
224ed0bc99
commit
6a4ab2283d
11
recipes/libs/lua-compat-5.3/recipe.toml
Normal file
11
recipes/libs/lua-compat-5.3/recipe.toml
Normal file
@ -0,0 +1,11 @@
|
||||
[source]
|
||||
git = "https://github.com/lunarmodules/lua-compat-5.3.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"lua54"
|
||||
]
|
||||
script = """
|
||||
mkdir -pv "${COOKBOOK_STAGE}/include"
|
||||
cp -r "$COOKBOOK_SOURCE/c-api/." "${COOKBOOK_STAGE}/include"
|
||||
"""
|
||||
27
recipes/libs/luv/recipe.toml
Normal file
27
recipes/libs/luv/recipe.toml
Normal file
@ -0,0 +1,27 @@
|
||||
[source]
|
||||
git = "https://github.com/luvit/luv.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"lua54",
|
||||
"libuv",
|
||||
"lua-compat-5.3"
|
||||
]
|
||||
script = """
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
-DBUILD_MODULE=OFF
|
||||
-DBUILD_STATIC_LIBS=ON
|
||||
-DWITH_SHARED_LIBUV=ON
|
||||
-DWITH_LUA_ENGINE=Lua
|
||||
-DLUA_BUILD_TYPE=System
|
||||
-DLUA_COMPAT53_DIR="${COOKBOOK_SYSROOT}/bin"
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
-DLIBUV_LIBRARIES="${COOKBOOK_SYSROOT}/usr/lib/libuv.a"
|
||||
-DLIBUV_INCLUDE_DIR="${COOKBOOK_SYSROOT}/usr/include"
|
||||
-DLUA_INCLUDE_DIR="${COOKBOOK_SYSROOT}/include"
|
||||
-DLUV_INCLUDE_DIR="${COOKBOOK_SYSROOT}/include"
|
||||
"${COOKBOOK_SOURCE}"
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user