spiegel-keyman/developer/build.sh
Marc Durdin 0bd2ca4821 refactor(developer): kmc-kmw becomes component of kmc-kmn
Moves kmc-kmw to being a sub-component of kmc-kmn, as it can never be
independently instantiated anyway. Reorganized tests accordingly.

Note that c8 is currently disabled for kmw-compiler, until we add unit
tests for it.
2023-06-20 11:52:23 +07:00

41 lines
1.4 KiB
Bash
Executable file

#!/usr/bin/env bash
#
# Build Keyman Developer components
#
# TODO: convert existing Makefiles/ into build.sh scripts; for now,
# this only builds kmc and kmcmplib
#set -x
set -eu
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
################################ Main script ################################
builder_describe \
"Build Keyman Developer
**NOTE:** this only builds kmc and kmcmplib for now (TODO on other modules)" \
\
clean \
configure \
build \
test \
":kmcmplib=src/kmcmplib Compiler - .kmn compiler" \
":kmc-analyze=src/kmc-analyze Compiler - Analysis Tools" \
":kmc-kmn=src/kmc-kmn Compiler - .kmn to .kmx and .js Keyboard Module" \
":kmc-ldml=src/kmc-ldml Compiler - LDML Keyboard Module" \
":kmc-model=src/kmc-model Compiler - Lexical Model Module" \
":kmc-model-info=src/kmc-model-info Compiler - .model_info Module" \
":kmc-package=src/kmc-package Compiler - Package Module" \
":kmc=src/kmc Compiler - Command Line Interface"
builder_parse "$@"
builder_run_child_actions clean configure build test