/* * Keyman is copyright (C) SIL International. MIT License. * * Tiny frame console app to compile a .kmx from a .kmn */ #include #include #include 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; }