Commit 6714706b authored by satmandu's avatar satmandu Committed by GitHub

Use LTO for igt_gpu_tools

parent 4424c330
...@@ -3,22 +3,19 @@ require 'package' ...@@ -3,22 +3,19 @@ require 'package'
class Igt_gpu_tools < Package class Igt_gpu_tools < Package
description 'Tools for development and testing of the Intel DRM driver' description 'Tools for development and testing of the Intel DRM driver'
homepage 'https://gitlab.freedesktop.org/drm/igt-gpu-tools' homepage 'https://gitlab.freedesktop.org/drm/igt-gpu-tools'
version '1.25' @_ver = '1.25'
compatibility 'all' version "#{@_ver}-1"
source_url 'https://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-1.25.tar.xz' compatibility 'x86_64 i686'
source_url "https://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-#{@_ver}.tar.xz"
source_sha256 '40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11' source_sha256 '40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-armv7l.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-1-chromeos-i686.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-armv7l.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-1-chromeos-x86_64.tar.xz'
i686: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256({
aarch64: '51336627a5f9bb5a662785bbf5dff89a9be2b61b76a8c1312802ba2d1321539a', i686: 'eabf18c03916648a85b9f6211a197738ad51ad92900949cb257aeedc4e2bb2e3',
armv7l: '51336627a5f9bb5a662785bbf5dff89a9be2b61b76a8c1312802ba2d1321539a', x86_64: '72bfc16dbd9532d049a67a8a8c328b50d8f5764f6922445bfe9899129735fcd1'
i686: '367feaaf23ac996aef045a1749c4ade02297270cb2cfef325e132d965ffcb675',
x86_64: '83df59cfaf3e9c45f268b752ff3e7df823f367744a72d2b09c53ecc13f467ec4',
}) })
depends_on 'libdrm' depends_on 'libdrm'
...@@ -32,22 +29,18 @@ class Igt_gpu_tools < Package ...@@ -32,22 +29,18 @@ class Igt_gpu_tools < Package
depends_on 'peg' depends_on 'peg'
depends_on 'swig' => ':build' depends_on 'swig' => ':build'
depends_on 'gtk_doc' => ':build' depends_on 'gtk_doc' => ':build'
depends_on 'util_macros' => ':build'
depends_on 'xorg_proto' => ':build'
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dc_link_args='-fuse-ld=lld' \
-Db_asneeded=false \
-Ddocs=disabled \ -Ddocs=disabled \
-Dtests=disabled \ -Dtests=disabled \
-Doping=disabled \ -Doping=disabled \
-Drunner=disabled \ -Drunner=disabled \
builddir" builddir"
system "meson configure builddir" system 'meson configure builddir'
system "ninja -C builddir" system 'ninja -C builddir'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment