Bug 1790496 - P0 - Add libdrm to update bot;r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D163975
This commit is contained in:
Nico Grunbaum 2023-01-19 21:23:57 +00:00
parent 3c7bdc96a3
commit 416e2c38f0
4 changed files with 87 additions and 0 deletions

5
third_party/drm/README.md vendored Normal file
View File

@ -0,0 +1,5 @@
Libdrm is a drm library wrapper needed to build and run Firefox with
Pipewire support on Linux (https://gitlab.freedesktop.org/mesa/drm).
libdrm directory stores headers of libdrm needed for build only.

20
third_party/drm/drm/LICENSE vendored Normal file
View File

@ -0,0 +1,20 @@
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTBILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

6
third_party/drm/moz.build vendored Normal file
View File

@ -0,0 +1,6 @@
if CONFIG['MOZ_WEBRTC']:
EXPORTS.drm = [
'drm/include/libdrm/drm.h',
'drm/xf86drm.h',
]

56
third_party/drm/moz.yaml vendored Normal file
View File

@ -0,0 +1,56 @@
# Version of this schema
schema: 1
bugzilla:
# Bugzilla product and component for this directory and subdirectories
product: "Core"
component: "WebRTC"
# The source in this directory was copied from upstream by running the
# update.py script from third_party/libdrm. Any changes made relative to
# upstream should be reflected in that script, e.g. by applying patch files
# after the copy step.
origin:
name: "libdrm"
description: "Userspace interface to controlling GPUs on linux"
url: "https://cgit.freedesktop.org/drm/libdrm/"
license: MIT
release: 0e2c7d05712d65903a9b77fb9f960ddff43bac64
revision: b9ca37b3134861048986b75896c0915cbf2e97f9
# The codebase does not provide a LICENSE file!
# https://docs.mesa3d.org/license.html#license-copyright-information
# license-file: LICENSE
updatebot:
maintainer-phab: chew
maintainer-bz: ngrunbaum@mozilla.com
tasks:
- type: vendoring
enabled: true
frequency: release
vendoring:
url: https://gitlab.freedesktop.org/mesa/drm
source-hosting: gitlab
vendor-directory: third_party/drm/drm
skip-vendoring-steps: ['update-moz-build']
exclude:
- '**'
- '**/.*'
include:
- include/drm/drm.h
- include/drm/drm_fourcc.h
- include/drm/drm_mode.h
- xf86drm.h
keep:
- LICENSE
update-actions:
- action: move-dir
from: '{vendor_dir}/include/drm'
to: '{vendor_dir}/include/libdrm'