1# Copyright (c) 2021-2024 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 17if (defined(ohos_lite)) { 18 static_library("softbus_access_token_test") { 19 sources = [ "src/softbus_access_token_test_virtual.c" ] 20 include_dirs = [ "include" ] 21 cflags = [ 22 "-Wall", 23 "-fPIC", 24 "-std=c99", 25 ] 26 ldflags = [ "-fPIC" ] 27 } 28} else { 29 static_library("softbus_access_token_test") { 30 sources = [] 31 include_dirs = [ 32 "include", 33 "$dsoftbus_root_path/interfaces/kits/common", 34 ] 35 external_deps = [] 36 if (dsoftbus_access_token_feature) { 37 sources += [ "src/softbus_access_token_test.cpp" ] 38 external_deps += [ 39 "access_token:libaccesstoken_sdk", 40 "access_token:libnativetoken", 41 "access_token:libtoken_setproc", 42 ] 43 } else { 44 sources += [ "src/softbus_access_token_test_virtual.c" ] 45 } 46 cflags = [ 47 "-Wall", 48 "-fPIC", 49 "-std=c99", 50 ] 51 ldflags = [ "-fPIC" ] 52 } 53} 54