Commit Graph

5 Commits

Author SHA1 Message Date
Yi Zhao
8e21197271 duktape: fix override syntax in RDEPENDS
RDEPENDS_${PN}-ptest -> RDEPENDS:${PN}-ptest

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-06-30 13:39:28 -04:00
Nikhil R
3277a81937 duktape: Add ptest
The Ptest for duktape executes below tests:

1. hello - a helloworld example is basic compilation test
that test the APIs - duk_get_top(), duk_push_c_function(),
duk_eval_string()

2. eval - a very simple for evaluating expressions from
command line which test the APIs - duk_push_string(),
duk_insert(), duk_join(), duk_pop()

3. evloop - a basic eventloop implementation test
that test the APIs - duk_is_object(), duk_compile()
duk_push_c_function(), duk_safe_call()

Test Summary:
Execution time        = 46 sec

Signed-off-by: Nikhil R <nikhil.r@kpit.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-26 18:54:39 -07:00
Khem Raj
e0d6386af8 duktape: Use baselib to construct LIBDIR
duktape's definition of LIBDIR does not correspond on to one on OE's
therefore synthesize it from baselib instead

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-28 08:33:23 -07:00
Khem Raj
6cfa5caa25 duktape: Upgrade to 2.7.0
License-Update: Update copyright years [1]
Drop upstreamed patch
Define LIBDIR so it can compile on all platforms

[1] d51a1ffae6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-21 08:25:11 -07:00
Luca Boccassi
cbbb8ccc75 Add recipe for duktape
Embedded javascript engine, work is almost finished to have polkit
use it instead of mozjs, so add a recipe to be ready to switch:
https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/97

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-19 09:01:04 -08:00