subprojects: add linux-raw-sys
Version 0.4.14 or above supported in:
- AOSP
- Fedora
(https://bodhi.fedoraproject.org/updates/?packages=rust-linux-raw-sys)
- Debian
Acked-by: Aaron Ruby <aruby@qnx.com>
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35210>
This commit is contained in:
committed by
Marge Bot
parent
f02e60409b
commit
e04026adde
34
subprojects/packagefiles/linux-raw-sys/meson.build
Normal file
34
subprojects/packagefiles/linux-raw-sys/meson.build
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright © 2025 Google
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
project(
|
||||
'linux-raw-sys',
|
||||
'rust',
|
||||
version : '0.4.14',
|
||||
license : 'MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception',
|
||||
)
|
||||
|
||||
rust_args = [
|
||||
'--cfg', 'feature="elf"',
|
||||
'--cfg', 'feature="errno"',
|
||||
'--cfg', 'feature="general"',
|
||||
'--cfg', 'feature="if_ether"',
|
||||
'--cfg', 'feature="ioctl"',
|
||||
'--cfg', 'feature="net"',
|
||||
'--cfg', 'feature="netlink"',
|
||||
'--cfg', 'feature="no_std"',
|
||||
'--cfg', 'feature="xdp"',
|
||||
]
|
||||
|
||||
lib = static_library(
|
||||
'linux_raw_sys',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_linux_raw_sys = declare_dependency(
|
||||
link_with : [lib]
|
||||
)
|
||||
Reference in New Issue
Block a user