Commit 4db026be authored by satmandu's avatar satmandu Committed by GitHub

Vulkan updates (#5136)

* vulkan_headers -> 1.2.170

- use Ninja

* vulkan_icd_loader -> 1.2.169

- Use ninja
parent 0a198d80
...@@ -3,40 +3,37 @@ require 'package' ...@@ -3,40 +3,37 @@ require 'package'
class Vulkan_headers < Package class Vulkan_headers < Package
description 'Vulkan header files' description 'Vulkan header files'
homepage 'https://github.com/KhronosGroup/Vulkan-Headers' homepage 'https://github.com/KhronosGroup/Vulkan-Headers'
@_ver = '1.2.168' @_ver = '1.2.170'
version @_ver version @_ver
compatibility 'all' compatibility 'all'
source_url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v#{@_ver}.tar.gz" source_url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v#{@_ver}.tar.gz"
source_sha256 'ec6a69836a8cd413f89071a9b978d0547849192538550c706a8e560089d59cb2' source_sha256 '6fa84897197bd72cf4b1a686c903df67fc0fe108e4ed02e6adb3d72c468f1c1f'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.168-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.168-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.168-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.168-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '288faae9c1b306bdc0cc1d5f2828557daeb2b19d5eb195b0b413933612aad4a9', aarch64: 'c91cdf5912c17199838f36df1cfb8f1c225a747f177ef81383c0fbef330974d4',
armv7l: '288faae9c1b306bdc0cc1d5f2828557daeb2b19d5eb195b0b413933612aad4a9', armv7l: 'c91cdf5912c17199838f36df1cfb8f1c225a747f177ef81383c0fbef330974d4',
i686: '9c0b47c0c75ba355ead9e62164ba2506fd49f8bae172430d0b9c8caf44077b08', i686: '325276ef0c915d261c9745b587667e7f316379fc697fd7747ecf63733e39584a',
x86_64: '9036ea7177c6d7f3529e936820c50df0f813cc454a68af0c33215f3ddd6f71da', x86_64: '7d53e53b6ec7afc74e8b4d5dea6b57a6b2debdd6d4be72a72e48601272c4caa8'
}) })
def self.build def self.build
Dir.mkdir 'build' Dir.mkdir 'builddir'
Dir.chdir 'build' do Dir.chdir 'builddir' do
system "cmake -DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} \ system "cmake \
-DCMAKE_INSTALL_LIBDIR=#{CREW_LIB_PREFIX} \ -G Ninja \
-DCMAKE_BUILD_TYPE=Release \ #{CREW_CMAKE_OPTIONS} \
.. && make" .."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
Dir.chdir 'build' do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system 'make',
"DESTDIR=#{CREW_DEST_DIR}",
'install'
end
end end
end end
...@@ -3,25 +3,25 @@ require 'package' ...@@ -3,25 +3,25 @@ require 'package'
class Vulkan_icd_loader < Package class Vulkan_icd_loader < Package
description 'Vulkan Installable Client Driver ICD Loader' description 'Vulkan Installable Client Driver ICD Loader'
homepage 'https://github.com/KhronosGroup/Vulkan-Loader' homepage 'https://github.com/KhronosGroup/Vulkan-Loader'
version '1.2.165' @_ver = '1.2.169'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/KhronosGroup/Vulkan-Loader/archive/v1.2.165.tar.gz' source_url "https://github.com/KhronosGroup/Vulkan-Loader/archive/v#{@_ver}.tar.gz"
source_sha256 'cee0bca20c1665d944bdb310795e92401062228012f503e0b89d1ca5ac9a85d2' source_sha256 'e8413d6244245e5322a91fa204415115941c5396b892ef28a13152af635c5ca4'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.165-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.169-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.165-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.169-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.165-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.169-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.165-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_icd_loader-1.2.169-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '111892eecd85e7df76077ba8dd3856da3da6f33b733fa29fb01aa468e954d84e', aarch64: 'b5e441f3f7c9959ae0fc2a9b00bbcc4d5861068687c4174f500b3d1769f08e19',
armv7l: '111892eecd85e7df76077ba8dd3856da3da6f33b733fa29fb01aa468e954d84e', armv7l: 'b5e441f3f7c9959ae0fc2a9b00bbcc4d5861068687c4174f500b3d1769f08e19',
i686: 'ecdd392d03a787e2196201247cd46412accea070a13d79f2eb00ffa452d64ff1', i686: '965450506c352b43d05fe88fb2e60ebd9c0080cfd321e59f392a4f32daeddaff',
x86_64: '067011ff594dff5c3fff6b4bc32d0275656d685011fcf498c93b5b78a55b8198', x86_64: 'ba071a6f4a1536b5c5237270c836dd89cd0bb041567f942a71e39adaacd32d87'
}) })
depends_on 'llvm' => ':build'
depends_on 'libx11' depends_on 'libx11'
depends_on 'libxrandr' depends_on 'libxrandr'
depends_on 'vulkan_headers' depends_on 'vulkan_headers'
...@@ -31,10 +31,11 @@ class Vulkan_icd_loader < Package ...@@ -31,10 +31,11 @@ class Vulkan_icd_loader < Package
depends_on 'vulkan_headers' => ':build' depends_on 'vulkan_headers' => ':build'
def self.build def self.build
ENV['CXXFLAGS'] = "-fuse-ld=lld" Dir.mkdir 'builddir'
Dir.mkdir 'build' Dir.chdir 'builddir' do
Dir.chdir 'build' do system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' LDFLAGS='-flto=auto' \
system "cmake #{CREW_CMAKE_OPTIONS} \ cmake -G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DVULKAN_HEADERS_INSTALL_DIR=#{CREW_PREFIX} \ -DVULKAN_HEADERS_INSTALL_DIR=#{CREW_PREFIX} \
-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \ -DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
-DCMAKE_INSTALL_DATADIR=#{CREW_PREFIX}/share \ -DCMAKE_INSTALL_DATADIR=#{CREW_PREFIX}/share \
...@@ -43,15 +44,12 @@ class Vulkan_icd_loader < Package ...@@ -43,15 +44,12 @@ class Vulkan_icd_loader < Package
-DBUILD_WSI_XCB_SUPPORT=On \ -DBUILD_WSI_XCB_SUPPORT=On \
-DBUILD_WSI_XLIB_SUPPORT=On \ -DBUILD_WSI_XLIB_SUPPORT=On \
-DBUILD_WSI_WAYLAND_SUPPORT=On \ -DBUILD_WSI_WAYLAND_SUPPORT=On \
.. && make" .."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
Dir.chdir 'build' do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system 'make',
"DESTDIR=#{CREW_DEST_DIR}",
'install'
end
end end
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