Repository navigation
Expand file tree
/
Copy pathffigen.yaml
More file actions
51 lines (51 loc) · 2.02 KB
/
Copy pathffigen.yaml
File metadata and controls
51 lines (51 loc) · 2.02 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: LlamaCpp
description: Bindings to llama.cpp
output: 'lib/src/backends/llama_cpp/bindings.dart'
headers:
entry-points:
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/include/llama.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/ggml/include/ggml.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/ggml/include/ggml-backend.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/tools/mtmd/mtmd.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/tools/mtmd/mtmd-helper.h'
- '.dart_tool/llamadart/ffigen_headers/libllamadart/llama_dart_wrapper.h'
include-directives:
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/include/llama.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/ggml/include/ggml.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/ggml/include/ggml-backend.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/tools/mtmd/mtmd.h'
- '.dart_tool/llamadart/ffigen_headers/llama_cpp/tools/mtmd/mtmd-helper.h'
- '.dart_tool/llamadart/ffigen_headers/libllamadart/llama_dart_wrapper.h'
functions:
exclude:
# Not kill-safe from Dart: an isolate killed between begin and end never
# reaches end, and a Dart program that returns from main after teardown
# waits forever for its blocked isolates.
- 'llama_dart_exit_call_begin'
- 'llama_dart_exit_call_end'
- 'llama_dart_exit_teardown'
structs:
dependency-only: opaque
exclude:
- '_IO_FILE'
- '_IO_codecvt'
- '_IO_marker'
- '_IO_wide_data'
typedefs:
exclude:
- '_IO_lock_t'
- '__off64_t'
- '__off_t'
compiler-opts:
- '-I.dart_tool/llamadart/ffigen_headers/llama_cpp/ggml/include'
- '-I.dart_tool/llamadart/ffigen_headers/llama_cpp/include'
- '-I.dart_tool/llamadart/ffigen_headers/llama_cpp/tools/mtmd'
preamble: |
// coverage:ignore-file
// ignore_for_file: always_specify_types, unused_field
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
/// @nodoc
silence-enum-warning: true
ffi-native:
asset-id: 'package:llamadart/llamadart'