11b8d9b87Sopenharmony_ci# Copyright (C) 2024 Huawei Device Co., Ltd. 21b8d9b87Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 31b8d9b87Sopenharmony_ci# you may not use this file except in compliance with the License. 41b8d9b87Sopenharmony_ci# You may obtain a copy of the License at 51b8d9b87Sopenharmony_ci# 61b8d9b87Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 71b8d9b87Sopenharmony_ci# 81b8d9b87Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 91b8d9b87Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 101b8d9b87Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111b8d9b87Sopenharmony_ci# See the License for the specific language governing permissions and 121b8d9b87Sopenharmony_ci# limitations under the License. 131b8d9b87Sopenharmony_ci 141b8d9b87Sopenharmony_ciimport("//base/security/crypto_framework/common/common.gni") 151b8d9b87Sopenharmony_ciimport("//base/security/crypto_framework/frameworks/frameworks.gni") 161b8d9b87Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 171b8d9b87Sopenharmony_ciimport("//build/ohos.gni") 181b8d9b87Sopenharmony_ci 191b8d9b87Sopenharmony_ciohos_static_library("cryptoframework_jsi") { 201b8d9b87Sopenharmony_ci subsystem_name = "security" 211b8d9b87Sopenharmony_ci part_name = "crypto_framework" 221b8d9b87Sopenharmony_ci include_dirs = [ "inc" ] 231b8d9b87Sopenharmony_ci include_dirs += framework_inc_path 241b8d9b87Sopenharmony_ci include_dirs += [ 251b8d9b87Sopenharmony_ci "../../../../../hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite", 261b8d9b87Sopenharmony_ci ] 271b8d9b87Sopenharmony_ci 281b8d9b87Sopenharmony_ci sources = [ 291b8d9b87Sopenharmony_ci "src/jsi_api.cpp", 301b8d9b87Sopenharmony_ci "src/jsi_api_common.cpp", 311b8d9b87Sopenharmony_ci "src/jsi_api_errcode.cpp", 321b8d9b87Sopenharmony_ci "src/jsi_list.cpp", 331b8d9b87Sopenharmony_ci "src/jsi_md.cpp", 341b8d9b87Sopenharmony_ci "src/jsi_rand.cpp", 351b8d9b87Sopenharmony_ci "src/jsi_utils.cpp", 361b8d9b87Sopenharmony_ci ] 371b8d9b87Sopenharmony_ci defines = [ "MINI_HILOG_ENABLE" ] 381b8d9b87Sopenharmony_ci 391b8d9b87Sopenharmony_ci deps = [ 401b8d9b87Sopenharmony_ci "../../../common:crypto_common_lite", 411b8d9b87Sopenharmony_ci "../../../frameworks:crypto_framework_lib", 421b8d9b87Sopenharmony_ci ] 431b8d9b87Sopenharmony_ci 441b8d9b87Sopenharmony_ci configs = [ "${product_path}:product_public_configs" ] 451b8d9b87Sopenharmony_ci} 46