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("//foundation/communication/dsoftbus/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 = [ "src/softbus_access_token_test.cpp" ] 31 include_dirs = [ 32 "include", 33 "$dsoftbus_root_path/interfaces/kits/common", 34 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 35 "//base/security/access_token/interfaces/innerkits/nativetoken/include", 36 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 37 ] 38 deps = [ 39 "//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk", 40 "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken", 41 "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", 42 ] 43 cflags = [ 44 "-Wall", 45 "-fPIC", 46 "-std=c99", 47 ] 48 ldflags = [ "-fPIC" ] 49 } 50} 51