• 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 (ohos_build_type == "debug") {
19  config("tls_client") {
20    include_dirs = [
21      "./include",
22      "//third_party/mbedtls/include",
23      "//commonlibrary/utils_lite/include",
24      "//third_party/bounds_checking_function/include",
25      "//third_party/mbedtls/port/include",
26    ]
27  }
28
29  tls_client_src = [
30    "src/tls_certificate.c",
31    "src/tls_client.c",
32  ]
33
34  static_library("tls_client_static") {
35    sources = tls_client_src
36    deps = [
37      "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
38      "//third_party/bounds_checking_function:libsec_shared",
39      "//third_party/mbedtls:mbedtls_gt",
40    ]
41    public_configs = [ ":tls_client" ]
42  }
43}
44