mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
# 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.
|
|
|
|
import("//build/config/compiler/compiler.gni")
|
|
|
|
action("make_s2_language_locator") {
|
|
script = "convert_s2_cell.py"
|
|
sources = [
|
|
"adminregionsdata.csv",
|
|
]
|
|
inputs = [
|
|
"template/language_code_locator_helper.cc.tmpl",
|
|
]
|
|
outputs = [
|
|
"$target_gen_dir/language_code_locator_helper.cc",
|
|
]
|
|
|
|
args = [
|
|
"-o=" + rebase_path(outputs[0], root_build_dir),
|
|
"-t=" + rebase_path(inputs[0], root_build_dir),
|
|
"-i=" + rebase_path(sources[0], root_build_dir),
|
|
]
|
|
}
|
|
|
|
source_set("language_code_locator") {
|
|
sources = [
|
|
"language_code_locator.h",
|
|
"language_code_locator.cc",
|
|
] + get_target_outputs(":make_s2_language_locator")
|
|
deps = [
|
|
":make_s2_language_locator",
|
|
"//base",
|
|
"//third_party/s2cellid",
|
|
]
|
|
}
|
|
|
|
source_set("unit_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"language_code_locator_unittest.cc",
|
|
]
|
|
deps = [
|
|
":language_code_locator",
|
|
"//base",
|
|
"//testing/gmock",
|
|
"//testing/gtest",
|
|
]
|
|
}
|