aboutsummaryrefslogtreecommitdiff
path: root/util/BUILD.gn
blob: de31d291206b181ba2f44110e4dd6d6f336cfe06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build_overrides/build.gni")

source_set("util") {
  sources = [
    "alarm.cc",
    "alarm.h",
    "big_endian.cc",
    "big_endian.h",
    "crypto/openssl_util.cc",
    "crypto/openssl_util.h",
    "crypto/rsa_private_key.cc",
    "crypto/rsa_private_key.h",
    "crypto/secure_hash.cc",
    "crypto/secure_hash.h",
    "crypto/sha2.cc",
    "crypto/sha2.h",
    "integer_division.h",
    "json/json_reader.cc",
    "json/json_reader.h",
    "json/json_writer.cc",
    "json/json_writer.h",
    "operation_loop.cc",
    "operation_loop.h",
    "saturate_cast.h",
    "std_util.h",
    "stringprintf.h",
    "yet_another_bit_vector.cc",
    "yet_another_bit_vector.h",
  ]

  deps = [
    "../third_party/abseil",
    "../third_party/boringssl",
    "../third_party/jsoncpp",
  ]

  public_configs = [ "../build:openscreen_include_dirs" ]
}

source_set("unittests") {
  testonly = true

  sources = [
    "alarm_unittest.cc",
    "big_endian_unittest.cc",
    "crypto/rsa_private_key_unittest.cc",
    "crypto/secure_hash_unittest.cc",
    "crypto/sha2_unittest.cc",
    "integer_division_unittest.cc",
    "json/json_reader_unittest.cc",
    "json/json_writer_unittest.cc",
    "operation_loop_unittest.cc",
    "saturate_cast_unittest.cc",
    "yet_another_bit_vector_unittest.cc",
  ]

  deps = [
    ":util",
    "../third_party/abseil",
    "../third_party/boringssl",
    "../third_party/googletest:gmock",
    "../third_party/googletest:gtest",
    "../third_party/jsoncpp",
  ]
}