1# Copyright (C) 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("//base/security/crypto_framework/common/common.gni")
15import("//base/security/crypto_framework/frameworks/frameworks.gni")
16import("//build/lite/config/component/lite_component.gni")
17import("//build/ohos.gni")
18
19ohos_static_library("cryptoframework_jsi") {
20  subsystem_name = "security"
21  part_name = "crypto_framework"
22  include_dirs = [ "inc" ]
23  include_dirs += framework_inc_path
24  include_dirs += [
25    "../../../../../hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite",
26  ]
27
28  sources = [
29    "src/jsi_api.cpp",
30    "src/jsi_api_common.cpp",
31    "src/jsi_api_errcode.cpp",
32    "src/jsi_list.cpp",
33    "src/jsi_md.cpp",
34    "src/jsi_rand.cpp",
35    "src/jsi_utils.cpp",
36  ]
37  defines = [ "MINI_HILOG_ENABLE" ]
38
39  deps = [
40    "../../../common:crypto_common_lite",
41    "../../../frameworks:crypto_framework_lib",
42  ]
43
44  configs = [ "${product_path}:product_public_configs" ]
45}
46