• 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      "//utils/native/lite/include",
24      "//third_party/bounds_checking_function/include",
25    ]
26  }
27
28  tls_client_src = [
29    "src/tls_certificate.c",
30    "src/tls_client.c",
31  ]
32
33  static_library("tls_client_static") {
34    sources = tls_client_src
35    deps = [
36      "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
37      "//third_party/bounds_checking_function:libsec_shared",
38      "//third_party/mbedtls:mbedtls_gt",
39    ]
40    public_configs = [ ":tls_client" ]
41  }
42}
43