1794c9f46Sopenharmony_ci# Copyright (c) 2023-2024 Huawei Device Co., Ltd. 2794c9f46Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3794c9f46Sopenharmony_ci# you may not use this file except in compliance with the License. 4794c9f46Sopenharmony_ci# You may obtain a copy of the License at 5794c9f46Sopenharmony_ci# 6794c9f46Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7794c9f46Sopenharmony_ci# 8794c9f46Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9794c9f46Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10794c9f46Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11794c9f46Sopenharmony_ci# See the License for the specific language governing permissions and 12794c9f46Sopenharmony_ci# limitations under the License. 13794c9f46Sopenharmony_ci 14794c9f46Sopenharmony_ciimport("//build/ohos.gni") 15794c9f46Sopenharmony_ciimport("../../../distributedhardwarefwk.gni") 16794c9f46Sopenharmony_ci 17794c9f46Sopenharmony_ciohos_shared_library("hardwaremanager") { 18794c9f46Sopenharmony_ci include_dirs = [ 19794c9f46Sopenharmony_ci "include", 20794c9f46Sopenharmony_ci "${common_path}/log/include", 21794c9f46Sopenharmony_ci "${common_path}/utils/include", 22794c9f46Sopenharmony_ci "${innerkits_path}/include", 23794c9f46Sopenharmony_ci "${innerkits_path}/include/ipc", 24794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice/include/componentmanager", 25794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice/include/lowlatency", 26794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice/include/utils", 27794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice/include/task", 28794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice/include/resourcemanager", 29794c9f46Sopenharmony_ci "${av_trans_path}/common/include", 30794c9f46Sopenharmony_ci "${utils_path}/include/log", 31794c9f46Sopenharmony_ci ] 32794c9f46Sopenharmony_ci 33794c9f46Sopenharmony_ci sources = [ "src/native_distributedhardwarefwk_js.cpp" ] 34794c9f46Sopenharmony_ci 35794c9f46Sopenharmony_ci deps = [ 36794c9f46Sopenharmony_ci "${distributedhardwarefwk_path}/interfaces/inner_kits:libdhfwk_sdk", 37794c9f46Sopenharmony_ci "${services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", 38794c9f46Sopenharmony_ci "${utils_path}:distributedhardwareutils", 39794c9f46Sopenharmony_ci ] 40794c9f46Sopenharmony_ci 41794c9f46Sopenharmony_ci defines = [ 42794c9f46Sopenharmony_ci "HI_LOG_ENABLE", 43794c9f46Sopenharmony_ci "DH_LOG_TAG=\"distributedhardwaremanager_js\"", 44794c9f46Sopenharmony_ci "LOG_DOMAIN=0xD004100", 45794c9f46Sopenharmony_ci ] 46794c9f46Sopenharmony_ci 47794c9f46Sopenharmony_ci cflags = [ 48794c9f46Sopenharmony_ci "-fstack-protector-strong", 49794c9f46Sopenharmony_ci "-D_FORTIFY_SOURCE=2", 50794c9f46Sopenharmony_ci "-O2", 51794c9f46Sopenharmony_ci ] 52794c9f46Sopenharmony_ci 53794c9f46Sopenharmony_ci cflags_cc = cflags 54794c9f46Sopenharmony_ci 55794c9f46Sopenharmony_ci external_deps = [ 56794c9f46Sopenharmony_ci "access_token:libtokenid_sdk", 57794c9f46Sopenharmony_ci "bundle_framework:appexecfwk_base", 58794c9f46Sopenharmony_ci "cJSON:cjson", 59794c9f46Sopenharmony_ci "hilog:libhilog", 60794c9f46Sopenharmony_ci "ipc:ipc_core", 61794c9f46Sopenharmony_ci "napi:ace_napi", 62794c9f46Sopenharmony_ci ] 63794c9f46Sopenharmony_ci 64794c9f46Sopenharmony_ci subsystem_name = "distributedhardware" 65794c9f46Sopenharmony_ci relative_install_dir = "module/distributedhardware" 66794c9f46Sopenharmony_ci part_name = "distributed_hardware_fwk" 67794c9f46Sopenharmony_ci} 68