Darcy Wong
099900ea51
feat(common): builder.inc.sh inheritable options
...
Appending a `+` to a builder option will automatically pass that option to child scripts.
Applying #8371 to master branch and @darcywong00 will then re-apply to #7407
2023-03-08 10:33:35 +07:00
Marc Durdin
00017350d3
chore(common): clean up --debug usage in build scripts
...
Fixes #8373 .
Note that the core functionality requested in #8373 is already in place;
this commit just does some cleanup to make this easier to maintain in
the future:
* Uses `builder_is_debug_build` function to test for debug build
(instead of `builder_has_option --debug`, which would also work but
using the other function avoids typo issues with the option name).
* Renames `$_builder_debug` to `$_builder_debug_internal` to reduce
naming confusion
* Documents `$builder_debug`, `builder_is_debug_build`, and clarifies
usage of `--debug` option.
* Logs command line for dep builds (we could hide this in the future,
but it certainly doesn't hurt for now!)
2023-03-08 05:40:40 +07:00
Marc Durdin
334c316fd3
Merge pull request #8357 from keymanapp/chore/common/remove-vswhere
...
chore(common): remove vswhere
2023-03-07 19:02:38 +11:00
Marc Durdin
a02d48047c
Merge pull request #8344 from keymanapp/chore/common/cleanup-builder-echo
...
chore(common): cleanup build.inc.sh echo
2023-03-07 19:02:29 +11:00
Marc Durdin
f1985ad7a5
chore: address review comments
2023-03-07 09:54:22 +11:00
Marc Durdin
af4b2536bc
chore(common): remove vswhere
...
With #8287 , we no longer use a local copy of vswhere.exe but instead
rely on a standard location for it from the Visual Studio installer.
2023-03-03 04:50:25 +07:00
Marc Durdin
f325e9c63e
Merge pull request #8350 from keymanapp/fix/common/npm-publish
...
fix(common): fixup npm publish
2023-03-02 21:13:11 +11:00
Marc Durdin
b543b3f341
Update resources/build/npm-publish.inc.sh
...
Co-authored-by: Darcy Wong <darcy_wong@sil.org>
2023-03-02 16:43:24 +11:00
Marc Durdin
ddc447c7e7
fix(common): fixup npm publish
2023-03-02 12:33:18 +07:00
Marc Durdin
1bc31c8792
chore(common): handle pre-init builder_echo
2023-03-02 05:56:24 +07:00
Marc Durdin
06afdd262b
chore(common): cleanup build.inc.sh echo
...
Makes the output of log messages from builder scripts more consistent,
and uses color more effectively to highlight specific parts of lines.
2023-03-01 14:51:08 +07:00
Marc Durdin
3c3dcd8c93
chore(common): update builder docs for builder_describe_internal_dependency
2023-03-01 14:02:42 +07:00
Marc Durdin
269265c1f3
chore(common): update builder docs for builder_describe_internal_dependency
2023-03-01 14:00:11 +07:00
Marc Durdin
3c175bfc63
feat(core): run tests for current arch
2023-03-01 13:41:23 +07:00
Marc Durdin
e85bbaa069
feat(core): build both archs for mac
2023-03-01 13:02:48 +07:00
Marc Durdin
78f18c38ee
feat(core): mac fat library -- testing
2023-03-01 11:00:15 +07:00
Marc Durdin
572bd74783
fix(common): builder: skip dependency build for clean action
...
We should not attempt to build dependencies when running `clean`. Note:
if your `clean` action requires dependencies, then something is very,
very wrong and you should fix that!
2023-03-01 08:26:30 +07:00
Marc Durdin
b809a60936
Merge pull request #7054 from keymanapp/feature-ldml
...
epic: LDML keyboard support 🙀
2023-02-28 20:38:00 +11:00
Marc Durdin
b96e863885
chore: Merge branch 'feature-ldml' into chore/merge-master-into-feature-ldml-A17S7
2023-02-28 05:49:05 +07:00
Marc Durdin
e6ea381aba
chore(common): fix child build error handling
...
Fixes #8322 .
This issue was arising due to subshells masking the exit code.
set -e is not really to be trusted.
2023-02-27 15:09:42 +07:00
Marc Durdin
04189d2e3d
chore(common): avoid -v for testing arrays in builder
2023-02-27 14:05:11 +07:00
Joshua Horton
93da017e0a
chore(web): Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-02-27 09:14:34 +07:00
Joshua A. Horton
21bf13c682
chore(web): implements some suggestions per review
2023-02-27 08:49:47 +07:00
Joshua A. Horton
6695c03ed7
change(common): missed part of the suggested tweak
2023-02-24 08:02:55 +07:00
Joshua A. Horton
c4ff8a5da3
chore(common): fix + enhancement per review
2023-02-24 08:01:42 +07:00
Joshua A. Horton
42f03916ad
feat(common): adds warning if described output does not exist when finishing action
2023-02-23 16:18:18 +07:00
Marc Durdin
38603e8421
Merge pull request #8279 from keymanapp/chore/core/cleanup-meson-build
...
chore(core): cleanup meson build
2023-02-23 13:28:02 +11:00
Marc Durdin
e71d8d3d6d
chore: fail to builder_die
2023-02-23 09:13:14 +07:00
Marc Durdin
051243a9aa
chore: replace die with builder_die
2023-02-23 08:10:48 +07:00
Marc Durdin
a2ceb98948
chore: rewrite extra standard build script prolog
2023-02-23 08:09:41 +07:00
Marc Durdin
9eb472579c
chore: Merge branch 'feature-ldml' into chore/merge-master-to-feature-ldml-A17S7-2
2023-02-23 08:05:31 +07:00
Marc Durdin
c0ec8ba76c
Merge pull request #7861 from keymanapp/chore/common/stats
...
chore(common): stats script for planning
2023-02-23 09:06:00 +11:00
Marc Durdin
b968bcfdfd
Merge branch 'feature-ldml' into chore/core/cleanup-meson-build
2023-02-23 08:49:56 +11:00
Joshua A. Horton
ca1d85f9e5
chore(web): cleanup per PR review
2023-02-22 15:39:58 +07:00
Joshua A. Horton
2f065e0b89
change(common): fixes a builder error
2023-02-22 13:22:30 +07:00
Joshua A. Horton
9692ab9db2
chore(web): minor cleanup
2023-02-22 12:28:11 +07:00
Joshua A. Horton
2135420a0a
change(web): reworks Web build to #8198 - builds with parent-child pattern
2023-02-22 12:05:23 +07:00
Marc Durdin
ce864ea923
chore: update standard script prolog to use builtin instead of dirname
2023-02-22 11:04:15 +07:00
Marc Durdin
b0804dd2a4
chore: use builtin instead of dirname for perf
2023-02-22 10:59:11 +07:00
Marc Durdin
463c7ff907
chore: remove greadlink from standard script prolog
2023-02-22 10:43:06 +07:00
Marc Durdin
3005a82a8f
chore: update docs and non-standard readlink refs
2023-02-22 10:41:54 +07:00
Marc Durdin
e645b8665f
chore: Merge branch 'feature-ldml' into chore/A17S7-master-to-feature-ldml
...
* core/build.sh -- accept feature-ldml changes (remove call to get_builder_OS)
* developer/src/kmlmc/build.sh -- delete file
* linux/debian/rules -- accept master changes, fixup call to core/build.sh
* linux/ibus-keyman/tests/Makefile.am -- accept master changes, fixup call to core/build.sh
* linux/scripts/build.sh -- accept master changes, fixup call to core/build.sh
* linux/scripts/reconf.sh -- accept master changes
2023-02-22 08:00:08 +07:00
Marc Durdin
366279fc62
chore(common): define standard build path
2023-02-22 07:41:09 +07:00
Marc Durdin
19101c6a2a
chore(core): cleanup meson build
...
This updates our meson min version on Windows to 1.0, which means that
we can avoid having Visual Studio on the path, as meson can find it
anyway. With this change, we can eliminate the batch-wrapper for the
build, significantly improving build performance and simplifying the
scripts.
This also adds a change to disable tests for dependency builds of core,
along with the `--no-tests` command line option for doing builds without
tests.
Minor cleanup includes eliminating various warnings from meson.build
files, and standardizing WASM cross-platform build options for Windows.
2023-02-21 12:12:28 +07:00
Marc Durdin
f30f08ed92
Merge pull request #8173 from keymanapp/docs/build-utils-documentation
...
docs: builder.inc.sh improved documentation around dependencies
2023-02-20 21:06:54 +11:00
Marc Durdin
9819f1b05a
Update resources/build/build-utils.md
...
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2023-02-20 21:06:46 +11:00
Marc Durdin
6df6b0ef18
chore: remove log_error
2023-02-20 09:19:03 +07:00
Marc Durdin
501c317b24
chore: use builder_warn, remove log_warning
2023-02-20 09:18:26 +07:00
Marc Durdin
a004978863
chore: use builder_heading, remove echo_heading
2023-02-20 09:17:51 +07:00
Marc Durdin
4d53a277f3
chore: use builder_die, remove fail
2023-02-20 09:15:38 +07:00