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/subsystem/aafwk/config.gni") 15import("//test/xts/tools/lite/build/suite_lite.gni") 16 17hcpptest_suite("ActsVFATCapabilityTest") { 18 suite_name = "acts" 19 sources = [ 20 "../src/ActsCapability.cpp", 21 "../src/ActsCapabilityTest.cpp", 22 "../src/CapabilityFileSystemTest.cpp", 23 ] 24 25 include_dirs = [ 26 "../src", 27 "//third_party/bounds_checking_function/include", 28 ] 29 30 public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 31 32 cflags_cc = [ 33 "-Wno-write-strings", 34 "-Wno-sign-compare", 35 ] 36 37 ldflags = [ 38 "-lstdc++", 39 "-lm", 40 "-lpthread", 41 ] 42 43 if (enable_ohos_appexecfwk_feature_ability == true) { 44 defines = [ 45 "LITE_FS_VFAT", 46 "TOP_DIR=\"/sdcard\"", 47 "TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"", 48 ] 49 } else { 50 defines = [ 51 "LITE_FS_VFAT", 52 "TOP_DIR=\"/sdcard\"", 53 "TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"", 54 ] 55 } 56} 57