Commit graph

56 commits

Author SHA1 Message Date
Simon Hausmann
2d66c03176 embedded ci: Fix failing docker container builder
Revert 2b1e19a93a now that the archives are fixed and the pinned versions aren't available anymore.
2025-04-23 08:16:10 +02:00
Simon Hausmann
2b1e19a93a Fix failing apt-get install in cross containers
linux-libc-dev was updated for amd64 but not for the others, but both have to have the same version. Pin to the last known working version.
2025-04-17 10:08:50 +02:00
Simon Hausmann
ec88305867 Update Skia Bindings
This allows reverting 18db3210d6 and

Fixes #6615
2025-02-23 17:11:52 +01:00
Simon Hausmann
f3555361e6 cross: Add ninja-build to the docker images
Useful for future Skia builds that don't bring their own copy of ninja anymore.
2025-02-23 13:21:24 +01:00
Simon Hausmann
0649f4b8c5 Build weather demo for Torizon 2024-12-03 18:28:58 +01:00
Simon Hausmann
408d816fc8
Fix Torizon demo image build
The top-level directory demos exists now, that clashed.
2024-11-25 16:14:54 +01:00
Simon Hausmann
a3e2076bd3 Add home-automation to Torizon demo image 2024-11-13 15:10:06 +01:00
Simon Hausmann
e1e4844f65 Cross: Add python3-pip to the cross build environments
Could be useful for python binary wheels
2024-06-18 17:32:44 +02:00
Aurindam Jana
3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Tasuku Suzuki
9ca5c63583 Fix build for raspberry pi with cross
slint needs openssl to build it.

The system library `openssl` required by crate `openssl-sys` was not found.
The file `openssl.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
PKG_CONFIG_PATH contains the following:
    - /usr/lib/arm-linux-gnueabihf/pkgconfig

HINT: you may need to install a package such as openssl, openssl-dev or openssl-devel.
2024-05-20 08:48:51 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License (#4994)
Updated the version from 1.1 to 1.2 
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Simon Hausmann
eebfbcd2a0 Fix linuxkms cross builds with latest pkg-config
Explicitly allow for cross-compilation with pkg-config to fix the failing libudev-sys builds.
2024-03-06 13:24:00 +01:00
Simon Hausmann
4cf94f449b Torizon demos: Update command line for linuxkms and default to energy-monitor
The monitor scales better to different screen resolutions.
2024-03-01 09:45:52 +01:00
Simon Hausmann
e214b3b306 Torizon: Fix runtime container
- Don't overwrite the existing vivante drivers by installing libgbm
- Fix SLINT_BACKEND to select the correct renderer
2024-02-29 18:47:53 +01:00
Simon Hausmann
31298d122f Torizon demos: Fix gbm linkage for linuxkms backend 2024-02-29 18:00:28 +01:00
Simon Hausmann
342b55442b Compile the Torizon demos with the linuxkms backend enabled 2024-02-29 17:34:18 +01:00
Simon Hausmann
c6534af1d1 Fix cross build of rust-skia in cross docker containers
Since skia-bindings-0.71.0, bindings.cpp includes SkFontMgr_fontconfig.h, which in turn includes fontconfig/fontconfig.h.

In cross docker containers, the fontconfig headers are installed in /usr/include - there's no sysroot.

For the actual build of bindings.cpp, this is fine - gcc will search in /usr/include and find it.

For the bindgen phase, certain clang versions do not look in -I/usr/include by default when a --target is present - generally a sensible approach probably. However in this very setup, it's okay, so teach bindgen about it by setting BINDGEN_EXTRA_CLANG_ARGS_target. Typically that's used to pass for example `--sysroot=`, but we're using it to explicitly add /usr/include.
2024-02-29 15:21:12 +01:00
Simon Hausmann
e4c087c5b0 Update Skia Rust Bindings
See https://github.com/rust-skia/rust-skia/releases/tag/0.70.0 for a list of changes.

The main change for us is that the D3D API was ported to the modern windows rust crate.

(cherry picked from commit f809b3ff41)

The previous attempt at merging this surfaced build issue for source
builds with Skia, due to the use of an old git version that doesn't
understand the new --path-format=relative option the git-sync-deps.py
script uses with git rev-parse, as well as the new permission checking
that breaks with docker volumes where ~/.cargo is mapped to /cargo and
the skia-bindings build performs additional git clones in there, where the
resulting user ids will differ.

Work around the former by upgrading git, and the latter by adding a
wildcard - sadly there's no recursive sub-directory option.

This new version also removes ureq from the dependency tree, which means
we can revert commit 212e28071c
2024-01-31 15:18:54 +01:00
Simon Hausmann
fb41ccf183 Fix build of cross Docker images
Disable the interactive debconf frontend.
2023-12-11 16:00:10 +01:00
Simon Hausmann
7b132cdf35 Install libgbm-dev in the cross containers
Another required dependency for linuxkms backend builds
2023-12-11 15:58:40 +01:00
Simon Hausmann
5d9f824d90 Add libinput-dev to the docker containers used for cross builds 2023-12-11 15:25:35 +01:00
Simon Hausmann
b0483a2aea Fix creation of C++ docker image
Don't get stuck at a debconf prompt
2023-10-13 10:38:03 +02:00
Olivier Goffart
3a807e46c1
Renderer feature refactor 2023-07-27 19:11:24 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
Simon Hausmann
27af1aa3fa
Prospective fix for Torizon 6 build 2023-06-16 23:01:43 +02:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Tobias Hunger
04d1229685 Fix licnese information using xtask 2023-06-16 09:14:20 +02:00
Olivier Goffart
6441968a43 Janitor: Remove trailing spaces in most files 2023-05-04 08:14:28 +02:00
Simon Hausmann
bfb97b15d0 janitor: Upgrade Torizon demos to Torizon Core 6 2023-04-21 15:27:30 +02:00
Simon Hausmann
a490e3a918 Allow specifying a weather API key for the torizon demos 2023-03-08 12:09:18 +01:00
Simon Hausmann
5a0259b858 CI: Add the energy monitor to the demo builds for embedded and WASM 2023-02-27 10:10:07 +01:00
Simon Hausmann
b8a997ce6b Add noto fonts to the torizon container
This fixes missing emojis and special characters, and generally makes sense for such a container.
2023-02-16 10:51:38 +01:00
Simon Hausmann
2dbfda9f5b Improve container label further 2023-02-08 16:06:35 +01:00
Simon Hausmann
96348d2c9f Provide labels and repo for Torizon docker containers 2023-02-08 16:02:41 +01:00
Simon Hausmann
b609d08446 Fix demos no showing up on Torizon
winit panics when libxkbcommon0 is not installed on the system
2023-02-08 15:04:49 +01:00
Simon Hausmann
67e88db328
Add missing license headers 2023-01-04 18:16:44 +01:00
Simon Hausmann
e2a5f621cf Prospective fix for build of docker torizon demos when there's no tty 2023-01-04 17:29:02 +01:00
Simon Hausmann
d13712c121 Add binaries for our Rust demos in a Torizon container 2023-01-04 17:24:11 +01:00
Simon Hausmann
8edc7f669a Add missing copyright and license header 2023-01-02 16:50:49 +01:00
Simon Hausmann
83f25b200a Add a C++ friendly docker build file
This takes an existing cross-friendly image and adds cmake, ninja, cargo,
and rust. It also enables dlopen linkage for the compiler.
2023-01-02 15:33:47 +01:00
Simon Hausmann
1c2b102343 Bump remaining Docker files to include clang and a new Ubuntu base 2022-10-05 15:22:11 +02:00
Simon Hausmann
6edf210473 Bump docker armv7 image to include Skia dependencies
Use a newer base image from cross git and install clang.
2022-10-05 13:25:23 +02:00
a1ecbr0wn
f8f2add05b Added Copyright header to Dockerfile.x86_64-unknown-linux-gnu 2022-04-29 08:18:04 +08:00
a1ecbr0wn
1de723ae84 x86_64 linux docker build 2022-04-29 08:18:04 +08:00
a1ecbr0wn
c842ce7843 x86_64 linux docker build 2022-04-29 08:18:04 +08:00
Simon Hausmann
b0b6e4d077 Prospective fix for failing embedded build on Linux
When cross-compiling the Rust crate, we depend on slint-macros, which is a host build.
That in turn depends on the compiler lib, which on
Linux depends on a host fontconfig.
2022-03-22 15:13:53 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Simon Hausmann
f4dbd6e423 Use new riscv64 docker image
It was published a few minutes ago
2022-02-08 09:33:58 +01:00
Tobias Hunger
bfca0e3573 Mass update copyright messages to be more REUSE compliant 2021-12-22 10:06:12 +01:00