1# Copyright (c) 2024 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("//base/startup/appspawn/appspawn.gni") 15import("//build/ohos.gni") 16 17ohos_shared_library("appspawn_ace") { 18 sources = [ 19 "ace_adapter.cpp", 20 "command_lexer.cpp", 21 ] 22 include_dirs = [ 23 ".", 24 "${appspawn_path}/common", 25 "${appspawn_path}/standard", 26 "${appspawn_path}/util/include", 27 ] 28 deps = [ 29 "${appspawn_path}/modules/module_engine:libappspawn_module_engine", 30 "${appspawn_path}/util:libappspawn_util", 31 ] 32 defines = [] 33 if (asan_detector || is_asan) { 34 defines += [ "ASAN_DETECTOR" ] 35 } 36 external_deps = [ 37 "ability_base:want", 38 "ability_runtime:app_manager", 39 "ability_runtime:appkit_native", 40 "ability_runtime:runtime", 41 "access_token:libtokensetproc_shared", 42 "ace_engine:ace_forward_compatibility", 43 "cJSON:cjson", 44 "c_utils:utils", 45 "common_event_service:cesfwk_innerkits", 46 "config_policy:configpolicy_util", 47 "eventhandler:libeventhandler", 48 "hilog:libhilog", 49 "hitrace:hitrace_meter", 50 "init:libbegetutil", 51 "ipc:ipc_single", 52 "napi:ace_napi", 53 "os_account:os_account_innerkits", 54 "resource_management:global_resmgr", 55 "selinux:libselinux", 56 ] 57 subsystem_name = "${subsystem_name}" 58 part_name = "${part_name}" 59 install_enable = true 60 if (target_cpu == "arm64" || target_cpu == "x86_64" || 61 target_cpu == "riscv64") { 62 module_install_dir = "lib64/appspawn/appspawn" 63 } else { 64 module_install_dir = "lib/appspawn/appspawn" 65 } 66} 67