# Copyright (c) 2022-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

file_api_path = "//foundation/filemanagement/file_api"
src_path = "${file_api_path}/interfaces/kits/js/src"
utils_path = "${file_api_path}/utils"

use_mac = "${current_os}_${current_cpu}" == "mac_x64" ||
          "${current_os}_${current_cpu}" == "mac_arm64"
use_mingw_win = "${current_os}_${current_cpu}" == "mingw_x86_64"

declare_args() {
  file_api_read_optimize = false
  file_api_feature_hyperaio = false
  file_api_feature_swapfs = true

  file_api_hiviewdfx_api_metrics_enable = false
  if (defined(global_parts_info) &&
      defined(global_parts_info.hiviewdfx_api_metrics)) {
    file_api_hiviewdfx_api_metrics_enable = true
  }
}