From ed8b08c676624a4c6c5e50224742e0bdf74aae50 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Thu, 21 Sep 2023 00:25:24 +0200 Subject: [PATCH] meson options: notify --- meson_options.txt | 1 + src/meson.build | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 5f7d11b..a255195 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 4b7e11a..f861dab 100644 --- a/src/meson.build +++ b/src/meson.build @@ -76,7 +76,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', @@ -87,6 +86,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',