# Project metadata project( '{{ name }}', # Project name '{{ exe }}', # Programming language license: 'MIT', # Project license meson_version: '>= 0.49.0', # Allowed meson versions to build the project default_options: ['{{ params }}', 'warning_level=3'], # C/Cpp language standard to use and warning level version: '0.1.0' # Project version ) # Gets compiler compiler = meson.get_compiler('{{ exe }}') # Sets compiler flags flags = [ '-pedantic' ] # Returns an array containing only the arguments supported by the compiler supported_arguments = compiler.get_supported_arguments(flags) # Adds the positional arguments to the compiler command line add_project_arguments(supported_arguments, language: '{{ exe }}') # Returns an object containing the directories considered in the project incs = include_directories('.', 'lib', 'cli') # Enters the specified subdirectories and executes their meson.build file. subdir('lib') subdir('cli') subdir('tests')