1project('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 26link_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 34libfmt_dep = dependency('fmt') 35 36libdrmomap_dep = dependency('libdrm_omap', required : get_option('omap')) 37 38subdir('kms++') 39 40if get_option('libutils') 41 subdir('kms++util') 42endif 43 44if get_option('utils') 45 subdir('utils') 46endif 47 48subdir('py') 49 50if get_option('kmscube') 51 subdir('kmscube') 52endif 53