-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpython_ffigen.yaml
More file actions
27 lines (26 loc) · 1.23 KB
/
python_ffigen.yaml
File metadata and controls
27 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Run with `dart run ffigen --config python_ffigen.yaml`.
output: "lib/src/gen.dart"
# enums:
# rename:
# "_(.*)": "$1"
# member-rename:
# "_(.*)":
# "_(.*)": "$1"
globals:
rename:
"^class (\\w+) extends ffi.Struct": "final class $1 extends ffi.Struct"
"^class (\\w+) extends ffi.Opaque": "final class $1 extends ffi.Opaque"
"^class (\\w+) extends ffi.Union": "final class $1 extends ffi.Union"
headers:
entry-points:
- "/Users/feodor/projects/flet-dev/python-mobile/install/android/arm64-v8a/python-3.12/include/python3.12/Python.h"
include-directives:
- "/Users/feodor/projects/flet-dev/python-mobile/install/android/arm64-v8a/python-3.12/include/python3.12/*"
- "/Users/feodor/projects/flet-dev/python-mobile/install/android/arm64-v8a/python-3.12/include/python3.12/internal/*"
- "/Users/feodor/projects/flet-dev/python-mobile/install/android/arm64-v8a/python-3.12/include/python3.12/cpython/*"
name: "CPython"
llvm-path:
- /opt/homebrew/opt/llvm
#compiler-opts: "-I/usr/local/opt/llvm/lib/clang/10.0.0/include/ -I/usr/local/Frameworks/Python.framework/Versions/3.8/include/python3.8/"
description: "Bindings to Python C interface\nignore_for_file: unused_field, unused_element\n"
#array-workaround: true