File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,13 @@ intervention:
41
41
* C++ :ref: `class <class_templates >` and :ref: `function <function_templates >`
42
42
templates
43
43
44
- To tell the autogenerator to parse headers, you need to add a ``generate ``
44
+ To tell the autogenerator to parse headers, you need to add a ``autogen_headers ``
45
45
to your package in ``pyproject.toml ``:
46
46
47
47
.. code-block :: toml
48
48
49
- generate = [
50
- { demo = "demo.h" }
51
- ]
49
+ [tool.robotpy-build.wrappers."MYPACKAGE".autogen_headers]
50
+ demo = "demo.h"
52
51
53
52
That causes ``demo.h `` to be parsed and wrapped.
54
53
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ sources = [
18
18
" rpydemo/src/main.cpp"
19
19
]
20
20
21
- # This tells robotpy-build to parse include/demo.h and autogenerate pybind11
22
- # wrappers for the contents of the header.
23
- # -> autogenerate this via `robotpy-build scan-headers`
24
- generate = [
25
- { demo = " demo.h" }
26
- ]
27
-
28
21
# This is a directory that can be used to customize the autogenerated
29
22
# C++ code
30
23
# -> autogenerate those files via `robotpy-build create-gen`
31
24
generation_data = " gen"
32
25
26
+ # This tells robotpy-build to parse include/demo.h and autogenerate pybind11
27
+ # wrappers for the contents of the header.
28
+ # -> autogenerate this via `robotpy-build scan-headers`
29
+ [tool .robotpy-build .wrappers ."rpydemo" .autogen_headers ]
30
+ demo = " demo.h"
31
+
32
+
33
33
# Standard python package metadata
34
34
[tool .robotpy-build .metadata ]
35
35
name = " robotpy-build-demo"
You can’t perform that action at this time.
0 commit comments