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
|
project('libtess2', 'c',
version : '0.12.0',
default_options : [
'buildtype=release',
'optimization=3',
'default_library=static',
'prefer_static=true',
'b_ndebug=if-release',
'c_args=-pipe',
'cpp_args=-pipe',
]
)
inc = include_directories(
'Include',
'Source'
)
install_headers('Include/tesselator.h')
sources = files(
'Source/bucketalloc.c',
'Source/dict.c',
'Source/geom.c',
'Source/mesh.c',
'Source/priorityq.c',
'Source/sweep.c',
'Source/tess.c',
)
lib = library('tess2',
sources,
include_directories: inc,
install: true)
pkg = import('pkgconfig')
pkg.generate(lib)
|