]
if get_option('enable_npu_emul')
- ne_emul_dep = dependency('npu-engine-emul')
+ ne_emul_dep = dependency(
+ 'npu-engine-emul',
+ required: false
+ )
+ if not ne_emul_dep.found()
+ warning('falling back to the hardcoded dependency on "npu-engine-emul"')
+ ne_emul_dep = declare_dependency (
+ compile_args : ['-I/opt/trinity/include/npu-engine'],
+ link_args: ['-L/opt/trinity/lib', '-lnpu-engine-emul'],
+ )
+ endif
ne_core_npu_dep = declare_dependency(
sources : [ne_core_npu_src, 'NPUdrvAPI_emul.cc'],
dependencies : [ne_core_utils_dep, ne_emul_dep],