Commit Graph

22 Commits

Author SHA1 Message Date
51f8217646 build: Use Cargo.lock included with the repo by default
This should fix some future problems with dependencies getting updated in a way that's unsupported by the build tools targeted by Squeekboard.
2022-09-01 17:04:25 +00:00
23b35733cb Add entry test using GTK4
This helps debugging GTK4 interaction issues
2022-01-20 10:36:13 +01:00
55cd225c74 entry: Add another input hint 2022-01-20 10:17:11 +01:00
e55ae67da6 entry: Only activate purpose timer when focused
This avoids verbose printing when the widget is never focused
2022-01-20 10:17:11 +01:00
79bc670ad0 entry: Mark as executable
Saves some typing
2022-01-20 10:17:11 +01:00
c54b6e2d3b ci: Make indentation close to original again 2021-12-17 11:21:19 +00:00
4a7dc799be ci: Fix formatting
At the same time, reduce indentation level on lists because otherwise the formatter is broken.
2021-12-16 14:03:16 +00:00
7a07f1616d ci: Include pre-build style check 2021-12-09 11:42:33 +00:00
f986f14220 ci: Reformat yaml file
Includes a formatter script
2021-12-09 11:42:12 +00:00
912fe0b7b7 entry: Add a random text entry field
This allows to test the case where the purpose changes but nothing else.
2021-12-02 09:19:50 +01:00
937638c582 entry: Set a margin on the grids
Less heavy on the eyes.
2021-12-01 14:40:55 +01:00
894191d3a0 entry: Use a scrolled window
This ensures all entries are reachable even with the OSK unfolded
2021-12-01 14:40:55 +01:00
dd708456ff Move style-check to separate script
This avoids having to copy out of .gitlab-ci.yml before submitting an MR
to do a style check.

Could become a meson target at some point.
2021-11-23 18:16:36 +01:00
ecfc45c2de build: Make compatible with Debian Bullseye
This commit is a bit bigger than it could have: Meson changes could have gone in separately from CI and Debian.

This commit looks more complicated than it should reasonably be. Alas, Cargo is a piece of work, and it doesn't let honest people just choose different versions of dependencies, leading to a cascade of misery. Several things were tried to curb the disaster:

- Cargo [feature] supports choosing dependencies, but doesn't support specifying dependency versions
- Cargo has a cfg() syntax in sections for choosing dependencies by build options, but it explicitly doesn't support selecting on features…
- Cargo allows choosing different dependencies based on features, so perhaps dependencies with different versions could live in stub crates pulled in as needed? Nope! If a dependency doesn't exist in the repo (and that's the point here), Cargo throws up its hands.

This means Cargo.toml needs to be generated based on the build type. More misery:

- we lose the simplicity of just doing `cargo.sh` for simple housekeeping like deps updates. HACKING.md was updated to reflect that. Perhaps that's inevitable - build options need to be like this.
- Some flaky adjustments needed in `cargo.sh` because of an additional argument that can be mistaken for an argument to the exec in `cargo run`.
- Specifying a custom `Cargo.toml` means Cargo can no longer find any tests, examples, benchmarks, or binaries, because it searches relative to the directory of `Cargo.toml`, which is now the build dir. Extra care needed to not forget about them now.

As soon as Cargo allows anything better for managing deps versions, the above should be undone in its favor.

Good side is that a couple bugs went away:

- build flags not always making it to Cargo
- arm64 builds were optional while they shouldn't
- test layouts in unit tests are loaded from an explicit directory now

The Bullseye versions of dependencies are canonical now, Buster considered legacy.
2020-06-24 15:51:21 +00:00
825409c97f Merge branch 'osk_entry' into 'master'
tools: Add GTK's INHIBIT_OSK flag to the entry tester

See merge request Librem5/squeekboard!290
2020-01-04 10:49:35 +00:00
12be3e980f Merge branch 'cleanup' into 'master'
Build cleanups

See merge request Librem5/squeekboard!287
2019-12-23 21:34:18 +00:00
1cffdda09d packaging: Install entty.py as squeekboard-entry 2019-12-16 18:13:24 +00:00
d9f284b19a build: Move building of squeekboard-test-layout to tools 2019-12-16 17:47:00 +00:00
ed602faeaf tools: Move entry.py 2019-12-16 17:46:42 +00:00
4ee8a91dfe build: Bring back squeekboard as a first class executable
With styles no longer being inconsistent, there's no need to override styles by default. The override script remains for PureOS packaging purposes.
2019-11-27 16:37:44 +00:00
0bfaa8cd7a debian: Wrap squeekboard in theme selector
This works around https://source.puri.sm/Librem5/squeekboard/issues/151 by providing a dark style to match the dark style of the layouts.
2019-11-13 14:07:23 +00:00
ea4bf3de29 tools: A theme override wrapper useful for the Librem5 2019-11-11 16:49:21 +00:00