• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni")
16
17group("bgtask_observer_target") {
18  deps = [ ":bgtask_observer" ]
19}
20
21ohos_executable("bgtask_observer") {
22  include_dirs = [ "include" ]
23
24  sources = [
25    "src/bgtask_observer.cpp",
26    "src/main.cpp",
27  ]
28
29  cflags = []
30  if (target_cpu == "arm") {
31    cflags += [ "-DBINDER_IPC_32BIT" ]
32  }
33
34  deps = [
35    "${bgtaskmgr_frameworks_path}:bgtaskmgr_fwk",
36    "${bgtaskmgr_interfaces_path}/innerkits:bgtaskmgr_innerkits",
37  ]
38
39  configs = []
40
41  external_deps = [
42    "ability_base:want",
43    "ability_runtime:wantagent_innerkits",
44    "hiviewdfx_hilog_native:libhilog",
45    "ipc:ipc_core",
46    "samgr_standard:samgr_proxy",
47    "utils_base:utils",
48  ]
49
50  install_enable = false
51  part_name = "background_task_mgr"
52}
53