-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
38 lines (29 loc) · 843 Bytes
/
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
project ('Raylib-vala', [ 'vala', 'c' ], version: '4.2')
# Variables
source_dir = meson.current_source_dir ()
vapi_dir = source_dir / 'vapi'
# Build variables
project_dependency = []
# Compilers
valac = meson.get_compiler ('vala')
cc = meson.get_compiler ('c')
# Compiler arguments
valac_arguments = [
'--vapidir', vapi_dir,
'--profile=posix'
]
cc_arguments = [
'-DPHYSAC_IMPLEMENTATION'
]
add_project_arguments (valac_arguments, language: 'vala')
add_project_arguments (cc_arguments, language: 'c')
project_dependency = [
valac.find_library ('raylib', dirs: vapi_dir),
valac.find_library ('rlgl', dirs: vapi_dir),
valac.find_library ('physac', dirs: vapi_dir),
cc.find_library ('raylib'),
cc.find_library ('m')
]
subdir ('examples/Camera3D')
subdir ('examples/SmoothPixel')
subdir ('examples/Physac')