diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-07-14 00:27:20 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-07-14 00:27:20 +0200 |
commit | c1af2ddbb15e7f39ae83be354f4aeca07d323f86 (patch) | |
tree | 5150dddc901db02cb13a3c10accf6267201afbcb /packages | |
parent | b4d82696f9bd6dbb86ab9c20965a74e8a2017561 (diff) | |
download | embtoolkit-c1af2ddbb15e7f39ae83be354f4aeca07d323f86.tar.gz embtoolkit-c1af2ddbb15e7f39ae83be354f4aeca07d323f86.tar.bz2 embtoolkit-c1af2ddbb15e7f39ae83be354f4aeca07d323f86.tar.xz |
Packages: New lutok v0.4
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
4 files changed, 112 insertions, 5 deletions
diff --git a/packages/scripting-languages/lua-modules/lutok/lutok.kconfig b/packages/scripting-languages/lua-modules/lutok/lutok.kconfig new file mode 100644 index 0000000..c1ab9d6 --- /dev/null +++ b/packages/scripting-languages/lua-modules/lutok/lutok.kconfig @@ -0,0 +1,67 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2014 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file lutok.kconfig +# \brief lutok.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date June 2014 +################################################################################ + +config EMBTK_HAVE_LUTOK + bool "Have lutok" + depends on EMBTK_HAVE_LUA + select EMBTK_GCC_LANGUAGE_CPP + help + Lutok is a lightweight C++ API library for Lua. + + Lutok provides thin C++ wrappers around the Lua C API to ease the + interaction between C++ and Lua. These wrappers make intensive use of + RAII to prevent resource leakage, expose C++-friendly data types, report + errors by means of exceptions and ensure that the Lua stack is always + left untouched in the face of errors. The library also provides a small + subset of miscellaneous utility functions built on top of the wrappers. + + Lutok focuses on providing a clean and safe C++ interface; the drawback + is that it is not suitable for performance-critical environments. In + order to implement error-safe C++ wrappers on top of a Lua C binary + library, Lutok adds several layers or abstraction and error checking + that go against the original spirit of the Lua C API and thus degrade + performance. + see https://github.com/jmmv/lutok + +choice + prompt "lutok version you wish" + depends on EMBTK_HAVE_LUTOK + help + Here you can choose which version of lutok you want to use. + + config EMBTK_LUTOK_VERSION_0_4 + bool "lutok-0.4" + select EMBTK_LUTOK_NEED_AUTORECONF + select EMBTK_LUTOK_NEED_PATCH +endchoice + +config EMBTK_LUTOK_VERSION_STRING + string + default "0.4" if EMBTK_LUTOK_VERSION_0_4 + +config EMBTK_LUTOK_NEED_PATCH + bool +config EMBTK_LUTOK_NEED_AUTORECONF + bool diff --git a/packages/scripting-languages/lua-modules/lutok/lutok.mk b/packages/scripting-languages/lua-modules/lutok/lutok.mk new file mode 100644 index 0000000..a9b3eac --- /dev/null +++ b/packages/scripting-languages/lua-modules/lutok/lutok.mk @@ -0,0 +1,37 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2014 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file lutok.mk +# \brief lutok.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date June 2014 +################################################################################ + +LUTOK_NAME := lutok +LUTOK_VERSION := $(call embtk_get_pkgversion,lutok) +LUTOK_SITE := https://github.com/jmmv/lutok/archive +LUTOK_PACKAGE := lutok-$(LUTOK_VERSION).tar.gz +LUTOK_SRC_DIR := $(embtk_pkgb)/lutok-$(LUTOK_VERSION) +LUTOK_BUILD_DIR := $(embtk_pkgb)/lutok-$(LUTOK_VERSION)-build + +LUTOK_LIBS := liblutok* +LUTOK_PKGCONFIGS := lutok.pc +LUTOK_SHARES := doc/lutok + +LUTOK_DEPS := lua_install diff --git a/packages/scripting-languages/scripting-languages.kconfig b/packages/scripting-languages/scripting-languages.kconfig index 63572e9..7c23b46 100644 --- a/packages/scripting-languages/scripting-languages.kconfig +++ b/packages/scripting-languages/scripting-languages.kconfig @@ -28,7 +28,7 @@ source packages/scripting-languages/lua/lua.kconfig comment "------------------------------------" comment "---- Lua Modules" comment "------------------------------------" +source packages/scripting-languages/lua-modules/cgilua/cgilua.kconfig +source packages/scripting-languages/lua-modules/lutok/lutok.kconfig source packages/scripting-languages/lua-modules/luafilesystem/luafilesystem.kconfig source packages/scripting-languages/lua-modules/rings/rings.kconfig -source packages/scripting-languages/lua-modules/cgilua/cgilua.kconfig - diff --git a/packages/scripting-languages/scripting-languages.mk b/packages/scripting-languages/scripting-languages.mk index 1a86024..95e9108 100644 --- a/packages/scripting-languages/scripting-languages.mk +++ b/packages/scripting-languages/scripting-languages.mk @@ -35,13 +35,16 @@ $(call embtk_include_pkg,lua) # embtk_pkgincdir := packages/scripting-languages/lua-modules +# cgilua +$(call embtk_include_pkg,cgilua) + # luafilesystem $(call embtk_include_pkg,luafilesystem) +# lutok +$(call embtk_include_pkg,lutok) + # rings $(call embtk_include_pkg,rings) -# cgilua -$(call embtk_include_pkg,cgilua) - embtk_pkgincdir := |