mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
chore(core): move kmx_file.h to common
This commit is contained in:
parent
563c891a7d
commit
422e7227a6
5 changed files with 14 additions and 5 deletions
|
|
@ -5,11 +5,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "kmx_base.h"
|
||||
#include <km_types.h>
|
||||
|
||||
#ifdef KMN_KBP
|
||||
// TODO: move this to a common namespace keyman::common::kmx_file or similar in the future
|
||||
namespace km {
|
||||
namespace kbp {
|
||||
namespace kmx {
|
||||
#endif
|
||||
|
||||
/* */
|
||||
|
||||
|
|
@ -352,6 +355,8 @@ static_assert(sizeof(COMP_KEY) == KEYBOARDFILEKEY_SIZE, "COMP_KEY must be KEYBOA
|
|||
static_assert(sizeof(COMP_GROUP) == KEYBOARDFILEGROUP_SIZE, "COMP_GROUP must be KEYBOARDFILEGROUP_SIZE bytes");
|
||||
static_assert(sizeof(COMP_KEYBOARD) == KEYBOARDFILEHEADER_SIZE, "COMP_KEYBOARD must be KEYBOARDFILEHEADER_SIZE bytes");
|
||||
|
||||
#ifdef KMN_KBP
|
||||
} // namespace kmx
|
||||
} // namespace kbp
|
||||
} // namespace km
|
||||
#endif
|
||||
|
|
@ -37,6 +37,10 @@ message('compiler.get_id(): ' + compiler.get_id())
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
# TODO: Shared includes may use namespaces, etc which need future tidyup.
|
||||
# For now, we use KMN_KBP to inject the km::kbp::kmx namespace
|
||||
defns = ['-DKMN_KBP']
|
||||
|
||||
subdir('doc')
|
||||
subdir('include')
|
||||
subdir('src')
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
# Authors: Tim Eves (TSE)
|
||||
#
|
||||
|
||||
defns = ['-DKMN_KBP_EXPORTING']
|
||||
defns += ['-DKMN_KBP_EXPORTING']
|
||||
version_res = []
|
||||
|
||||
if compiler.get_id() == 'gcc' or compiler.get_id() == 'clang'
|
||||
|
|
@ -54,7 +54,7 @@ endif
|
|||
if compiler.get_id() == 'emscripten'
|
||||
warns = []
|
||||
flags = []
|
||||
defns = []
|
||||
defns = ['-DKMN_KBP']
|
||||
links = []
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ else
|
|||
warns = []
|
||||
endif
|
||||
|
||||
defns=['-DKMN_KBP_STATIC']
|
||||
defns+=['-DKMN_KBP_STATIC']
|
||||
tests = [
|
||||
['context-api', 'context_api.cpp'],
|
||||
['keyboard-api', 'keyboard_api.cpp'],
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <iterator>
|
||||
#include <string>
|
||||
#include "../../../src/kmx/kmx_xstring.h"
|
||||
#include "../../../src/kmx/kmx_file.h"
|
||||
#include <kmx_file.h>
|
||||
#include "../test_assert.h"
|
||||
|
||||
using namespace km::kbp::kmx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue