1project('kms++', 'cpp', 2 default_options : [ 3 'cpp_std=c++17', 4 ], 5 version: '0.0.0', 6) 7 8cpp = meson.get_compiler('cpp') 9cpp_arguments = [] 10 11if (cpp.get_id() == 'gcc' and 12 host_machine.cpu_family() == 'arm' and 13 cpp.has_argument('-Wno-psabi')) 14 cpp_arguments += [ 15 '-Wno-psabi', 16 ] 17endif 18 19if cpp.has_argument('-Wno-c99-designator') 20 cpp_arguments += [ 21 '-Wno-c99-designator', 22 ] 23endif 24 25add_project_arguments(cpp_arguments, language : 'cpp') 26 27libfmt_dep = dependency('fmt') 28 29libdrmomap_dep = dependency('libdrm_omap', required : get_option('omap')) 30 31if libdrmomap_dep.found() 32 add_global_arguments('-DHAS_LIBDRM_OMAP', language : 'cpp') 33endif 34 35if get_option('libutils') 36 add_global_arguments('-DHAS_KMSXXUTIL', language : 'cpp') 37endif 38 39subdir('kms++') 40subdir('kms++util') 41subdir('utils') 42subdir('kmscube') 43subdir('py') 44 45summary({ 46 'omapdrm extensions': omapdrm_enabled, 47 'kms++utils library': libutils_enabled, 48 'Python bindings': pybindings_enabled, 49 'kmscube': kmscube_enabled, 50 'Utilities': utils_enabled, 51 }, 52 section : 'Configuration', 53 bool_yn : true) 54