You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/littlevgl/README.md
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,19 @@
1
1
"littlevgl" sample introduction
2
2
==============
3
-
This sample demonstrates that a graphic user interface application in WebAssembly by compiling the LittlevGL, an open-source embedded 2d graphic library into the WASM bytecode.
3
+
This sample demonstrates that a graphic user interface application in WebAssembly by compiling the LittlevGL v5.3, an open-source embedded 2d graphic library into the WASM bytecode.
4
4
5
-
In this sample, the whole LittlevGL source code is built into the WebAssembly code with the user application. The platform interfaces defined by LittlevGL is implemented in the runtime and exported to the application through the declarations from source "ext_lib_export.c" as below:
5
+
In this sample, the whole LittlevGL v5.3 source code is built into the WebAssembly code with the user application. The platform interfaces defined by LittlevGL is implemented in the runtime and registered for WASM application through calling wasm_runtime_full_init().
The runtime component supports building target for Linux and Zephyr/STM Nucleo board. The beauty of this sample is the WebAssembly application can have identical display and behavior when running from both runtime environments. That implies we can do majority of application validation from desktop environment as long as two runtime distributions support the same set of application interface.
15
19
@@ -56,14 +60,21 @@ Build and Run
56
60
- Build</br>
57
61
`./build.sh`</br>
58
62
All binaries are in "out", which contains "host_tool", "vgl_native_ui_app", "ui_app.wasm" "ui_app_no_wasi.wasm "and "vgl_wasm_runtime".
59
-
- Run native Linux application</br>
63
+
- Run the native Linux build of the lvgl sample (no wasm) </br>
60
64
`./vgl_native_ui_app`</br>
61
65
62
66
- Run WASM VM Linux applicaton & install WASM APP</br>
63
67
First start vgl_wasm_runtime in server mode.</br>
64
68
`./vgl_wasm_runtime -s`</br>
65
-
Then install wasm APP use host tool.</br>
66
-
`./host_tool -i ui_app -f ui_app.wasm`</br>
69
+
Then install and uninstall wasm APPs by using host tool.</br>
0 commit comments