1# Copyright (c) 2021 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("//build/test.gni") 16import("//foundation/appexecfwk/standard/appexecfwk.gni") 17 18config("appexecfwk_base_sdk_config") { 19 include_dirs = [ 20 "include", 21 "//third_party/json/include", 22 ] 23} 24 25ohos_shared_library("appexecfwk_base") { 26 include_dirs = [ "//third_party/json/include" ] 27 28 sources = [ 29 "src/ability_info.cpp", 30 "src/application_info.cpp", 31 "src/bundle_info.cpp", 32 "src/compatible_ability_info.cpp", 33 "src/compatible_application_info.cpp", 34 "src/element_name.cpp", 35 "src/form_info.cpp", 36 "src/form_js_info.cpp", 37 "src/form_provider_data.cpp", 38 "src/form_provider_info.cpp", 39 "src/hap_module_info.cpp", 40 "src/install_param.cpp", 41 "src/module_info.cpp", 42 "src/module_usage_record.cpp", 43 "src/permission_def.cpp", 44 "src/running_process_info.cpp", 45 "src/shortcut_info.cpp", 46 ] 47 48 public_configs = [ 49 ":appexecfwk_base_sdk_config", 50 "//utils/native/base:utils_config", 51 ] 52 53 defines = [ 54 "APP_LOG_TAG = \"AppExecFwkBase\"", 55 "LOG_DOMAIN = 0xD001100", 56 ] 57 cflags = [] 58 if (target_cpu == "arm") { 59 cflags += [ "-DBINDER_IPC_32BIT" ] 60 } 61 deps = [ 62 "${common_path}:libappexecfwk_common", 63 "//utils/native/base:utils", 64 ] 65 66 external_deps = [ 67 "hiviewdfx_hilog_native:libhilog", 68 "ipc:ipc_core", 69 ] 70 71 subsystem_name = "appexecfwk" 72 part_name = "appexecfwk_standard" 73} 74