# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
action_foreach("common_words_dafsa") {
script = "//net/tools/dafsa/make_dafsa.py"
sources = [
"data/common_words.gperf",
"data/common_words_test.gperf",
]
outputs = [ "${target_gen_dir}/{{source_name_part}}-inc.cc" ]
args = [
"{{source}}",
rebase_path("${target_gen_dir}/{{source_name_part}}-inc.cc",
root_build_dir),
]
}
source_set("common") {
sources = [
"common_words_util.cc",
"common_words_util.h",
]
public_deps = [ "//base" ]
deps = [
":common_words_dafsa",
"//net",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "common_words_util_unittest.cc" ]
deps = [
":common",
":common_words_dafsa",
"//testing/gtest",
]
}