project('npu-engine', ['c', 'cpp'],
- version: '2.3.12',
- license: ['Proprietary'],
+ version: '2.5.0',
+ license: ['Apache-2.0'],
meson_version: '>=0.47.0',
default_options: [
'werror=true',
'-Wvla',
'-Wpointer-arith',
'-Wno-sign-compare',
+ '-Wno-packed-not-aligned'
]
foreach extra_arg : warning_c_flags
ne_common_inc = include_directories('include/common')
ne_host_inc = include_directories('include/host')
+ne_uapi_inc = include_directories('include/uapi')
# Check build platform
target_platform = get_option('target_platform')
add_project_arguments('-DENABLE_EMUL', language: ['c', 'cpp'])
endif
+if get_option('enable_npu_cuse')
+ add_project_arguments('-DENABLE_CUSE', language: ['c', 'cpp'])
+endif
+
if sysroot.startswith('/')
sysroot_inc_cflags_template = '-I@0@/usr/include@1@'
sysroot_inc = sysroot_inc_cflags_template.format(sysroot, '')
endif
subdir('src')
-subdir('tests')
subdir('utils')
subdir('plugins')
+subdir('tests')
# Set configuration to install .ini
ne_install_conf = configuration_data()
ne_install_conf.set('PREFIX_PROFILE', get_option('prefix_profile'))
ne_install_conf.set('LOG_DIR', get_option('log_dir'))
ne_install_conf.set('LOG_LEVEL', get_option('log_level'))
+ne_install_conf.set('MUTE_STDOUT', get_option('mute_stdout'))
# Install .ini
configure_file(input: 'npu-engine.ini.in', output: 'npu-engine.ini',