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("appexecfwk.gni")
16
17group("bms_target") {
18  deps = [
19    "common:common_target",
20    "interfaces/inner_api/appexecfwk_base:appexecfwk_base",
21    "interfaces/inner_api/appexecfwk_core:appexecfwk_core",
22    "interfaces/inner_api/bundlemgr_extension:bundlemgr_extension",
23    "interfaces/kits/cj:cj_bundle_manager_ffi",
24    "interfaces/kits/js:napi_packages",
25    "interfaces/kits/native/app_detail_ability:app_detail_ability",
26    "interfaces/kits/native/bundle:bundle_ndk",
27    "sa_profile:appexecfwk_sa_profile",
28    "services/bundlemgr:bms_target",
29  ]
30  if (bundle_framework_graphics) {
31    deps += [ "interfaces/inner_api/bundlemgr_graphics:bundlemgr_graphics" ]
32  }
33}
34
35group("test_target") {
36  testonly = true
37
38  deps = [ "test/fuzztest:fuzztest" ]
39
40  if (!use_libfuzzer) {
41    deps += [
42      "common/test:unittest",
43      "interfaces/inner_api/test/unittest:unittest",
44      "interfaces/kits/js/zip/test:unittest",
45      "services/bundlemgr/test:unittest",
46      "services/test/moduletest/common/bms:moduletest",
47      "test/benchmarktest:benchmarktest",
48      "test/resource/bmssystemtestability/abilitySrc:bms_system_test_app",
49      "test/sceneProject:test_hap",
50      "test/systemtest/common/bms:systemtest_bms",
51    ]
52  }
53}
54