• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2020 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16import("//build/lite/config/component/lite_component.gni")
17
18if (defined(ohos_lite)) {
19  config("openssl_config") {
20    include_dirs = [
21      "include",
22      "crypto/include",
23      "crypto/ec",
24      ".",
25    ]
26
27    cflags = [
28      "-fPIC",
29      "-DOPENSSL_ARM_PLATFORM",
30    ]
31  }
32
33  openssl_source = [
34    "crypto/cryptlib.c",
35    "crypto/ec/curve25519.c",
36    "crypto/mem_clr.c",
37    "crypto/sha/sha512.c",
38  ]
39
40  lite_library("openssl_shared") {
41    target_type = "shared_library"
42    sources = openssl_source
43    public_configs = [ ":openssl_config" ]
44  }
45}
46