• 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.
13
14import("//build/ohos.gni")
15import("../../os_account.gni")
16
17config("account_test_config") {
18  include_dirs = [ "include" ]
19}
20
21ohos_source_set("account_test_common_source_set") {
22  branch_protector_ret = "pac_ret"
23
24  sanitize = {
25    cfi = true
26    cfi_cross_dso = true
27    debug = false
28  }
29
30  sources = [ "src/account_test_common.cpp" ]
31
32  public_configs = [ ":account_test_config" ]
33
34  cflags = [ "-pipe" ]
35  cflags_cc = [
36    "-Wdate-time",
37    "-Wformat=2",
38    "-Wfloat-equal",
39    "-Wshadow",
40  ]
41
42  defines = [
43    "ACCOUNT_LOG_TAG = \"AccountTest\"",
44    "LOG_DOMAIN = 0xD001B00",
45  ]
46  if (target_cpu == "arm64") {
47    defines += [ "_ARM64_" ]
48  }
49
50  deps = [ "${common_path}:libaccount_common" ]
51
52  external_deps = [
53    "access_token:libaccesstoken_sdk",
54    "access_token:libtokenid_sdk",
55    "access_token:libtokensetproc_shared",
56    "c_utils:utils",
57    "hilog:libhilog",
58    "ipc:ipc_single",
59  ]
60  subsystem_name = "account"
61  part_name = "os_account"
62}
63