1# Copyright (c) 2021-2022 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("//foundation/ability/ability_runtime/ability_runtime.gni") 16import("//foundation/distributeddatamgr/relational_store/relational_store.gni") 17 18ohos_shared_library("featureability") { 19 include_dirs = [ 20 "./", 21 "${relational_store_napi_path}/rdb/include", 22 "${relational_store_napi_path}/common/include", 23 "${relational_store_napi_path}/dataability/include", 24 ] 25 26 sources = [ 27 "${relational_store_napi_path}/common/src/js_utils.cpp", 28 "${relational_store_napi_path}/dataability/src/napi_data_ability_predicates.cpp", 29 "${relational_store_napi_path}/rdb/src/napi_result_set.cpp", 30 "feature_ability.cpp", 31 "feature_ability_constant.cpp", 32 "napi_context.cpp", 33 "napi_data_ability_helper.cpp", 34 "napi_data_ability_operation.cpp", 35 "native_module.cpp", 36 ] 37 38 deps = [ 39 "${ability_runtime_innerkits_path}/dataobs_manager:dataobs_manager", 40 "${ability_runtime_napi_path}/inner/napi_common:napi_common", 41 "${ability_runtime_native_path}/appkit:appkit_native", 42 "//third_party/libuv:uv", 43 ] 44 45 external_deps = [ 46 "ability_base:want", 47 "ability_base:zuri", 48 "ability_runtime:ability_manager", 49 "ability_runtime:abilitykit_native", 50 "ability_runtime:data_ability_helper", 51 "ability_runtime:napi_base_context", 52 "ability_runtime:runtime", 53 "bundle_framework:appexecfwk_base", 54 "c_utils:utils", 55 "hitrace_native:hitrace_meter", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 "napi:ace_napi", 59 "relational_store:native_dataability", 60 "relational_store:native_rdb", 61 "relational_store:rdb_data_share_adapter", 62 ] 63 64 if (ability_runtime_graphics) { 65 include_dirs += [ 66 "${windowmanager_path}/interfaces/kits/napi/window_runtime/window_napi", 67 ] 68 deps += [ "${windowmanager_path}/interfaces/kits/napi/window_runtime:window_native_kit" ] 69 defines = [ "SUPPORT_GRAPHICS" ] 70 } 71 72 relative_install_dir = "module/ability" 73 74 subsystem_name = "ability" 75 part_name = "ability_runtime" 76} 77