José Fonseca pisze: > On Thu, 2009-12-10 at 08:31 -0800, Jose Fonseca wrote: > >> Module: Mesa >> Branch: glsl-pp-rework-2 >> Commit: 491f384c3958067e6c4c994041f5d8d413b806bc >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=491f384c3958067e6c4c994041f5d8d413b806bc >> >> Author: José Fonseca <jfons...@vmware.com> >> Date: Thu Dec 10 16:29:04 2009 +0000 >> >> scons: Get GLSL code building correctly when cross compiling. >> >> This is quite messy. GLSL code has to be built twice: one for the >> host OS, another for the target OS. >> > > Michal, > > I managed to get linux->windows cross compilation working again, but it > was *very* complicated, because src/glsl/{pp,cl} has to be built twice > -- one for the host os, another for the target os --, therefore we must > ensure the .o and .a files are stored in different places. > > It's really messy and ugly, and any Linux distribution which uses cross > compilers as part of their build process will have a hard time to > package this. > > Is this absolutely necessary? > > > No, it isn't. Another option is to write a python script that converts the .gc files into headers containing string literals and compile the library from that on runtime. I should be able to produce that script when I get some free time on my shoulders, and in the meantime use the existing solution. Thanks for helping me with that!
------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev