• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("//base/startup/appspawn/appspawn.gni")
14import("//build/test.gni")
15
16if (!defined(ohos_lite)) {
17  ohos_unittest("DecUtilTest") {
18    module_out_path = "appspawn/appspawn"
19    cflags = [
20      "-Wno-implicit-fallthrough",
21      "-Wno-unused-function",
22      "-Dprivate=public",
23      "-Dprotected=public",
24    ]
25
26    cflags_cc = [
27      "-Wno-implicit-fallthrough",
28      "-fexceptions",
29    ]
30
31    include_dirs = [
32      "${appspawn_path}/interfaces/innerkits/dec_util/include",
33    ]
34
35    sources = [
36      "${appspawn_path}/interfaces/innerkits/dec_util/src/dec_api.cpp",
37      "dec_util_test.cpp",
38    ]
39
40    defines = [ "APPSPAWN_TEST" ]
41
42    deps = [ "${appspawn_path}/util:libappspawn_util" ]
43
44    external_deps = [
45      "cJSON:cjson",
46      "config_policy:configpolicy_util",
47      "hilog:libhilog",
48    ]
49  }
50}
51