Skip to content

Do not invoke "synfig" for rendering icons at build time #703

Open

Description

@morevnaproject

As a further improvement of Synfig's build system and ongoing migration to Cmake I proposing the following:

At the moment, during build time of Synfig Studio all ".sif" files are rendered to ".png" (icons and splash-screen image). This is done by calling Synfig CLI tool.

This puts additional complexity when we do cross-compilation of Synfig. I.e. when compiling Windows version on Linux we have to compile native Linux version of synfig-core first (which will be used for rendeing .sif files) and only then we can cross-compile synfig-core/synfig-studio.

It would be better to include pre-rendered .png files and avoid calling synfig CLI during build time.

For keeping .png files up to date we can set up Travis job, which will build synfig-core and to ".sif"->".png" rendering for all files.

I am proposing to implement this change for Cmake system only, as Autotools system is going to be deprecated eventually.

@ice0 @blackwarthog @ThaFireDragonOfDeath


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. changed the title [-]Do not invoke "synfig" for rendering icons[/-] [+]Do not invoke "synfig" for rendering icons at build time[/+] on Jan 11, 2019
  2. ice0 commented on Jan 11, 2019

    @ice0
    Collaborator

    I support that. Also, where there is already a ./configure --without-images flag for Synfig Studio

  3. blackwarthog commented on Jan 26, 2019

    @blackwarthog
    Collaborator

    Ok. I try to explain why think that sources of icons is good, and prerendered icons is bad (i do not insists - just my opinion).

    One. Icons rendering in most cases is an our alpha and beta tests.

    You may say - "We may introduce a test phase".
    I'll answer - users will never run it. Because tests implies much more time then just build, and actually time for test will grow. The current compilation process forces us to keep a good rendering speed, because...

    Two. it's our benchmark, which will be always actual and in active usage.

    Three. Icons only in sif/sifz pushes us to use Synfig Studio for painting of icons. In other case we (are lazy) will use GIMP/Krita/Inkscape and save as PNGs to prerender folder. Instead of making drawing workflow in Synfig better.

    Four. Why anybody want to build synfig from source?

    • To use latest version
    • To be sure that the program does only things that declared.
      For first case rendering of icons takes ~10% of whole build time - not so long. For second case - build icons from sources is proper way.

    The problems is a crosscompilation, and size of our build directory in morevna-builds. To make crosscompilation better and size of build folder smaller i suggest to remove boost - we will free more then gigabyte of disk space and rescue a brains of potential maintainers.

    And i don't tell about burden (i've learned a new word, you may congrats me :) of synchronizing source SIFs and prerendered PNGs.

    Five. Icons for our program created in this program and rendered by this program right now - it's so cute.

    -wiki- - -36058

  4. added this to the v1.4.0 milestone on Feb 14, 2019
  5. morevnaproject commented on Jun 23, 2019

    @morevnaproject
    MemberAuthor

    Well, actually my idea was to setup a CI job, which will automatically re-generate icons (from source) when any icon changed (and commits them back to repository). Yes, this doesn't tracks regressions in code. But for tracking code regressions we have https://github.com/synfig/synfig-tests-regressions.

  6. modified the milestones: v1.4.0, v1.6.0 on Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions