• 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
18config("openssl_config") {
19  include_dirs = [
20    "//third_party/openssl/include",
21    "//third_party/openssl/crypto/include",
22    "//third_party/openssl/crypto/ec",
23    "//third_party/openssl",
24  ]
25
26  cflags = [
27    "-fPIC",
28    "-DOPENSSL_ARM_PLATFORM",
29  ]
30}
31
32openssl_source = [
33  "//third_party/openssl/crypto/cryptlib.c",
34  "//third_party/openssl/crypto/ec/curve25519.c",
35  "//third_party/openssl/crypto/mem_clr.c",
36  "//third_party/openssl/crypto/sha/sha512.c",
37]
38
39lite_library("openssl_shared") {
40  target_type = "shared_library"
41  sources = openssl_source
42  public_configs = [ ":openssl_config" ]
43}
44
45lite_library("openssl_static") {
46  target_type = "static_library"
47  sources = openssl_source
48  public_configs = [ ":openssl_config" ]
49}
50