mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 09:55:32 +00:00
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by giving the scripts more appropriate names. Most build scripts should use builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh. Documented in resources/build/README.md. Renames: * resources/build/builder.inc.sh to resources/build/builder-full.inc.sh * resources/build/build-utils.sh to resources/build/builder-basic.inc.sh Other changes: * Moves Android-specific functions out of builder-basic.inc.sh and into android/build.sh. * Renames functions in builder-basic.inc.sh More functions may be moved from builder-basic.inc.sh into utils.inc.sh or other scripts in the future. Fixes: #14065 Build-bot: build all Test-bot: skip
39 lines
978 B
Bash
Executable file
39 lines
978 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
## START STANDARD BUILD SCRIPT INCLUDE
|
|
# adjust relative paths as necessary
|
|
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
|
|
. "${THIS_SCRIPT%/*}/../../../../../../resources/build/builder-full.inc.sh"
|
|
# END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
# Test builder_describe_outputs and dependencies
|
|
|
|
builder_describe "library test module" \
|
|
clean \
|
|
configure \
|
|
build
|
|
|
|
builder_parse "$@"
|
|
|
|
builder_describe_outputs \
|
|
configure:project out.configure \
|
|
build:project out.build
|
|
|
|
echo ...
|
|
|
|
if builder_start_action clean:project; then
|
|
rm -f out.configure out.build
|
|
builder_finish_action success clean:project
|
|
fi
|
|
|
|
if builder_start_action configure:project; then
|
|
echo " ... doing the 'configure' action for 'library'"
|
|
touch out.configure
|
|
builder_finish_action success configure:project
|
|
fi
|
|
|
|
if builder_start_action build:project; then
|
|
echo " ... doing the 'build' action for 'library'"
|
|
touch out.build
|
|
builder_finish_action success build:project
|
|
fi
|