-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
87 lines (83 loc) · 2.25 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
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
project(
'Aperture',
'c',
default_options: [
'c_std=c11',
],
license: 'Apache-2.0',
version: '0.3.0',
)
cc = meson.get_compiler('c')
configure_file(
input: 'src' / 'ap_glsl' / 'ap_orthographic.fs.glsl',
output: 'ap_orthographic.fs.glsl',
copy: true,
install: true,
install_dir: get_option('datadir') / 'aperture' / 'ap_glsl',
)
configure_file(
input: 'src' / 'ap_glsl' / 'ap_orthographic.vs.glsl',
output: 'ap_orthographic.vs.glsl',
copy: true,
install: true,
install_dir: get_option('datadir') / 'aperture' / 'ap_glsl',
)
configure_file(
input: 'src' / 'ap_glsl' / 'ap_perspective.fs.glsl',
output: 'ap_perspective.fs.glsl',
copy: true,
install: true,
install_dir: get_option('datadir') / 'aperture' / 'ap_glsl',
)
configure_file(
input: 'src' / 'ap_glsl' / 'ap_perspective.vs.glsl',
output: 'ap_perspective.vs.glsl',
copy: true,
install: true,
install_dir: get_option('datadir') / 'aperture' / 'ap_glsl',
)
subdir('include')
aperture = library(
'aperture',
sources: files(
'src' / 'ap_audio.c',
'src' / 'ap_camera.c',
'src' / 'ap_custom_io.c',
'src' / 'ap_cvector.c',
'src' / 'ap_cvector.c',
'src' / 'ap_decode.c',
'src' / 'ap_light.c',
'src' / 'ap_memory.c',
'src' / 'ap_mesh.c',
'src' / 'ap_model.c',
'src' / 'ap_network.c',
'src' / 'ap_physic.c',
'src' / 'ap_render.c',
'src' / 'ap_shader.c',
'src' / 'ap_sqlite.c',
'src' / 'ap_texture.c',
'src' / 'ap_thread.c',
'src' / 'ap_utils.c',
'src' / 'ap_vertex.c',
'src' / 'glad.c',
),
dependencies: [
dependency('glfw3'),
dependency('assimp'),
dependency('freetype2'),
dependency('openal'),
dependency('libavutil'),
dependency('libavcodec'),
dependency('libavdevice'),
dependency('libavfilter'),
dependency('libavformat'),
dependency('libswresample'),
dependency('libswscale'),
dependency('sqlite3'),
dependency('libcurl'),
cc.find_library('alut'),
cc.find_library('m'),
],
include_directories: aperture_inc,
install: true,
)