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_shared_library("qos_ndk") {
183c3173acSopenharmony_ci  branch_protector_ret = "pac_ret"
193c3173acSopenharmony_ci
203c3173acSopenharmony_ci  cflags_cc = [
213c3173acSopenharmony_ci    "-fomit-frame-pointer",
223c3173acSopenharmony_ci    "-fdata-sections",
233c3173acSopenharmony_ci    "-ffunction-sections",
243c3173acSopenharmony_ci    "-fno-unroll-loops",
253c3173acSopenharmony_ci    "-fno-exceptions",
263c3173acSopenharmony_ci    "-fno-unwind-tables",
273c3173acSopenharmony_ci    "-fno-asynchronous-unwind-tables",
283c3173acSopenharmony_ci    "-g0",
293c3173acSopenharmony_ci    "-Os",
303c3173acSopenharmony_ci  ]
313c3173acSopenharmony_ci  include_dirs = [
323c3173acSopenharmony_ci    "../../interfaces/",
333c3173acSopenharmony_ci    "../../interfaces/kits/c/",
343c3173acSopenharmony_ci  ]
353c3173acSopenharmony_ci
363c3173acSopenharmony_ci  sources = [ "qos_ndk.cpp" ]
373c3173acSopenharmony_ci
383c3173acSopenharmony_ci  deps = [ "../../qos:qos" ]
393c3173acSopenharmony_ci
403c3173acSopenharmony_ci  output_name = "qos"
413c3173acSopenharmony_ci  output_extension = "so"
423c3173acSopenharmony_ci
433c3173acSopenharmony_ci  innerapi_tags = [ "ndk" ]
443c3173acSopenharmony_ci  subsystem_name = "resourceschedule"
453c3173acSopenharmony_ci  part_name = "qos_manager"
463c3173acSopenharmony_ci}
47