mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/lua-cffi: add luajit support
luajit is supported since the addition of the package in commit13114d0f93andcb92c44e78Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: append to LUA_CFFI_CONF_OPTS] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
9b07b4bf6d
commit
1652d9b6f8
@@ -1,6 +1,5 @@
|
|||||||
config BR2_PACKAGE_LUA_CFFI
|
config BR2_PACKAGE_LUA_CFFI
|
||||||
bool "lua-cffi"
|
bool "lua-cffi"
|
||||||
depends on !BR2_PACKAGE_LUAJIT
|
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
|
||||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||||
depends on BR2_INSTALL_LIBSTDCPP
|
depends on BR2_INSTALL_LIBSTDCPP
|
||||||
@@ -13,7 +12,6 @@ config BR2_PACKAGE_LUA_CFFI
|
|||||||
https://github.com/q66/cffi-lua
|
https://github.com/q66/cffi-lua
|
||||||
|
|
||||||
comment "lua-cffi needs a toolchain w/ C++, gcc >= 4.8, threads"
|
comment "lua-cffi needs a toolchain w/ C++, gcc >= 4.8, threads"
|
||||||
depends on !BR2_PACKAGE_LUAJIT
|
|
||||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
|
||||||
!BR2_TOOLCHAIN_HAS_THREADS
|
!BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ LUA_CFFI_SITE = $(call github,q66,cffi-lua,v$(LUA_CFFI_VERSION))
|
|||||||
LUA_CFFI_LICENSE = MIT
|
LUA_CFFI_LICENSE = MIT
|
||||||
LUA_CFFI_LICENSE_FILES = COPYING.md
|
LUA_CFFI_LICENSE_FILES = COPYING.md
|
||||||
|
|
||||||
LUA_CFFI_DEPENDENCIES = libffi lua
|
LUA_CFFI_DEPENDENCIES = libffi
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LUA),y)
|
||||||
|
LUA_CFFI_DEPENDENCIES += lua
|
||||||
|
LUA_CFFI_CONF_OPTS += -Dlua_version=$(LUAINTERPRETER_ABIVER)
|
||||||
|
else ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
||||||
|
LUA_CFFI_DEPENDENCIES += luajit
|
||||||
|
LUA_CFFI_CONF_OPTS += -Dlua_version=luajit
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(meson-package))
|
$(eval $(meson-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user