-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmeson.build
More file actions
42 lines (33 loc) · 998 Bytes
/
meson.build
File metadata and controls
42 lines (33 loc) · 998 Bytes
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
project ('Raylib-vala', [ 'vala', 'c' ], version: '4.2')
# Variables
source_dir = meson.current_source_dir ()
vapi_dir = source_dir / 'vapi'
include_dir = source_dir / 'include'
# 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 = [
'-I' + include_dir,
'-DRAYGUI_IMPLEMENTATION',
'-DPHYSAC_IMPLEMENTATION',
'-DRINI_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 ('raymath', dirs: vapi_dir),
valac.find_library ('rlgl', dirs: vapi_dir),
valac.find_library ('physac', dirs: vapi_dir),
valac.find_library ('raygui', dirs: vapi_dir),
cc.find_library ('raylib'),
cc.find_library ('m')
]
subdir('examples')