Files
chromebrew/packages/vulkan_headers.rb
Satadru Pramanik 3d324768ce Add Crosvm, minijail, update vulkan_headers, vulkan_icd_loader, virglrenderer, libdrm (#7284)
* add crosvm

* update binary

* requested changes

* fix typo

* Initial add of more crosvm deps

* add more binaries

* more binaries

* add minijail to packages.yaml

* add aarch64 conditional

* fix git_hashtag locations

* add updated libdrm
2022-08-17 18:08:13 -05:00

41 lines
1.6 KiB
Ruby

require 'package'
class Vulkan_headers < Package
description 'Vulkan header files'
homepage 'https://github.com/KhronosGroup/Vulkan-Headers'
@_ver = '1.3.224'
version @_ver
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/KhronosGroup/Vulkan-Headers.git'
git_hashtag "v#{@_ver}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_headers/1.3.224_armv7l/vulkan_headers-1.3.224-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_headers/1.3.224_armv7l/vulkan_headers-1.3.224-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_headers/1.3.224_i686/vulkan_headers-1.3.224-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_headers/1.3.224_x86_64/vulkan_headers-1.3.224-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '07d06412605ad77da5eb584ff0004ca8bd375facdec7f208cc8507d87574770a',
armv7l: '07d06412605ad77da5eb584ff0004ca8bd375facdec7f208cc8507d87574770a',
i686: '09b838eacafe97c1471f3da15a82fef46bbd895b443f50f0cefb080b4e513595',
x86_64: '20e3b90d93447e620d730bfe3f0f55d97cfd19134ed275b5672f5d962863118a'
})
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
end
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end