mirror of
https://github.com/openharmony/ability_ability_lite.git
synced 2026-07-01 18:25:51 -04:00
2c8f534901
Signed-off-by: unknown <hanlu1@huawei.com>
64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
# Copyright (c) 2021 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/lite/config/component/lite_component.gni")
|
|
import("//build/lite/config/subsystem/aafwk/config.gni")
|
|
import("//foundation/ability/ability_lite/ability_lite.gni")
|
|
src_path =
|
|
"${aafwk_lite_path}/frameworks/ability_lite/example/entry/src/main/cpp"
|
|
|
|
lite_library("hiability") {
|
|
target_type = "shared_library"
|
|
ldflags = [ "-shared" ]
|
|
sources = [
|
|
"${src_path}/root_view_helper.cpp",
|
|
"${src_path}/service_ability.cpp",
|
|
]
|
|
|
|
if (ability_lite_enable_ohos_appexecfwk_feature_ability == true) {
|
|
sources += [
|
|
"${src_path}/main_ability.cpp",
|
|
"${src_path}/main_ability_slice.cpp",
|
|
"${src_path}/next_ability_slice.cpp",
|
|
"${src_path}/second_ability.cpp",
|
|
"${src_path}/second_ability_slice.cpp",
|
|
]
|
|
}
|
|
|
|
include_dirs = [
|
|
".",
|
|
"${aafwk_lite_path}/frameworks/ability_lite/example/entry/src/main/cpp",
|
|
"${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
|
|
"${aafwk_lite_path}/interfaces/kits/ability_lite",
|
|
"${aafwk_lite_path}/interfaces/kits/want_lite",
|
|
"${appexefwk_lite_path}/interfaces/kits/bundle_lite",
|
|
"${appexefwk_lite_path}/utils/bundle_lite",
|
|
"${communication_path}/ipc/interfaces/innerkits/c/ipc/include",
|
|
"${graphic_path}/graphic_utils_lite/interfaces/innerkits",
|
|
"${graphic_path}/../arkui/ui_lite/interfaces/kits",
|
|
"${graphic_path}/graphic_utils_lite/interfaces/kits/gfx_utils",
|
|
]
|
|
|
|
deps = [ "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite" ]
|
|
|
|
defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ]
|
|
|
|
if (ability_lite_enable_ohos_appexecfwk_feature_ability == true) {
|
|
deps += [ "${graphic_path}/../arkui/ui_lite:ui_lite" ]
|
|
defines += [
|
|
"ENABLE_WINDOW=1",
|
|
"ABILITY_WINDOW_SUPPORT",
|
|
]
|
|
}
|
|
output_dir = "$root_out_dir/dev_tools/example"
|
|
}
|