This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
87 lines (84 loc) · 3 KB
/
Makefile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.PHONY: build
build:
@cargo build
.PHONY: docs
docs:
@cargo doc
.PHONY: formatn
format:
@cargo fmt
#TODO(mookerji): move to standalone bash file.
# See also:
# unused option: --whitelist-function h3SetToMultiPolygon
# unused option: --whitelist-function hexArea
# unused option: --whitelist-function edgeLength
.PHONY: gen
gen:
@bindgen \
--with-derive-default \
--no-layout-tests \
--no-doc-comments \
--blacklist-type '__darwin_size_t' \
--whitelist-type 'H3Index' \
--whitelist-type 'GeoCoord' \
--whitelist-type 'GeoBoundary' \
--whitelist-type 'Geofence' \
--whitelist-type 'GeoPolygon' \
--whitelist-type 'GeoMultiPolygon' \
--whitelist-type 'LinkedGeoCoord' \
--whitelist-type 'LinkedGeoLoop' \
--whitelist-type 'LinkedGeoPolygon' \
--whitelist-type 'CoordIJ' \
--whitelist-var 'MAX_CELL_BNDRY_VERTS' \
--whitelist-function 'geoToH3' \
--whitelist-function 'h3ToGeo' \
--whitelist-function 'h3ToGeoBoundary' \
--whitelist-function 'kRing' \
--whitelist-function 'maxKringSize' \
--whitelist-function 'kRingDistances' \
--whitelist-function 'hexRange' \
--whitelist-function 'hexRangeDistances' \
--whitelist-function 'hexRanges' \
--whitelist-function 'hexRing' \
--whitelist-function 'h3SetToLinkedGeo' \
--whitelist-function 'destroyLinkedPolygon' \
--whitelist-function 'maxPolyfillSize' \
--whitelist-function 'polyfill' \
--whitelist-function 'degsToRads' \
--whitelist-function 'radsToDegs' \
--whitelist-function 'hexAreaKm2' \
--whitelist-function 'hexAreaM2' \
--whitelist-function 'edgeLengthKm' \
--whitelist-function 'edgeLengthM' \
--whitelist-function 'numHexagons' \
--whitelist-function 'getRes0Indexes' \
--whitelist-function 'h3GetResolution' \
--whitelist-function 'h3GetBaseCell' \
--whitelist-function 'stringToH3' \
--whitelist-function 'h3ToString' \
--whitelist-function 'h3IsValid' \
--whitelist-function 'h3ToParent' \
--whitelist-function 'maxH3ToChildrenSize' \
--whitelist-function 'h3ToChildren' \
--whitelist-function 'compact' \
--whitelist-function 'uncompact' \
--whitelist-function 'maxUncompactSize' \
--whitelist-function 'h3IsResClassIII' \
--whitelist-function 'h3IsPentagon' \
--whitelist-function 'h3GetFaces' \
--whitelist-function 'maxFaceCount' \
--whitelist-function 'h3IndexesAreNeighbors' \
--whitelist-function 'getH3UnidirectionalEdge' \
--whitelist-function 'h3UnidirectionalEdgeIsValid' \
--whitelist-function 'getOriginH3IndexFromUnidirectionalEdge' \
--whitelist-function 'getDestinationH3IndexFromUnidirectionalEdge' \
--whitelist-function 'getH3IndexesFromUnidirectionalEdge' \
--whitelist-function 'getH3UnidirectionalEdgesFromHexagon' \
--whitelist-function 'getH3UnidirectionalEdgeBoundary' \
--whitelist-function 'h3Distance' \
--whitelist-function 'h3Line' \
--whitelist-function 'h3LineSize' \
--whitelist-function 'experimentalH3ToLocalIj' \
--whitelist-function 'experimentalLocalIjToH3' \
h3-sys/interface.h \
-- -std=c11 -I/usr/local/include > h3-sys/src/ffi.rs