blob: cdc8cab833887768b0f577114bfa16cd82f17091 [file] [log] [blame]
Tomi Valkeinenccd3eb02020-09-05 10:54:18 +03001project('kms++', 'cpp',
2 default_options : [
3 'cpp_std=c++17',
4 ],
5)
6
7cpp = meson.get_compiler('cpp')
8cpp_arguments = []
9
10if (cpp.get_id() == 'gcc' and
11 host_machine.cpu_family() == 'arm' and
12 cpp.has_argument('-Wno-psabi'))
13 cpp_arguments += [
14 '-Wno-psabi',
15 ]
16endif
17
18if cpp.has_argument('-Wno-c99-designator')
19 cpp_arguments += [
20 '-Wno-c99-designator',
21 ]
22endif
23
24add_project_arguments(cpp_arguments, language : 'cpp')
25
Tomi Valkeinen70265482020-09-29 16:43:35 +030026link_arguments = []
27
28if get_option('static-libc')
29 link_arguments += ['-static-libgcc', '-static-libstdc++']
30endif
31
32add_global_link_arguments(link_arguments, language : 'cpp')
33
Tomi Valkeinenfdffbcd2020-12-01 11:25:52 +020034libfmt_dep = dependency('fmt')
Tomi Valkeinenccd3eb02020-09-05 10:54:18 +030035
Tomi Valkeinenccd3eb02020-09-05 10:54:18 +030036libdrmomap_dep = dependency('libdrm_omap', required : get_option('omap'))
37
38subdir('kms++')
Tomi Valkeinencda4a492020-10-20 16:34:57 +030039
Tomi Valkeinenb12aab52020-12-18 15:01:45 +020040if get_option('libutils')
Tomi Valkeinencda4a492020-10-20 16:34:57 +030041 subdir('kms++util')
Tomi Valkeinenb12aab52020-12-18 15:01:45 +020042endif
43
44if get_option('utils')
Tomi Valkeinencda4a492020-10-20 16:34:57 +030045 subdir('utils')
46endif
47
Tomi Valkeinenccd3eb02020-09-05 10:54:18 +030048subdir('py')
49
50if get_option('kmscube')
51 subdir('kmscube')
52endif