1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//drivers/adapter/uhdf2/uhdf.gni") 16group("sample_service_cpp") { 17 deps = [ ":libsample_service_cpp" ] 18} 19 20ohos_shared_library("libsample_service_cpp") { 21 sources = [ 22 "sample_driver.cpp", 23 "sample_service.cpp", 24 "sample_service_stub.cpp", 25 ] 26 27 deps = [ 28 "//drivers/adapter/uhdf2/host:libhdf_host", 29 "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", 30 "//drivers/adapter/uhdf2/utils:libhdf_utils", 31 ] 32 33 if (is_standard_system) { 34 external_deps = [ 35 "hiviewdfx_hilog_native:libhilog", 36 "ipc:ipc_single", 37 "utils_base:utils", 38 ] 39 } else { 40 external_deps = [ 41 "hilog:libhilog", 42 "ipc:ipc_single", 43 ] 44 } 45 46 install_images = [ chipset_base_dir ] 47 subsystem_name = "hdf" 48 part_name = "device_driver_framework" 49} 50