blob: db41c2f99ed804d42ab032aa02085115e5de9020 [file] [log] [blame]
Yecheng Zhaofb666552021-06-22 10:02:43 -07001# Copyright 2021 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7# https://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, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15import("//build_overrides/pigweed.gni")
16import("$dir_pw_build/facade.gni")
17import("$dir_pw_build/target_types.gni")
18import("$dir_pw_docgen/docs.gni")
19
20config("public_includes") {
21 include_dirs = [ "public" ]
22}
23
24config("overrides") {
25 include_dirs = [ "public_overrides" ]
26}
27
28pw_source_set("pw_tls_client_mbedtls") {
29 public_configs = [
30 ":public_includes",
31 ":overrides",
32 ]
33 public = [
34 "public/pw_tls_client_mbedtls/backend_types.h",
35 "public_overrides/pw_tls_client_backends/backend_types.h",
36 ]
37 sources = [ "tls_client_mbedtls.cc" ]
38 public_deps = [
39 "$dir_pigweed/pw_tls_client:pw_tls_client.facade",
40 "$dir_pw_tls_client:tls_entropy",
41 "//third_party/mbedtls",
42 ]
43}
44
45pw_doc_group("docs") {
46 sources = [ "docs.rst" ]
47}