<br><br><div class="gmail_quote">On Thu, Apr 29, 2010 at 9:54 AM, Brian Paul <span dir="ltr">&lt;<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Was: &quot;Merging GLES1/2 to mesa/main&quot;<br>
<br>
Chia-I Wu wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/4/29 Kristian Høgsberg &lt;<a href="mailto:krh@bitplanet.net" target="_blank">krh@bitplanet.net</a>&gt;:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Yeah, I noticed... I don&#39;t have a good answer.  I guess core mesa<br>
doesn&#39;t generate on the fly because we don&#39;t want to require python as<br>
part of the build process(?) and also so that when we distribute mesa,<br>
all the files are in the tarball.  I don&#39;t know if we can move to just<br>
generate everything, but we can always just generate the es1 and es2<br>
api files and commit them.  That would solve the ordering issue you<br>
mention below too.<br>
</blockquote></blockquote>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am not a fan of having generated sources in git, but I don&#39;t have a strong<br>
opinion here.  Especially when I do not have a better solution :)<br>
<br>
Ideally, I would like to have python a requirement for developers.  And those<br>
sources are generated when making a release tarball so that python is not a<br>
requirement for users.<br>
</blockquote>
<br>
I&#39;d be in favor of that (requiring Python to build Mesa).  Afterall, it&#39;s already needed for building with SCons.<br>
<br>
Karl Schultz (if you&#39;re reading this), would this be hard to deal with on Windows with MSVC project files?<br>
<br>
Also note that we have some lex/yacc-generated files in Mesa too.  I&#39;d leave those as-is for now.<br>
<br>
-Brian<br></blockquote></div><br>It is probably doable.  Visual Studio allows the specification of &quot;pre-build&quot; or &quot;custom-build&quot; steps that can include invoking any external commands.  This is how the predefined shaders get built in 7.8.  I&#39;d just have to create the appropriate build steps to generate the required files.  These build steps would presumably call a python executable with the name of the python script and parameters.<br>
<br>The catch is that anyone wanting to build this would need to install python on the Windows box.   I see (and have installed) ActivePython 2.6.5.12 from <a href="http://activestate.com">activestate.com</a>.  I suppose that there may be other choices.  But installing this package adds the Python binaries to the users PATH, which may help avoid needing to have the user config the build step to locate Python.<br>
<br>The only downside I see is the new requirement of installing Python for people using the Visual Studio.  I don&#39;t regard that as a show-stopper, IMHO.<br><br>What version of Python is needed to run these build scripts?  Are there any other prerequisites?<br>
<br>Karl<br><br>