1eba8b6baSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2eba8b6baSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3eba8b6baSopenharmony_ci# you may not use this file except in compliance with the License. 4eba8b6baSopenharmony_ci# You may obtain a copy of the License at 5eba8b6baSopenharmony_ci# 6eba8b6baSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7eba8b6baSopenharmony_ci# 8eba8b6baSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9eba8b6baSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10eba8b6baSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11eba8b6baSopenharmony_ci# See the License for the specific language governing permissions and 12eba8b6baSopenharmony_ci# limitations under the License. 13eba8b6baSopenharmony_ci 14eba8b6baSopenharmony_ciimport("//build/ohos.gni") 15eba8b6baSopenharmony_ci 16eba8b6baSopenharmony_ciohos_cargo_crate("lib") { 17eba8b6baSopenharmony_ci crate_name = "linux_raw_sys" 18eba8b6baSopenharmony_ci crate_type = "rlib" 19eba8b6baSopenharmony_ci crate_root = "src/lib.rs" 20eba8b6baSopenharmony_ci 21eba8b6baSopenharmony_ci sources = [ "src/lib.rs" ] 22eba8b6baSopenharmony_ci edition = "2018" 23eba8b6baSopenharmony_ci cargo_pkg_version = "0.1.4" 24eba8b6baSopenharmony_ci cargo_pkg_authors = "Dan Gohman <dev@sunfishcode.online>" 25eba8b6baSopenharmony_ci cargo_pkg_name = "linux-raw-sys" 26eba8b6baSopenharmony_ci cargo_pkg_description = "Generated bindings for Linux's userspace API" 27eba8b6baSopenharmony_ci features = [ 28eba8b6baSopenharmony_ci "errno", 29eba8b6baSopenharmony_ci "general", 30eba8b6baSopenharmony_ci "std", 31eba8b6baSopenharmony_ci "ioctl", 32eba8b6baSopenharmony_ci ] 33eba8b6baSopenharmony_ci} 34