mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
f9d178ea3e
Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com>
96 lines
3.1 KiB
Plaintext
96 lines
3.1 KiB
Plaintext
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/ohos.gni")
|
|
import("//foundation/ability/ability_runtime/ability_runtime.gni")
|
|
|
|
ohos_shared_library("featureability") {
|
|
configs = [ "${ability_runtime_services_path}/common:optimize_config" ]
|
|
|
|
include_dirs = [ "./" ]
|
|
|
|
sources = [
|
|
"feature_ability.cpp",
|
|
"feature_ability_constant.cpp",
|
|
"napi_data_ability_helper.cpp",
|
|
"napi_data_ability_helper_utils.cpp",
|
|
"napi_data_ability_observer.cpp",
|
|
"napi_data_ability_operation.cpp",
|
|
"native_module.cpp",
|
|
]
|
|
|
|
deps = [
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_manager",
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_start_options",
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_start_setting",
|
|
"${ability_runtime_innerkits_path}/dataobs_manager:dataobs_manager",
|
|
"${ability_runtime_innerkits_path}/napi_base_context:napi_base_context",
|
|
"${ability_runtime_innerkits_path}/runtime:runtime",
|
|
"${ability_runtime_napi_path}/inner/napi_ability_common:napi_ability_common",
|
|
"${ability_runtime_napi_path}/inner/napi_common:napi_common",
|
|
"${ability_runtime_native_path}/ability/native:abilitykit_native",
|
|
"${ability_runtime_native_path}/ability/native:data_ability_helper",
|
|
"${ability_runtime_native_path}/appkit:appkit_native",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"ability_base:zuri",
|
|
"access_token:libaccesstoken_sdk",
|
|
"bundle_framework:appexecfwk_base",
|
|
"c_utils:utils",
|
|
"common_event_service:cesfwk_innerkits",
|
|
"hilog:libhilog",
|
|
"hitrace:hitrace_meter",
|
|
"ipc:ipc_core",
|
|
"libuv:uv",
|
|
"napi:ace_napi",
|
|
]
|
|
|
|
if (ability_runtime_graphics) {
|
|
external_deps += [ "window_manager:window_native_kit" ]
|
|
defines = [
|
|
"SUPPORT_GRAPHICS",
|
|
"SUPPORT_SCREEN",
|
|
]
|
|
}
|
|
|
|
if (ability_runtime_relational) {
|
|
include_dirs += [ "data_ability/include" ]
|
|
sources += [
|
|
"data_ability/js_utils.cpp",
|
|
"data_ability/napi_data_ability_predicates.cpp",
|
|
"data_ability/napi_rdb_js_utils.cpp",
|
|
"data_ability/napi_result_set.cpp",
|
|
]
|
|
external_deps += [
|
|
"data_share:datashare_common_lite",
|
|
"eventhandler:libeventhandler",
|
|
"kv_store:distributeddata_mgr",
|
|
"relational_store:native_appdatafwk",
|
|
"relational_store:native_dataability",
|
|
"relational_store:native_rdb",
|
|
"relational_store:rdb_data_share_adapter",
|
|
]
|
|
}
|
|
cflags_cc = []
|
|
if (os_dlp_part_enabled) {
|
|
cflags_cc += [ "-DWITH_DLP" ]
|
|
}
|
|
|
|
relative_install_dir = "module/ability"
|
|
|
|
subsystem_name = "ability"
|
|
part_name = "ability_runtime"
|
|
}
|