diff --git a/third_party/drm/README.md b/third_party/drm/README.md new file mode 100644 index 000000000000..1a32aee94224 --- /dev/null +++ b/third_party/drm/README.md @@ -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. + diff --git a/third_party/drm/drm/LICENSE b/third_party/drm/drm/LICENSE new file mode 100644 index 000000000000..d2337125400a --- /dev/null +++ b/third_party/drm/drm/LICENSE @@ -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. + diff --git a/third_party/drm/moz.build b/third_party/drm/moz.build new file mode 100644 index 000000000000..970a82391267 --- /dev/null +++ b/third_party/drm/moz.build @@ -0,0 +1,6 @@ +if CONFIG['MOZ_WEBRTC']: + EXPORTS.drm = [ + 'drm/include/libdrm/drm.h', + 'drm/xf86drm.h', + ] + diff --git a/third_party/drm/moz.yaml b/third_party/drm/moz.yaml new file mode 100644 index 000000000000..723cea7fb2da --- /dev/null +++ b/third_party/drm/moz.yaml @@ -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' +