[Buildroot] [PATCH v3 1/1] libuwsc: new package

Arnout Vandecappelle arnout at mind.be
Sat Sep 7 20:57:01 UTC 2019


 Hi Zhao,

On 06/09/2019 04:38, 赵建辉 wrote:
> +
> +ifneq ($(findstring $(BR2_PACKAGE_LUA_5_1)$(BR2_PACKAGE_LUA_5_3), y),)

 This condition can be simplified to

ifeq ($(BR2_PACKAGE_LUA),y)

 Indeed, when Lua is enabled, it is either 5.1 or 5.3.


 That said, does it really depend on plain Lua, i.e. does it not work with
luajit? If it does work with luajit, the condition should be

ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)

> +LIBUWSC_DEPENDENCIES += lua

 ... and this would be

LIBUWSC_DEPENDENCIES += luainterpreter


 Regards,
 Arnout

> +LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=ON
> +else
> +LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
> +endif



More information about the buildroot mailing list