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("../../../updateengine.gni") 16 17ohos_prebuilt_etc("updater_sa.rc") { 18 source = "etc/updater_sa.rc" 19 relative_install_dir = "init" 20 part_name = "$updateengine_part_name" 21} 22 23ohos_static_library("$updateengine_inner_library_name") { 24 defines = [ "DUAL_ADAPTER" ] 25 sources = [ 26 "$updateengine_root_path/interfaces/inner_api/engine/update_service_kits_impl.cpp", 27 "$updateengine_root_path/interfaces/inner_api/engine/update_service_ondemand.cpp", 28 "$updateengine_root_path/interfaces/inner_api/engine/update_service_proxy.cpp", 29 "$updateengine_root_path/services/callback/src/update_callback.cpp", 30 "$updateengine_root_path/services/callback/src/update_callback_stub.cpp", 31 "$updateengine_root_path/services/engine/src/update_helper.cpp", 32 ] 33 34 include_dirs = [ 35 "$updateengine_root_path/interfaces/inner_api/include", 36 "$updateengine_root_path/services/callback/include", 37 "$updateengine_root_path/services/engine/include", 38 "//third_party/bounds_checking_function/include", # secure method 39 ] 40 41 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 42 43 external_deps = [ 44 "c_utils:utils", # sptr 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 "samgr:samgr_proxy", 48 ] 49 50 part_name = "$updateengine_part_name" 51} 52