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.
13
14import("//build/lite/config/component/lite_component.gni")
15import("../../../dsoftbus.gni")
16
17dsoftbus_root_path = "../../.."
18
19if (defined(ohos_lite)) {
20  static_library("softbus_access_token_test") {
21    sources = [ "src/softbus_access_token_test_virtual.c" ]
22    include_dirs = [ "include" ]
23    cflags = [
24      "-Wall",
25      "-fPIC",
26      "-std=c99",
27    ]
28    ldflags = [ "-fPIC" ]
29  }
30} else {
31  static_library("softbus_access_token_test") {
32    sources = [ "src/softbus_access_token_test.cpp" ]
33    include_dirs = [
34      "include",
35      "$dsoftbus_root_path/interfaces/kits/common",
36    ]
37    external_deps = [
38      "access_token:libaccesstoken_sdk",
39      "access_token:libnativetoken",
40      "access_token:libtoken_setproc",
41    ]
42    cflags = [
43      "-Wall",
44      "-fPIC",
45      "-std=c99",
46    ]
47    ldflags = [ "-fPIC" ]
48  }
49}
50