Skip to content

Conversation

kerberjg
Copy link
Collaborator

@kerberjg kerberjg commented Oct 1, 2025

Allows for easier switching between Release/Profile/Debug via --build-type <platform_id>:<build_type>,...
If not specified, defaults to the value in globals.json (release) ✨

Allowed values are:

  • release
  • profile
  • debug

This is later translated to CMAKE_BUILD_TYPE and MESON_BUILD_TYPE, set when initializing the environment for each config.

Raw value is passed as _BUILD_TYPE and used to name paths wherever applicable.

Switches from MinSizeRel to Release - the former applies optimizations that are known to be detrimental to performance, especially on mobile (in exchange for minor size gains)

Bonus changes! 💚

  • Fixes most error logs not being displayed in the CI
  • Added warning messages in a few spots
  • Deprecated configs/filament-debug-v1.65.2.json in favor of --build-type filament:debug
  • Enables CMAKE_EXPORT_COMPILE_COMMANDS in filament_view plugin

@kerberjg

This comment was marked as outdated.

@kerberjg

This comment was marked as outdated.

@kerberjg

This comment was marked as resolved.

@kerberjg kerberjg force-pushed the feature/fs-build_config_switch branch from 9b8d03e to 6fa81b0 Compare October 2, 2025 00:02
@kerberjg kerberjg marked this pull request as ready for review October 2, 2025 00:46
@kerberjg kerberjg requested a review from jwinarske October 2, 2025 00:46
@jwinarske

This comment was marked as resolved.

@kerberjg

This comment was marked as resolved.

@kerberjg kerberjg force-pushed the feature/fs-build_config_switch branch from 6fa81b0 to b04ca8b Compare October 13, 2025 17:00
@kerberjg kerberjg changed the title Parametrized build configs Parametrized build-type per config Oct 13, 2025
@kerberjg kerberjg force-pushed the feature/fs-build_config_switch branch 8 times, most recently from 38e3e26 to 8bd63f0 Compare October 13, 2025 19:31
- supports debug/profile/release
- switch via `--build-type <platform-id>:<build_type>,...`
- translates to CMAKE_BUILD_TYPE and MESON_BUILD_TYPE
- defaults to value in `configs/globals.json`
@kerberjg kerberjg force-pushed the feature/fs-build_config_switch branch from bcaa041 to 479f833 Compare October 14, 2025 17:43
@jwinarske jwinarske merged commit 2625d8a into v2.0 Oct 14, 2025
16 checks passed
@jwinarske jwinarske deleted the feature/fs-build_config_switch branch October 14, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants