mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 17:36:00 +00:00
26 lines
550 B
C++
26 lines
550 B
C++
/*
|
|
* Keyman is copyright (C) SIL International. MIT License.
|
|
*
|
|
* Tiny frame console app to compile a .kmx from a .kmn
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include "kmcompx.h"
|
|
|
|
int WINAPI msgproc(int line, KMX_DWORD dwMsgCode, char* szText)
|
|
{
|
|
printf("line %d error %x %s\n", line, (unsigned int) dwMsgCode, szText);
|
|
return 1;
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
if(argc < 3)
|
|
{
|
|
puts("Usage: kmcompxtest infile.kmn outfile.kmx");
|
|
return 1;
|
|
}
|
|
|
|
return CompileKeyboardFile(argv[1], argv[2], TRUE, FALSE, TRUE, msgproc) ? 0 : 1;
|
|
}
|