169570cc8Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
269570cc8Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
369570cc8Sopenharmony_ci# you may not use this file except in compliance with the License.
469570cc8Sopenharmony_ci# You may obtain a copy of the License at
569570cc8Sopenharmony_ci#
669570cc8Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
769570cc8Sopenharmony_ci#
869570cc8Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
969570cc8Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1069570cc8Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1169570cc8Sopenharmony_ci# See the License for the specific language governing permissions and
1269570cc8Sopenharmony_ci# limitations under the License.
1369570cc8Sopenharmony_ciimport("//base/startup/appspawn/appspawn.gni")
1469570cc8Sopenharmony_ciimport("//build/ohos.gni")
1569570cc8Sopenharmony_ci
1669570cc8Sopenharmony_ciif (!defined(ohos_lite)) {
1769570cc8Sopenharmony_ci  config("exported_header_files") {
1869570cc8Sopenharmony_ci    visibility = [ ":*" ]
1969570cc8Sopenharmony_ci    include_dirs =
2069570cc8Sopenharmony_ci        [ "//base/startup/appspawn/interfaces/innerkits/hnp/include" ]
2169570cc8Sopenharmony_ci  }
2269570cc8Sopenharmony_ci
2369570cc8Sopenharmony_ci  ohos_shared_library("hnpapi") {
2469570cc8Sopenharmony_ci    include_dirs = [ "${appspawn_path}/interfaces/innerkits/hnp/include" ]
2569570cc8Sopenharmony_ci    sources = [ "${appspawn_path}/interfaces/innerkits/hnp/src/hnp_api.c" ]
2669570cc8Sopenharmony_ci
2769570cc8Sopenharmony_ci    public_configs = [ ":exported_header_files" ]
2869570cc8Sopenharmony_ci    external_deps = [
2969570cc8Sopenharmony_ci      "bounds_checking_function:libsec_shared",
3069570cc8Sopenharmony_ci      "hilog:libhilog",
3169570cc8Sopenharmony_ci      "init:libbegetutil",
3269570cc8Sopenharmony_ci    ]
3369570cc8Sopenharmony_ci    deps = [ "${appspawn_path}/util:libappspawn_util" ]
3469570cc8Sopenharmony_ci    install_enable = true
3569570cc8Sopenharmony_ci    subsystem_name = "${subsystem_name}"
3669570cc8Sopenharmony_ci    part_name = "${part_name}"
3769570cc8Sopenharmony_ci  }
3869570cc8Sopenharmony_ci} else {
3969570cc8Sopenharmony_ci  group("hnpapi") {
4069570cc8Sopenharmony_ci    deps = []
4169570cc8Sopenharmony_ci  }
4269570cc8Sopenharmony_ci}
43