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_shared_library("$updateengine_client_library_name") { 18 sources = [ 19 "$updateengine_root_path/frameworks/js/napi/base/src/client_helper.cpp", 20 "$updateengine_root_path/frameworks/js/napi/base/src/iupdater.cpp", 21 "$updateengine_root_path/frameworks/js/napi/base/src/napi_util.cpp", 22 "$updateengine_root_path/frameworks/js/napi/base/src/session_manager.cpp", 23 "$updateengine_root_path/frameworks/js/napi/client/local_updater.cpp", 24 "$updateengine_root_path/frameworks/js/napi/client/restorer.cpp", 25 "$updateengine_root_path/frameworks/js/napi/client/update_client.cpp", 26 "$updateengine_root_path/frameworks/js/napi/client/update_module.cpp", 27 "$updateengine_root_path/frameworks/js/napi/client/update_session.cpp", 28 ] 29 30 include_dirs = [ 31 "$updateengine_root_path/frameworks/js/napi/base/include", 32 "$updateengine_root_path/frameworks/js/napi/client", 33 "$updateengine_root_path/interfaces/inner_api/include", 34 "//foundation/arkui/napi/interfaces/kits", 35 "//third_party/node/src", # napi 36 ] 37 38 deps = [ 39 "$updateengine_root_path/interfaces/inner_api/engine:$updateengine_inner_library_name", 40 "//foundation/arkui/napi:ace_napi", 41 ] 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 install_enable = true 51 relative_install_dir = "module" 52 part_name = "$updateengine_part_name" 53 54 cflags = [ 55 "-fPIC", 56 "-Os", 57 "-Werror", 58 ] 59} 60