-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathffigen.yaml
59 lines (58 loc) · 1.82 KB
/
ffigen.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Run with `dart run ffigen --config ffigen.yaml`.
name: GgmlBindings
description: |
Bindings for `src/ggml.h`.
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
output: "lib/src/ggml.g.dart"
ffi-native:
assetId: "package:ggml/ggml.dart"
compiler-opts: "-Isrc -Isrc/ggml/include"
sort: true
headers:
entry-points:
- "src/ggml/include/ggml.h"
- "src/ggml/include/ggml/ggml.h"
- "src/ggml/include/ggml/ggml-backend.h"
- "src/ggml/include/ggml/ggml-alloc.h"
- "src/ggml.dart.h"
include-directives:
- "src/ggml/include/ggml.h"
- "src/ggml/include/ggml/ggml.h"
- "src/ggml/include/ggml/ggml-backend.h"
- "src/ggml/include/ggml/ggml-alloc.h"
- "src/ggml.dart.h"
enums:
rename:
"ggml_backend_buffer_usage": "GgmlBackendBufferUsage"
"ggml_backend_type": "GgmlBackendType"
"ggml_cgraph_eval_order": "GgmlCGraphEvalOrder"
"ggml_ftype": "GgmlFtype"
"ggml_linesearch": "GgmlLinesearch"
"ggml_log_level": "GgmlLogLevel"
"ggml_numa_strategy": "GgmlNumaStrategy"
"ggml_object_type": "GgmlObjectType"
"ggml_op": "GgmlOp"
"ggml_op_pool": "GgmlOpPool"
"ggml_opt_result": "GgmlOptResult"
"ggml_opt_type": "GgmlOptType"
"ggml_prec": "GgmlPrec"
"ggml_sort_order": "GgmlSortOrder"
"ggml_status": "GgmlStatus"
"ggml_task_type": "GgmlTaskType"
"ggml_tensor_flag": "GgmlTensorFlag"
"ggml_type": "GgmlType"
"ggml_unary_op": "GgmlUnaryOp"
"gguf_type": "GgufType"
preamble: |
// ignore_for_file: always_specify_types, unused_field
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// coverage:ignore-file
//
// ggml - ggml bindings for Dart language
// Author: Rainyl
// License: Apache-2.0
// Date: 2024/04/22
comments:
style: any
length: full