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") 15 16config("want_config") { 17 visibility = [ ":*" ] 18 include_dirs = [] 19 cflags = [] 20 if (target_cpu == "arm") { 21 cflags += [ "-DBINDER_IPC_32BIT" ] 22 } 23 defines = [ 24 "APP_LOG_TAG = \"Ability\"", 25 "LOG_DOMAIN = 0xD002200", 26 ] 27} 28 29config("want_public_config") { 30 visibility = [ ":*" ] 31 include_dirs = [ 32 "//utils/native/base/include", 33 "//foundation/aafwk/standard/interfaces/innerkits/want/include", 34 "//foundation/aafwk/standard/interfaces/innerkits/base/include", 35 "//foundation/appexecfwk/standard/common/log/include", 36 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 37 "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", 38 "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content", 39 "//foundation/aafwk/standard/frameworks/kits/content/cpp/src", 40 "//third_party/jsoncpp/include", 41 ] 42} 43 44wantImpl = "//foundation/aafwk/standard/frameworks/kits/content/cpp/src/ohos/aafwk/content" 45 46ohos_shared_library("want") { 47 sources = [ 48 "${wantImpl}/extra_params.cpp", 49 "${wantImpl}/operation.cpp", 50 "${wantImpl}/operation_builder.cpp", 51 "${wantImpl}/pac_map.cpp", 52 "${wantImpl}/patterns_matcher.cpp", 53 "${wantImpl}/skills.cpp", 54 "${wantImpl}/want.cpp", 55 "${wantImpl}/want_params.cpp", 56 "${wantImpl}/want_params_wrapper.cpp", 57 ] 58 59 deps = [ 60 "//foundation/aafwk/standard/interfaces/innerkits/base:base", 61 "//foundation/appexecfwk/standard/common:libappexecfwk_common", 62 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 63 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 64 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 65 66 #"//foundation/distributeddatamgr/distributeddatamgr:build_module", 67 "//foundation/distributedschedule/samgr/interfaces/innerkits/lsamgr:lsamgr", 68 "//third_party/jsoncpp:jsoncpp", 69 "//utils/native/base:utils", 70 ] 71 72 external_deps = [ 73 "hiviewdfx_hilog_native:libhilog", 74 "ipc:ipc_core", 75 ] 76 77 configs = [ ":want_config" ] 78 public_configs = [ ":want_public_config" ] 79 subsystem_name = "aafwk" 80 part_name = "aafwk_standard" 81} 82