Changeset 170040 in webkit


Ignore:
Timestamp:
Jun 16, 2014 7:26:36 PM (10 years ago)
Author:
yoon@igalia.com
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 Martin Robinson.

This patch reapplies r167510 with fixes to add llvm as a dependency for llvmpipe.

  • Scripts/webkitpy/port/xvfbdriver.py:

(XvfbDriver._start): Use the LLVMPIPE_LIBGL_PATH to set the LD_LIBRARY_PATH
when running WebKitTestRunner with the Xvfb driver.

  • gtk/install-dependencies: Add LLVM as a dependency to build llvmpipe.
  • 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:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r170039 r170040  
     12014-06-16  Gwang Yoon Hwang  <yoon@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 Martin Robinson.
     7
     8        This patch reapplies r167510 with fixes to add llvm as a dependency for llvmpipe.
     9
     10        * Scripts/webkitpy/port/xvfbdriver.py:
     11        (XvfbDriver._start): Use the LLVMPIPE_LIBGL_PATH to set the LD_LIBRARY_PATH
     12        when running WebKitTestRunner with the Xvfb driver.
     13        * gtk/install-dependencies: Add LLVM as a dependency to build llvmpipe.
     14        * gtk/jhbuild.modules: Add Mesa to the modulelist so that the llvmpipe libGL is build, but not
     15        installed.
     16        * gtk/jhbuildrc: Set the LLVMPIPE_LIBGL_PATH environment variable so that the test driver knows
     17        how to properly set the LD_LIBRARY_PATH variable. We do this because it is much easier to
     18        calculate the path in the jhbuildrc than in the test driver code. This simplifies things a great
     19        deal.
     20
    1212014-06-16  Tanay C  <tanay.c@samsung.com>
    222
  • trunk/Tools/Scripts/webkitpy/port/xvfbdriver.py

    r156640 r170040  
    7878        self._lock_file = "/tmp/.X%d-lock" % display_id
    7979
     80        server_name = self._port.driver_name()
     81        environment = self._port.setup_environ_for_server(server_name)
     82
     83        llvmpipe_libgl_path = os.environ.get('LLVMPIPE_LIBGL_PATH')
     84        if llvmpipe_libgl_path:
     85            environment['LD_LIBRARY_PATH'] = '%s:%s' % (llvmpipe_libgl_path, os.environ.get('LD_LIBRARY_PATH', ''))
     86
    8087        run_xvfb = ["Xvfb", ":%d" % display_id, "-screen",  "0", "800x600x%s" % self._xvfb_screen_depth(), "-nolisten", "tcp"]
    8188        with open(os.devnull, 'w') as devnull:
     
    8693        time.sleep(self._startup_delay_secs)
    8794
    88         server_name = self._port.driver_name()
    89         environment = self._port.setup_environ_for_server(server_name)
    9095        # We must do this here because the DISPLAY number depends on _worker_number
    9196        environment['DISPLAY'] = ":%d" % display_id
  • trunk/Tools/gtk/install-dependencies

    r169254 r170040  
    110110        libxfont-dev \
    111111        libxkbfile-dev \
     112        llvm \
    112113        python-dev \
    113114        ragel \
     
    207208        libtiff-devel \
    208209        libxkbfile-devel \
     210        llvm \
    209211        mesa-libEGL-devel \
    210212        ragel \
  • trunk/Tools/gtk/jhbuild.modules

    r167567 r170040  
    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 --with-gallium-drivers=swrast" skip-install="true">
     338    <branch module="/pub/mesa/10.2.1/MesaLib-10.2.1.tar.bz2" version="10.2.1"
     339            checkoutdir="Mesa-10.2.1"
     340            repo="ftp.freedesktop.org"
     341            hash="sha256:461277909207da689d8152cfbf9e182ea6f70e1e672ab64c67df83725c8d2b54"/>
     342  </autotools>
     343
    334344</moduleset>
  • trunk/Tools/gtk/jhbuildrc

    r167567 r170040  
    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.2.1', 'lib64'))
     37else:
     38    os.environ['LLVMPIPE_LIBGL_PATH'] = os.path.abspath(os.path.join(checkoutroot, 'Mesa-10.2.1', 'lib'))
Note: See TracChangeset for help on using the changeset viewer.