Files
startup_appspawn_lite/services/BUILD.gn
T
zhouyj a759c2cd1d Description: change repo path for lite graphic
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6WFDH
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: zhouyj <zhouyuanjie1@huawei.com>

Change-Id: Ie2c4954fe15dc44aa7ed47ba6e6434b7276a54d9
2023-05-08 09:48:36 +08:00

85 lines
2.5 KiB
Plaintext

# Copyright (c) 2020 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")
lite_component("appspawn_lite") {
features = [ ":appspawn" ]
}
# feature: appspawn
executable("appspawn") {
sources = [
"src/appspawn_adapter.c",
"src/appspawn_message.c",
"src/appspawn_process.c",
"src/appspawn_service.c",
"src/main.c",
]
ldflags = [
"-lstdc++",
"-ldl",
]
cflags = [
"-Wall",
"-Wno-format",
"-Wno-format-extra-args",
]
include_dirs = [
"include",
"//commonlibrary/utils_lite/include",
"//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
"//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
"${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
"//third_party/bounds_checking_function/include/",
"//third_party/cJSON",
]
deps = [
"${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
"//build/lite/config/component/cJSON:cjson_shared",
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
"//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
"//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
"//third_party/bounds_checking_function:libsec_shared",
]
if (enable_ohos_appexecfwk_feature_ability == true) {
deps += [
"//foundation/arkui/ace_engine_lite/frameworks:ace_lite",
"//foundation/arkui/ui_lite:ui_lite",
"//foundation/graphic/graphic_utils_lite:utils_lite",
"//foundation/graphic/surface_lite:surface_lite",
]
}
if (ohos_kernel_type == "liteos_a") {
deps += [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
}
if (ohos_kernel_type == "linux") {
include_dirs += []
}
}
if (ohos_build_type == "debug") {
group("unittest") {
deps = [
"//base/startup/appspawn_lite/services/test/unittest/common:unittest",
]
}
}