-
Notifications
You must be signed in to change notification settings - Fork 266
/
meson.build
32 lines (26 loc) · 1.04 KB
/
meson.build
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
project('freetype-gl', 'c')
c = meson.get_compiler('c')
m = c.find_library('m')
freetype2 = dependency('freetype2')
gl = dependency('opengl')
conf_data = configuration_data()
configure_file(output: 'config.h', configuration: conf_data)
# TODO add config data
freetype_gl_sources = files('distance-field.c',
'edtaa3func.c',
'ftgl-utils.c',
'font-manager.c',
'platform.c',
'text-buffer.c',
'texture-atlas.c',
'texture-font.c',
'utf8-utils.c',
'vector.c',
'vertex-attribute.c',
'vertex-buffer.c')
inc = include_directories('.')
deps = [freetype2, gl, m]
freetype_gl_lib = library('freetype-gl', freetype_gl_sources, include_directories: inc, dependencies: deps)
freetype_gl_dep = declare_dependency(include_directories: inc, dependencies: deps, link_with: freetype_gl_lib)
makefont_sources = files('makefont.c')
executable('makefont', makefont_sources, dependencies: freetype_gl_dep)