Changeset 167510 in webkit


Ignore:
Timestamp:
Apr 18, 2014 2:41:39 PM (10 years ago)
Author:
Martin Robinson
Message:

[GTK] Add llvmpipe (Mesa) to the JHBuild moduleset and force it when running layout tests
https://bugs.webkit.org/show_bug.cgi?id=131472

Reviewed by Philippe Normand.

  • Scripts/webkitpy/port/gtk.py:

(GtkPort.setup_environ_for_server): Use the LLVMPIPE_LIBGL_PATH to set the LD_LIBRARY_PATH
when running WebKitTestRunner with run-webkit-tests.

  • gtk/jhbuild.modules: Add Mesa to the modulelist so that the llvmpipe libGL is build, but not

installed.

  • gtk/jhbuildrc: Set the LLVMPIPE_LIBGL_PATH environment variable so that the test driver knows

how to properly set the LD_LIBRARY_PATH variable. We do this because it is much easier to
calculate the path in the jhbuildrc than in the test driver code. This simplifies things a great
deal.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r167494 r167510  
     12014-04-18  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] Add llvmpipe (Mesa) to the JHBuild moduleset and force it when running layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=131472
     5
     6        Reviewed by Philippe Normand.
     7
     8        * Scripts/webkitpy/port/gtk.py:
     9        (GtkPort.setup_environ_for_server): Use the LLVMPIPE_LIBGL_PATH to set the LD_LIBRARY_PATH
     10        when running WebKitTestRunner with run-webkit-tests.
     11        * gtk/jhbuild.modules: Add Mesa to the modulelist so that the llvmpipe libGL is build, but not
     12        installed.
     13        * gtk/jhbuildrc: Set the LLVMPIPE_LIBGL_PATH environment variable so that the test driver knows
     14        how to properly set the LD_LIBRARY_PATH variable. We do this because it is much easier to
     15        calculate the path in the jhbuildrc than in the test driver code. This simplifies things a great
     16        deal.
     17
    1182014-04-18  Alexey Proskuryakov  <ap@apple.com>
    219
  • trunk/Tools/Scripts/webkitpy/port/gtk.py

    r166239 r167510  
    104104        environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('lib')
    105105        environment['AUDIO_RESOURCES_PATH'] = self.path_from_webkit_base('Source', 'WebCore', 'platform', 'audio', 'resources')
     106
     107        llvmpipe_libgl_path = os.environ.get('LLVMPIPE_LIBGL_PATH')
     108        if llvmpipe_libgl_path:
     109            environment['LD_LIBRARY_PATH'] = '%s:%s' % (llvmpipe_libgl_path, os.environ.get('LD_LIBRARY_PATH', ''))
     110
    106111        self._copy_value_from_environ_if_set(environment, 'WEBKIT_OUTPUTDIR')
    107112        if self.get_option("leaks"):
  • trunk/Tools/gtk/jhbuild.modules

    r166288 r167510  
    3030      <dep package="gst-libav"/>
    3131      <dep package="xserver"/>
     32      <dep package="mesa"/>
    3233    </dependencies>
    3334  </metamodule>
     
    4950  <repository type="tarball" name="xorg"
    5051      href="http://xorg.freedesktop.org"/>
     52  <repository type="tarball" name="ftp.freedesktop.org"
     53      href="ftp://ftp.freedesktop.org"/>
    5154  <repository type="tarball" name="xmlsoft.org"
    5255      href="ftp://xmlsoft.org"/>
     
    332335  </autotools>
    333336
     337  <autotools id="mesa" autogenargs="--enable-xlib-glx --disable-dri" skip-install="true">
     338    <branch module="/pub/mesa/10.0.4/MesaLib-10.0.4.tar.bz2" version="10.0.4"
     339            checkoutdir="Mesa-10.0.4"
     340            repo="ftp.freedesktop.org"
     341            hash="sha256:ff6eb552becb25a318e53ac56b95a8c2d49e83ad674d87f52e811c0a20c25a40"/>
     342  </autotools>
     343
    334344</moduleset>
  • trunk/Tools/gtk/jhbuildrc

    r165485 r167510  
    3232# annotations sooner rather than later.
    3333autogenargs='--enable-introspection'
     34
     35if use_lib64:
     36    os.environ['LLVMPIPE_LIBGL_PATH'] = os.path.abspath(os.path.join(checkoutroot, 'Mesa-10.0.4', 'lib64'))
     37else:
     38    os.environ['LLVMPIPE_LIBGL_PATH'] = os.path.abspath(os.path.join(checkoutroot, 'Mesa-10.0.4', 'lib'))
Note: See TracChangeset for help on using the changeset viewer.