mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 14:27:43 +00:00
37 lines
1.4 KiB
Bash
Executable file
37 lines
1.4 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.inc.sh"
|
|
## END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
builder_describe "Build devtools tool" clean configure build test
|
|
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/devtools/$WIN32_TARGET_PATH/devtools.exe
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
function do_clean() {
|
|
rm -rf obj manifest.res manifest.xml *.dproj.local version.res icons.RES icons.res *.identcache
|
|
}
|
|
|
|
function do_build() {
|
|
delphi_msbuild devtools.dproj "//p:Platform=Win32"
|
|
# "$WIN32_TARGET_PATH/buildunidata.exe" "$KEYMAN_ROOT/common/windows/data" "$KEYMAN_ROOT/common/windows/bin/data/unicodedata.mdb"
|
|
}
|
|
|
|
builder_run_action clean:project do_clean
|
|
builder_run_action configure:project configure_windows_build_environment
|
|
builder_run_action build:project do_build
|
|
# builder_run_action test:project do_test
|
|
|
|
# TODO
|
|
#: test-releasebuildcheck: build
|
|
# $(DEVTOOLS) -rt
|