blob: 73c07c4aeb5664184ceb295b36f1bd5651a66c24 [file] [log] [blame]
# Copyright 2017 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.
assert(current_toolchain == host_toolchain)
source_set("transport_security_state_generator_sources") {
sources = [
"bit_writer.cc",
"bit_writer.h",
"cert_util.cc",
"cert_util.h",
"huffman/huffman_builder.cc",
"huffman/huffman_builder.h",
"input_file_parsers.cc",
"input_file_parsers.h",
"pinset.cc",
"pinset.h",
"pinsets.cc",
"pinsets.h",
"preloaded_state_generator.cc",
"preloaded_state_generator.h",
"spki_hash.cc",
"spki_hash.h",
"transport_security_state_entry.cc",
"transport_security_state_entry.h",
"trie/trie_bit_buffer.cc",
"trie/trie_bit_buffer.h",
"trie/trie_writer.cc",
"trie/trie_writer.h",
]
deps = [
"//base",
"//third_party/boringssl",
]
}
source_set("transport_security_state_generator_test_sources") {
testonly = true
sources = [
"bit_writer_unittest.cc",
"cert_util_unittest.cc",
"huffman/huffman_builder_unittest.cc",
"input_file_parsers_unittest.cc",
"spki_hash_unittest.cc",
"trie/trie_bit_buffer_unittest.cc",
]
deps = [
":transport_security_state_generator_sources",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/boringssl",
]
}
executable("transport_security_state_generator") {
sources = [
"transport_security_state_generator.cc",
]
deps = [
":transport_security_state_generator_sources",
"//base",
"//build/config:exe_and_shlib_deps",
"//crypto",
"//third_party/boringssl",
]
}