Skip to content

Commit 014b7e3

Browse files
author
YesDrX
committed
add one nim script to automatically generate bindings for all webui functions defined in webui.h
1 parent a97eff8 commit 014b7e3

File tree

8 files changed

+2765
-500
lines changed

8 files changed

+2765
-500
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
- name: Init submodules
4444
run: git submodule update --init
4545

46+
- name: Generate bindings
47+
run: nim scripts/generate_bindings.nims
48+
4649
- name: Compile examples
4750
run: |
4851
nim c examples/minimal.nim
@@ -54,4 +57,4 @@ jobs:
5457
5558
nim c examples/serve_folder/serve_folder.nim
5659
nim c examples/qxexample/qxexample.nim
57-
# nim c examples/text_editor/src/text_editor.nim
60+
# nim c examples/text_editor/src/text_editor.nim # osfiles/dialog not available in macos

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ git clone --recursive https://github.com/webui-dev/nim-webui.git
7676

7777
The Nim library exposes two files: `webui.nim` and `webui/bindings.nim`.
7878
`webui/bindings.nim` are low-level bindings for WebUI, generated by
79-
[c2nim](https://github.com/nim-lang/c2nim). `webui.nim` is a high-level wrapper for
79+
[c2nim](https://github.com/nim-lang/c2nim) using script [generate_bindings.nims](./scripts/generate_bindings.nims). `webui.nim` is a high-level wrapper for
8080
WebUI, using native Nim types and avoiding pointers.
8181

8282
The wrapper and bindings also allow to to control whether or not to statically

0 commit comments

Comments
 (0)