Commit graph

5633 commits

Author SHA1 Message Date
Olivier Goffart
e92dd7797d Rename some occurences 2022-02-02 12:26:55 +01:00
Simon Hausmann
7d297da2fc Rename the sixtyfps C++ namespaces 2022-02-02 12:11:27 +01:00
Simon Hausmann
5226feab01 Rename C++ pre-processor macros 2022-02-02 12:11:27 +01:00
Olivier Goffart
96d87b1c16 Generate the snapshot for the wip/rename branch 2022-02-02 11:44:12 +01:00
Simon Hausmann
c846633708 Rename C ffi functions 2022-02-02 11:12:34 +01:00
Olivier Goffart
7ee19cf7c0 syntax_updater: Allow for any "0.1.x" from version 2022-02-02 11:04:22 +01:00
Olivier Goffart
5ae1c3e1d5 C++ driver test: Fix linking against slint_cpp 2022-02-02 11:00:56 +01:00
Olivier Goffart
323259e3e6 CI: also test the most recent 0.1.6 in the syntax_updater test 2022-02-02 10:55:53 +01:00
Olivier Goffart
692171bf0c Change the 60 blocks to slint blocs in documentation comments 2022-02-02 10:51:42 +01:00
Olivier Goffart
4b29b2b10e CI: the syntax_updator also should load the old tests/helper_components 2022-02-02 10:49:34 +01:00
Simon Hausmann
95452ccab3 Fix calls to slint_target_sources
Use the .slint extension
2022-02-02 10:39:56 +01:00
Simon Hausmann
ef822cc1e8 Clean up target_sources macro
Finish the renaming inside
2022-02-02 10:39:38 +01:00
Olivier Goffart
388f200bdc Attempt to make the updater_test in the CI sill work with the old examples 2022-02-02 10:34:14 +01:00
Olivier Goffart
7a5330ac52 Re-enable and fix the tests driver after the .slint change 2022-02-02 10:20:12 +01:00
Simon Hausmann
865e4d5146 Fix linkage against C++ library for tests after the rename 2022-02-02 10:18:06 +01:00
Olivier Goffart
03534039d6 Replace more .60 by .slint
Mainly an automated change with
    git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"

and some manual checks
2022-02-02 10:12:31 +01:00
Olivier Goffart
d706d63ce1 Replace references to the .60 files that are now renamed with .slint 2022-02-02 10:12:31 +01:00
Olivier Goffart
0c0a783095 Rename all our .60 files to .slint 2022-02-02 10:05:45 +01:00
Simon Hausmann
3faeb8c523 janitor: next attempt at enabling the CI in the wip/rename branch 2022-02-02 10:04:50 +01:00
Simon Hausmann
b1a70f9e58 Rename the SixtyFPS CMake interface 2022-02-02 09:58:26 +01:00
Simon Hausmann
c333b4de2b Rename the sixtyfps-cpp crate 2022-02-02 09:27:11 +01:00
Simon Hausmann
7382ea1f2c Rename SIXTYFPS_EMBED_RESOURCES environment variable 2022-02-02 09:10:52 +01:00
Simon Hausmann
017da5b3b4 Rename the sixtyfps-compiler crate 2022-02-02 09:07:16 +01:00
Simon Hausmann
809fbfc7a6 Rename sixtyfps-node
This doesn't touch the documentation, just the package/API side
2022-02-01 22:17:35 +01:00
Olivier Goffart
476c7f5654 Add .slint to our check for license header 2022-02-01 19:20:12 +01:00
Olivier Goffart
8960dcd092 CI: temporarily change the branch from which we load the action
We didn't find a way to load the action from the current branch, so load them
from another branch
2022-02-01 19:05:10 +01:00
Olivier Goffart
46902a8662 Redirects and have a deprecated warning when importing sixtyfps_widgets.60 2022-02-01 19:01:28 +01:00
Olivier Goffart
0308f86cd4 Rename sixtyfps_widgets.60 to std-widgets.slint 2022-02-01 18:58:54 +01:00
Olivier Goffart
1a60171701 Allow loading .slint files in addition to .60 2022-02-01 18:58:54 +01:00
Simon Hausmann
2f73a27635 Rename the sixtyfps-interpreter crate 2022-02-01 18:11:25 +01:00
Simon Hausmann
cab22f8355 Rename the sixtyfps-compilerlib crate 2022-02-01 18:08:18 +01:00
Simon Hausmann
9494068201 Rename the sixtyfps-rendering-backend-selector crate 2022-02-01 18:06:49 +01:00
Simon Hausmann
f06c69bc2f Rename the sixtyfps-rendering-backend-mcu crate 2022-02-01 18:04:46 +01:00
Simon Hausmann
2e04b3c8b3 Rename the sixtyfps-rendering-backend-gl crate 2022-02-01 18:04:38 +01:00
Simon Hausmann
19eb3e671d Rename sixtyfps-rendering-backend-qt 2022-02-01 18:04:32 +01:00
Simon Hausmann
ad0c020aa4 Rename the sixtyfps-corelib crate 2022-02-01 18:04:30 +01:00
Simon Hausmann
8399de5c6a Rename the sixtyfps-corelib-macros crate 2022-02-01 18:03:47 +01:00
Simon Hausmann
0bd627cad6 Rename the common crate 2022-02-01 18:00:25 +01:00
Simon Hausmann
e5bf6e01df janitor: Fix MCU backend build
Follow-up to commit f31f4201c6
2022-02-01 16:30:24 +01:00
Simon Hausmann
f757545416 Revert "Use relative paths for GitHub CI workflows"
This reverts commit 3ee0efbd19. It works
in the main branch, it works in separate branches when starting
workflows manually, but it doesn't work when a CI run is started with a
merge request.
2022-02-01 16:09:33 +01:00
Simon Hausmann
3ee0efbd19 Use relative paths for GitHub CI workflows 2022-02-01 14:35:07 +01:00
Olivier Goffart
f9c3e7a8de C++ interpreter: first crash when invoking native callback
This was a regression following the move to the edition 2021.
The CallbackUserData was not capture in the lamda, its member were moved.
So the destructor was called right after it was set.
We must make sure we capture the whole CallbackUserData, so put the callback
inside of it. This also reduce a bit of code duplication at the same time.

Test the callback invokation with statefull lambda
2022-01-31 22:25:24 +01:00
Tobias Hunger
0d358251c9 Janitor: More clippy stuff 2022-01-31 20:59:45 +01:00
Tobias Hunger
cc568a63f5 Janitor: Fix stray @ in patterns 2022-01-31 20:59:45 +01:00
Tobias Hunger
842f75e653 [reorg]: Move api/sixtyfps-rs/sixtyfps-* into api/rs 2022-01-31 18:24:33 +01:00
Olivier Goffart
2813441cd9 CI: remove the examples from the workspace for the updater test 2022-01-31 17:45:11 +01:00
Olivier Goffart
38d7ac42eb Add compatibility feature to our public crates
We want to be able to put existing functionality behind a feature flag while keeping
the semver compatibility.
This is only possible if that new feature flag is enabled by default, but this is not
working if the users have done `default-features = false` in their Cargo.toml.
So we add new `compat-x-y-z` feature that is mandatory to have and which is
enforced with a `compile_error!`

Now, users that whishes to not have the default features must enable it explicitly.
Say we want only x11 but not qt and wayland, the user will do
```toml
sixtyfps = { version = "0.2", default-features = false, features = ["x11", "compat-0-2-0"] }
```

Now, imagine that in the version 0.2.3, we put the SVG support behind a feature flag.
we will do this in out Cargo.toml:

```toml
[features]
default = ["compat-0-2-0", "x11", "wayland"]
compat-0-2-0 = ["compat-0-2-3", "svg"]
compat-0-2-3 = []

svg = [...]
...
```

That way, the svg feature will be enabled by default for all the users who used previous version
of SixtyFPS, and people that want to disable "svg" can just change from compat-0-2-0 to
compat-0-2-3 in their Cargo.toml
2022-01-31 17:30:24 +01:00
Olivier Goffart
8762582fac document-features: Only use Cargo.toml.orig if the original don't have comments
git can create Cargo.toml.orig if there was a conflict. That file might then prevent
the compilation as it contains merge conflict and this crate cannot parse it.

So only use the .orig if the Cargo.toml file don't contains docs comments
2022-01-31 17:29:38 +01:00
Simon Hausmann
8ec315c941 Remove a doxygen #ifdef
Remove the duplicated definition of the IntSize struct and instead
generate it via cbindgen into the public API.
2022-01-31 17:19:47 +01:00
Olivier Goffart
8e39eab49f document-features: Allow for comments after [features] 2022-01-31 16:38:11 +01:00