12498b56bSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
22498b56bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
32498b56bSopenharmony_ci# you may not use this file except in compliance with the License.
42498b56bSopenharmony_ci# You may obtain a copy of the License at
52498b56bSopenharmony_ci#
62498b56bSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
72498b56bSopenharmony_ci#
82498b56bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
92498b56bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
102498b56bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112498b56bSopenharmony_ci# See the License for the specific language governing permissions and
122498b56bSopenharmony_ci# limitations under the License.
132498b56bSopenharmony_ci
142498b56bSopenharmony_ciimport("//build/ohos.gni")
152498b56bSopenharmony_ci
162498b56bSopenharmony_ciohos_rust_shared_library("hilog_rust") {
172498b56bSopenharmony_ci  sources = [ "src/lib.rs" ]
182498b56bSopenharmony_ci
192498b56bSopenharmony_ci  deps = [ "../../interfaces/native/innerkits:libhilog" ]
202498b56bSopenharmony_ci
212498b56bSopenharmony_ci  crate_name = "hilog_rust"
222498b56bSopenharmony_ci  crate_type = "dylib"
232498b56bSopenharmony_ci  rustflags = [ "-Zstack-protector=all" ]
242498b56bSopenharmony_ci
252498b56bSopenharmony_ci  subsystem_name = "hiviewdfx"
262498b56bSopenharmony_ci  part_name = "hilog"
272498b56bSopenharmony_ci}
282498b56bSopenharmony_ci
292498b56bSopenharmony_cigroup("rust_hilog_component") {
302498b56bSopenharmony_ci  deps = [ ":hilog_rust" ]
312498b56bSopenharmony_ci}
32