-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcairo.yml
62 lines (61 loc) · 1.9 KB
/
cairo.yml
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
60
61
62
---
GENERATOR:
PackageName: cairo
PackageDescription: "Package cairo provides Go bindings for Cairo."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
Includes: ["include/cairo.h"]
Options:
SafeStrings: true
PARSER:
IncludePaths:
- "include/"
SourcesPaths:
- "include/cairo.h"
IgnoredPaths:
- "include/cairo-deprecated.h"
Defines:
CAIRO_HAS_FC_FONT: 1
CAIRO_HAS_FT_FONT: 1
CAIRO_HAS_GOBJECT_FUNCTIONS: 1
CAIRO_HAS_IMAGE_SURFACE: 1
CAIRO_HAS_MIME_SURFACE: 1
CAIRO_HAS_OBSERVER_SURFACE: 1
CAIRO_HAS_PDF_SURFACE: 1
CAIRO_HAS_PNG_FUNCTIONS: 1
CAIRO_HAS_PS_SURFACE: 1
CAIRO_HAS_RECORDING_SURFACE: 1
CAIRO_HAS_SCRIPT_SURFACE: 1
CAIRO_HAS_SVG_SURFACE: 1
CAIRO_HAS_TEE_SURFACE: 1
CAIRO_HAS_USER_FONT: 1
# CAIRO_HAS_QUARTZ_SURFACE: 1
TRANSLATOR:
ConstRules:
defines: expand
PtrTips:
function:
- {target: ".", tips: [ref,ref,ref,ref,ref,ref,ref]}
Rules:
global:
- {transform: lower}
- {action: accept, from: "(?i)^cairo_"}
- {action: replace, from: "^cairo_t$", to: Cairo}
- {action: replace, from: "^cairo_", to: _}
- {transform: export}
const:
- {action: ignore, from: "cairo_get_font_extents$"}
- {action: ignore, from: "cairo_get_status"}
function:
- {action: replace, from: "^_text_extents$", to: "_get_text_extents"}
- {action: replace, from: "^_font_extents$", to: "_get_font_extents"}
- {action: replace, from: "^_rectangle$", to: "_make_rectangle"}
- {action: replace, from: "^_version$", to: "_get_version"}
- {action: ignore, from: "cairo_surface_get_mime_data$"}
- {action: replace, from: "^_status$", to: "_get_status"}
type:
- {action: replace, from: "_t$"}
private:
- {transform: unexport}
post-global:
- {action: replace, from: _$}
- {load: snakecase}