diff --git a/meson_options.txt b/meson_options.txt index 5f7d11bd..a2551956 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -12,3 +12,4 @@ option('mangoapp', type: 'boolean', value : false) option('mangohudctl', type: 'boolean', value : false) option('mangoapp_layer', type: 'boolean', value : false) option('tests', type: 'feature', value: 'auto', description: 'Run tests') +option('with_notify', type: 'feature', value: 'enabled') diff --git a/src/meson.build b/src/meson.build index 062a67cd..838e273f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -66,7 +66,6 @@ if is_unixy or cpp.get_id() == 'emscripten' 'cpu.cpp', 'memory.cpp', 'iostats.cpp', - 'notify.cpp', 'elfhacks.cpp', 'real_dlsym.cpp', 'pci_ids.cpp', @@ -77,6 +76,10 @@ if is_unixy or cpp.get_id() == 'emscripten' 'intel.cpp' ) + if get_option('with_notify').enabled() + vklayer_files += 'notify.cpp' + endif + opengl_files = files( 'gl/glad.c', 'gl/gl_renderer.cpp',