• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("intent_config") {
17  visibility = [ ":*" ]
18  include_dirs = [ "//sdk/appexecfwk/appexecfwk_base/include" ]
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("intent_public_config") {
30  visibility = [ ":*" ]
31  include_dirs = [
32    "//utils/native/base/include",
33    "//foundation/aafwk/standard/interfaces/innerkits/intent/include",
34    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
35    "//foundation/appexecfwk/standard/common/log/include",
36  ]
37}
38
39intentImpl = "//foundation/aafwk/standard/frameworks/kits/content/cpp/src/ohos/aafwk/content"
40
41ohos_shared_library("intent") {
42  sources = [
43    "${intentImpl}/intent.cpp",
44    "${intentImpl}/intent_filter.cpp",
45    "${intentImpl}/intent_params.cpp",
46
47    #"${intentImpl}/operation.cpp",
48    #"${intentImpl}/patterns_matcher.cpp",
49    #"${intentImpl}/skills.cpp",
50    #"${intentImpl}/want_params.cpp",
51    #"${intentImpl}/want.cpp",
52  ]
53
54  deps = [
55    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
56    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
57    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
58    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
59    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
60    "//foundation/distributedschedule/samgr/interfaces/innerkits/lsamgr:lsamgr",
61    "//utils/native/base:utils",
62  ]
63
64  external_deps = [
65    "hiviewdfx_hilog_native:libhilog",
66    "ipc:ipc_core",
67  ]
68
69  configs = [ ":intent_config" ]
70  public_configs = [ ":intent_public_config" ]
71  subsystem_name = "aafwk"
72  part_name = "aafwk_standard"
73}
74