• 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.
13import("//build/ohos.gni")
14SUBDEMOSYSTEM_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/amsSystemTestA"
15SUBST_TOOLS_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/tools"
16config("amsSystemTestAConfig") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "${SUBDEMOSYSTEM_DIR}/include",
20    "//foundation/appexecfwk/standard/kits/appkit/native/app",
21    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content",
22    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
23    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
24    "//foundation/appexecfwk/standard/services/bundlemgr/include",
25    "//foundation/aafwk/standard/services/abilitymgr/include",
26    "//foundation/appexecfwk/standard/common/log/include",
27    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
28    "${SUBST_TOOLS_DIR}/include",
29    "//third_party/jsoncpp/include",
30  ]
31  defines = [
32    "APP_LOG_TAG = \"amsSystemTestA\"",
33    "LOG_DOMAIN = 0xD002200",
34  ]
35  cflags = []
36  if (target_cpu == "arm") {
37    cflags += [ "-DBINDER_IPC_32BIT" ]
38  }
39}
40ohos_shared_library("amsSystemTestA") {
41  sources = [
42    "${SUBDEMOSYSTEM_DIR}/src/amsstabilitya1.cpp",
43    "${SUBDEMOSYSTEM_DIR}/src/amsstabilitya2.cpp",
44    "${SUBST_TOOLS_DIR}/src/stpageabilityevent.cpp",
45  ]
46  configs = [ ":amsSystemTestAConfig" ]
47  deps = [
48    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
49    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
50    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
51    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
52    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
53    "//foundation/appexecfwk/standard/kits:appkit_native",
54    "//foundation/appexecfwk/standard/services/bundlemgr:libbms",
55    "//third_party/jsoncpp:jsoncpp",
56    "//utils/native/base:utilsbase",
57  ]
58  external_deps = [
59    "ces_standard:cesfwk_core",
60    "ces_standard:cesfwk_innerkits",
61    "hiviewdfx_hilog_native:libhilog",
62    "ipc:ipc_core",
63  ]
64  subsystem_name = "amssystemtestability"
65}
66