mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-01 05:07:40 +00:00
Merge pull request #7159 from keymanapp/feat/core/7136-debug
feat(core): set -DDEBUG for debug 🙀
This commit is contained in:
commit
0e29be0c80
2 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ cc = meson.get_compiler('c')
|
|||
# For now, we use KMN_KBP to inject the km::kbp::kmx namespace
|
||||
defns = ['-DKMN_KBP']
|
||||
|
||||
# #define DEBUG when we are on a debug build
|
||||
if get_option('buildtype') == 'debug'
|
||||
add_global_arguments('-DDEBUG', language : 'cpp')
|
||||
endif
|
||||
|
||||
subdir('doc')
|
||||
subdir('include')
|
||||
subdir('src')
|
||||
|
|
|
|||
|
|
@ -15,8 +15,12 @@
|
|||
* @def KMXPLUS_DEBUG Set to 1 to enable debug output
|
||||
*/
|
||||
#ifndef KMXPLUS_DEBUG
|
||||
#if defined(DEBUG)
|
||||
#define KMXPLUS_DEBUG 1
|
||||
#else
|
||||
#define KMXPLUS_DEBUG 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace km {
|
||||
namespace kbp {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue