13c3173acSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
23c3173acSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33c3173acSopenharmony_ci# you may not use this file except in compliance with the License.
43c3173acSopenharmony_ci# You may obtain a copy of the License at
53c3173acSopenharmony_ci#
63c3173acSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73c3173acSopenharmony_ci#
83c3173acSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93c3173acSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103c3173acSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113c3173acSopenharmony_ci# See the License for the specific language governing permissions and
123c3173acSopenharmony_ci# limitations under the License.
133c3173acSopenharmony_ci
143c3173acSopenharmony_ciimport("//build/ohos.gni")
153c3173acSopenharmony_ciimport("//build/ohos/ndk/ndk.gni")
163c3173acSopenharmony_ci
173c3173acSopenharmony_ciohos_ndk_headers("qos_header") {
183c3173acSopenharmony_ci  dest_dir = "$ndk_headers_out_dir/qos"
193c3173acSopenharmony_ci  sources = [ "./c/qos.h" ]
203c3173acSopenharmony_ci}
213c3173acSopenharmony_ci
223c3173acSopenharmony_ciohos_ndk_library("libqos_ndk") {
233c3173acSopenharmony_ci  output_name = "qos"
243c3173acSopenharmony_ci  output_extension = "so"
253c3173acSopenharmony_ci  ndk_description_file = "./libqos.ndk.json"
263c3173acSopenharmony_ci  system_capability = "SystemCapability.Resourceschedule.QoS.Core"
273c3173acSopenharmony_ci  system_capability_headers = [ "$ndk_headers_out_dir/qos/qos.h" ]
283c3173acSopenharmony_ci}
29