Evas GL common: Skip shaders generation if there is no change
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 12 May 2015 02:30:57 +0000 (11:30 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 12 May 2015 03:31:34 +0000 (12:31 +0900)
commit55eb75ad86d01af7840b8f9080670d34eb884749
treef40f93c56c68f1cdf725f3adda165f8747c5424f
parent9f29974292b1e1d5c09fd0c339f4980a12202c4b
Evas GL common: Skip shaders generation if there is no change

Based on a quick git diff we check that the glsl code has not changed.
This should fix out-of-tree builds and avoid all source modification
unless required.

When compiling from a tarball there should be no git tree (err 129),
or if there's one the files should not be checked in (ie. no diff).
If you changed the glsl files in a tarball... too bad for you.

If this is still not enough to fix the build, then go ahead and disable
the script from Makefile_Evas.am

I would like to note that the auto-generation during make is extremely
useful when working on the shaders, which is why I'd rather keep it enabled.

@fix
src/modules/evas/engines/gl_common/shader/evas_gl_enum.x
src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
src/modules/evas/engines/gl_common/shader/gen_shaders.sh
src/modules/evas/engines/gl_common/shader_3d/evas_gl_3d_shaders.x
src/modules/evas/engines/gl_common/shader_3d/gen_shaders_3d.sh