diff --git a/meson.build b/meson.build index 6b3066b1..e3e4a395 100644 --- a/meson.build +++ b/meson.build @@ -31,5 +31,6 @@ endif executable(meson.project_name(), sources: all_sources, dependencies: [main_dependencies, binding_dependencies], - include_directories: include_dirs + include_directories: include_dirs, + gui_app: (get_option('debug') != false) ) diff --git a/meson_options.txt b/meson_options.txt index fa3903c6..d4031466 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,5 +2,6 @@ option('shared_fluid', type: 'boolean', value: false, description: 'Dynamically option('mri_version', type: 'string', value: '1.8', description: 'Version of MRI to link with') option('workdir_current', type: 'boolean', value: false, description: 'Keep current directory on startup') option('ruby_lib', type: 'string', value: 'ruby', description: 'Name of legacy Ruby library') +option('debug', type: 'boolean', value: false, description: 'Whether to debug information in the console') option('fix_essentials', type: 'boolean', value: false, description: 'Try to fix incompatibilities between Essentials and MKXP') \ No newline at end of file