-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathffigen.yaml
More file actions
53 lines (45 loc) · 1.16 KB
/
Copy pathffigen.yaml
File metadata and controls
53 lines (45 loc) · 1.16 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
52
53
# ffigen.yaml
#
# Configuration for ffigen to generate FFI bindings from the native C header.
# Run with: dart run ffigen
#
# This is optional - the FFI bindings in lib/src/rar_desktop_ffi.dart are
# hand-written for better control and documentation. This file is provided
# for reference and future binding regeneration if needed.
#
# For more information, see: https://pub.dev/packages/ffigen
name: RarNativeBindings
description: FFI bindings for the native RAR library
output:
bindings: lib/src/rar_native_bindings_generated.dart
symbol-file:
output: symbols.yaml
import-path: package:rar/src/rar_native_bindings_generated.dart
headers:
entry-points:
- src/rar_native.h
include-directives:
- src/rar_native.h
compiler-opts:
- '-I/opt/homebrew/include'
- '-I/usr/local/include'
- '-I/usr/include'
# Function configuration
functions:
include:
- rar_extract
- rar_list
- rar_get_error_message
rename:
'rar_(.*)': '$1'
# Typedef configuration
typedefs:
include:
- rar_list_callback
- rar_error_callback
# Generate comments from the header file
comments:
style: any
length: full
# Use dart:ffi types
ffi-native: false