xref: /aosp_15_r20/external/pigweed/pw_tls_client_boringssl/BUILD.gn (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# 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")
16
17import("$dir_pw_build/target_types.gni")
18import("$dir_pw_docgen/docs.gni")
19import("$dir_pw_third_party/boringssl/boringssl.gni")
20import("$dir_pw_third_party/chromium_verifier/chromium_verifier.gni")
21import("$dir_pw_tls_client/configs.gni")
22import("$dir_pw_unit_test/test.gni")
23
24config("backend_config") {
25  include_dirs = [
26    "public",
27    "public_overrides",
28  ]
29}
30
31pw_source_set("pw_tls_client_boringssl") {
32  public_configs = [ ":backend_config" ]
33  public = [
34    "public/pw_tls_client_boringssl/backend_types.h",
35    "public_overrides/pw_tls_client_backends/backend_types.h",
36  ]
37  sources = [ "tls_client_boringssl.cc" ]
38  public_deps = [
39    "$dir_pigweed/pw_tls_client:pw_tls_client.facade",
40    "$dir_pw_third_party/boringssl",
41  ]
42}
43
44pw_test("tls_client_boringssl_test") {
45  enable_if = dir_pw_third_party_boringssl != ""
46  deps = [
47    ":pw_tls_client_boringssl",
48    "$dir_pw_tls_client:test_data",
49  ]
50  sources = [ "tls_client_boringssl_test.cc" ]
51}
52
53pw_test_group("tests") {
54  tests = [ ":tls_client_boringssl_test" ]
55}
56
57pw_doc_group("docs") {
58  sources = [ "docs.rst" ]
59}
60