mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-09 09:27: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
37 lines
1.5 KiB
Bash
Executable file
37 lines
1.5 KiB
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
|
|
|
|
builder_describe "Tool for validating klog is disabled for release builds" \
|
|
clean configure build test prepublish edit
|
|
builder_parse "$@"
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
source "$KEYMAN_ROOT/resources/build/win/environment.inc.sh"
|
|
|
|
builder_describe_outputs \
|
|
configure:project /resources/build/win/delphi_environment_generated.inc.sh \
|
|
build:project /common/windows/delphi/tools/test-klog/$WIN32_TARGET_PATH/test_klog.exe
|
|
|
|
builder_describe_internal_dependency \
|
|
prepublish:project build:project
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
function do_build() {
|
|
# verify that the klog module is disabled for release builds,
|
|
# so we always clean and rebuild
|
|
clean_windows_project_files
|
|
delphi_msbuild test_klog.dproj "//p:Platform=Win32"
|
|
}
|
|
|
|
builder_run_action clean:project clean_windows_project_files
|
|
builder_run_action configure:project configure_windows_build_environment
|
|
builder_run_action build:project do_build
|
|
# builder_run_action test:project do_test
|
|
builder_run_action prepublish:project "$WIN32_TARGET_PATH/test_klog.exe"
|
|
builder_run_action edit:project start test_klog.dproj
|