You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not invoke "synfig" for rendering icons at build time #703
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.
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.
Activity
[-]Do not invoke "synfig" for rendering icons[/-][+]Do not invoke "synfig" for rendering icons at build time[/+]ice0 commentedon Jan 11, 2019
I support that. Also, where there is already a ./configure --without-images flag for Synfig Studio
blackwarthog commentedon Jan 26, 2019
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?
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.
morevnaproject commentedon Jun 23, 2019
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.