Commit graph

902 commits

Author SHA1 Message Date
Steven R. Loomis
0d4afa0dc5 feat(core): icu integration steps 🙀
- update docs

for #8495
2023-04-11 19:03:29 -05:00
Steven R. Loomis
05a30433a4 feat(core): icu integration steps 🙀
- only use pkg-config if the target system is linux
- delete unused directories

for #8495
2023-04-11 19:01:19 -05:00
Marc Durdin
035c447a31 chore(core): move test_assert.h and test_color.h to common 2023-04-10 15:21:45 +07:00
Marc Durdin
9152ab52e9
Merge branch 'master' into feat/core-8435-repertoire-test-epic-ldml 2023-04-10 15:15:00 +10:00
Marc Durdin
c5d79a9fb4
Merge pull request #7330 from keymanapp/feature-kmcompx
epic: kmcompx - kmcmpdll cross-platform compiler 🚑
2023-04-10 07:34:04 +10:00
Steven R. Loomis
d357f39fb7 fix(core): add a readme under core/subprojects 🙀
For: feat(core): integrate ICU4C into the build for ldml 🙀 #8495
2023-04-06 13:21:29 -05:00
Steven R. Loomis
e7b4eb4d9d fix(core): use pkgconfig on linux, else wrap 🙀
For: feat(core): integrate ICU4C into the build for ldml 🙀 #8495
2023-04-06 12:59:00 -05:00
Steven R. Loomis
fc3428227f fix(core): update repertoire test to use strings properly 🙀
For: feat(core): ldml support repertoire tests 🙀 #8435
2023-04-06 12:57:04 -05:00
Steven R. Loomis
8330baf05e fix(core): update test to summarize failures 🙀
for #8435
2023-04-05 16:05:37 -05:00
Steven R. Loomis
2826736353 feat(core): icu integration steps 🙀
- fallback to pkg-config if meson ≤ 0.57

for #8495
2023-04-05 13:54:30 -05:00
Steven R. Loomis
f86109f77b feat(core): icu integration steps 🙀
- fix integer cast
- comment out mention of v70
- icu is now required

for #8435
2023-04-05 13:53:58 -05:00
Steven R. Loomis
6bc70d832d
Update core/src/kmx/kmx_plus.h
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2023-04-05 13:28:18 -05:00
Steven R. Loomis
82944c447b
Update core/src/kmx/kmx_plus.h
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2023-04-05 13:27:57 -05:00
Steven R. Loomis
cee27a2521 feat(core): icu integration steps 🙀
- build fix

for #8495
2023-03-31 18:06:33 -05:00
Steven R. Loomis
0c9277c4da feat(core): icu integration steps 🙀
- workaround lack of patch_directory on old meson (need 0.55.0)
with a manually generated zip file
- remove an assert in ldml_test_source which is already caught as a test failure

for #8495
2023-03-31 17:16:58 -05:00
Steven R. Loomis
6d9377fed6 Merge remote-tracking branch 'upstream/master' into feat/core-8435-repertoire-test-epic-ldml 2023-03-31 13:20:19 -05:00
Steven R. Loomis
21cae0bda6 feat(core): icu integration steps 🙀
- reduce build further

for #8495
2023-03-31 13:17:43 -05:00
Steven R. Loomis
fc87334b44 feat(core): icu integration steps 🙀
- disable some failing repertoire tests
- see if a basic integration works

for #8495
2023-03-31 12:39:13 -05:00
Steven R. Loomis
f2b8b9b10d feat(core): check in icu-minimal.wrap and mesonfiles from wrapdb 🙀
License as per core/subprojects/packagefiles/icu-minimal/LICENSE.meson

Commit as the icu-7.2-3 tag of wrapdb at e9198790af

for #8495
2023-03-31 12:18:30 -05:00
Steven R. Loomis
f33dea20cf feat(core): icu integration escapade 🙀
for #8495
2023-03-30 18:16:06 -05:00
Marc Durdin
ef61cc3815
Merge pull request #8529 from keymanapp/refactor/common/shared-kmx-tests
refactor(common): move core baseline tests into common
2023-03-29 14:47:33 +11:00
Steven R. Loomis
1736b6fac7 fix(core): ldml use ja / pt keyboards out of ldml 🙀
For: #8161
2023-03-28 16:56:44 -05:00
Steven R. Loomis
9079ced75a chore(core): ldml update for abnt2/iso 🙀
- address review comments

For: #8161
2023-03-28 08:15:19 -05:00
Steven R. Loomis
7e0255e90c chore(resources): ldml update for abnt2/iso 🙀
- address review comments

For: #8161
2023-03-28 08:12:50 -05:00
Marc Durdin
4523282510
chore: fix comment
Co-authored-by: Darcy Wong <darcy_wong@sil.org>
2023-03-28 17:58:17 +11:00
Marc Durdin
20da826c43 chore(core): address review comments 2023-03-28 13:21:34 +07:00
Marc Durdin
c18ef54029 refactor(common): move core baseline tests into common
Decided to use the name `baseline` for this set of tests. They can be
used by any project in the repo now. Tests will be treated as shared,
and not modified (except in the case of a buggy test).

* Moves .kmn files, add `&NAME` line (don't use meson templating for
  these files)
* Generates reference .kmx files using kmcomp for use as a baseline with
  kmcmplib (kmc) tests, and for linux tests
* Updates references in core, kmcmplib, and linux builds
* Renames all the .kmn / .kmx to use a standardized, clean name format
  (this was needed for building packages in the core tests)
2023-03-28 05:20:45 +07:00
Steven R. Loomis
add18c474a fix(core): ldml test workaround for path issue 🙀
- I originally had the tests copied from resources/, but that broke under Windows. Working around by copying the files in git.  #8524 to do this the right way.

For: #8161
2023-03-27 08:28:33 -05:00
Steven R. Loomis
3612039d70 chore(resources): ldml update for abnt2/iso 🙀
- the test cases found an error in the xml. Fixed.
- added core test cases directly out of resources/standards-data

For: #8161
2023-03-24 13:58:10 -05:00
Marc Durdin
7a833c8c91 feat(core): use kmc to build kmx tests
Removes the Windows-only kmcomp.exe dependency, and instead now uses
kmc to always build .kmx files for unit tests.

debug_api.cpp was using an outdated .kmx file, which is why the line
number offsets have changed. (The perils of binary fixtures!)
2023-03-24 06:22:40 +07:00
Marc Durdin
084c9d68f0 chore(core): use kmc to build .kmn files 2023-03-23 14:03:37 +07:00
Marc Durdin
062b947363 chore: Merge branch 'feature-kmcompx' into chore/merge-master-into-feature-kmcompx-a17s9 2023-03-23 10:08:59 +07:00
Marc Durdin
549a8e009e chore(common): define BUILDER_CONFIGURATION env var 2023-03-23 09:21:55 +07:00
Marc Durdin
48bc338f26 chore: Merge branch 'feature-kmcompx' into chore/kmcompx-master-merge-a17s9 2023-03-21 13:51:25 +07:00
Steven R. Loomis
cd47909570 feat(core): ldml repertoire test 🙀
- wip: conditional for hasStrings

For: #8435
2023-03-16 15:55:32 -05:00
Steven R. Loomis
ab614677ce feat(core): ldml repertoire test 🙀
- wip: simple lookup for an exact key

For: #8435
2023-03-16 15:49:00 -05:00
Steven R. Loomis
ec68f6ce0f feat(core): ldml repertoire test 🙀
- wip: right now passes, because it emits the repertoire text as it goes

For: #8435
2023-03-16 14:28:51 -05:00
Marc Durdin
d1c8061b5f chore: Merge branch 'feature-kmcompx' into chore/merge-master-into-kmcompx 2023-03-16 12:29:17 +07:00
Steven R. Loomis
0693e6436d feat(core): ldml repertoire test 🙀
- icu4c as an optional dependency

For: #8435
2023-03-15 18:50:16 -05:00
Steven R. Loomis
3ca17be495 Merge remote-tracking branch 'upstream/master' into feat/developer-7234-vkey-value-epic-ldml 2023-03-15 17:59:17 -05:00
Steven R. Loomis
f7499238a2 fix(core): ldml more TODO-LDML fixes 🙀
- drop some TODO-LDMLs, document others.

For: #8069
2023-03-14 18:54:28 -05:00
Steven R. Loomis
769a6b9156 fix(core): ldml update fr-azerty for VKEY mapping 🙀
- update some vkey names, document why others are missing

For: #8413
2023-03-14 18:39:35 -05:00
Steven R. Loomis
cec04c4722 fix(core): ldml fix broken test cases 🙀
Getting even closer to using LDML files out of the box. All files except French are identical to CLDR once https://github.com/unicode-org/cldr/pull/2773 merges.

#7042
2023-03-14 17:38:30 -05:00
Steven R. Loomis
f7a2f075ee chore(core): ldml update tests to match latest ldml 🙀
- move hardware= attribute  into the form= attribute

#7042
2023-03-14 17:38:30 -05:00
Marc Durdin
534bd2a54b
Merge pull request #8416 from keymanapp/chore/common/build-script-performance
chore(common): build script performance improvements
2023-03-14 15:41:32 +11:00
Marc Durdin
92ed99c4d6 chore(common): build script performance improvements
Improves build script performance by:
* using built-ins wherever possible (e.g. string splitting)
* eliminating redundant code
* using absolute (to $KEYMAN_ROOT) rather than relative paths to avoid realpath
* removing unnecessary `npm run` calls

BEFORE                         | AFTER
-------------------------------|----------------------
time ./core/build.sh --help    |
real    0m2.116s               | real    0m0.874s
user    0m0.578s               | user    0m0.198s
sys     0m0.984s               | sys     0m0.289s
-------------------------------|----------------------
time ./web/build.sh --help     |
real    0m3.523s               | real    0m0.757s
user    0m1.166s               | user    0m0.320s
sys     0m2.273s               | sys     0m0.455s
-------------------------------|----------------------
time ./web/build.sh -d         |
real    1m34.750s              | real    0m59.974s
user    0m9.721s               | user    0m6.284s
sys     0m19.652s              | sys     0m13.202s

@keymanapp-test-bot skip
2023-03-13 07:18:09 +07:00
Marc Durdin
525d3853e1 refactor(core): consolidate wasm defs
Fixes #8010.

Note that #8398 moves other settings into a shared resources folder, and
once that hits master, it would be good to do another round of
consolidation to share the wasm defs in resources as well.
2023-03-10 13:50:24 +07:00
Marc Durdin
732e622b3f
Merge branch 'master' into chore/core/8395-breadth-first-build 2023-03-10 09:22:09 +11:00
Eberhard Beilharz
d0ec73825a
Merge pull request #8376 from keymanapp/chore/core/obsoleteOption
chore(core): Remove obsolete `--target-path` option
2023-03-09 16:27:23 +01:00
Marc Durdin
d7111eeaa1 chore(core): breadth-first build
Fixes #8395 for core.
2023-03-09 12:50:12 +07:00