| # 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", |
| "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", |
| ] |
| |
| configs += [ "../build:allow_build_from_embedder" ] |
| } |
| |
| 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", |
| "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", |
| ] |
| |
| configs += [ "../build:allow_build_from_embedder" ] |
| } |