Debian Codegraph @

src/tools/BUILD.bazel

raw
1 load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
2
3 package(default_visibility = ["//visibility:public"])
4
5 cc_library(
6 name = "platform_io_lib",
7 srcs = ["PlatformIO.cpp"],
8 hdrs = ["PlatformIO.hpp"],
9 deps = [
10 "//src:win_util_lib",
11 ],
12 )
13
14 cc_library(
15 name = "command_line_main_lib",
16 srcs = ["CommandLineMain.cpp"],
17 hdrs = ["CommandLineMain.hpp"],
18 deps = [
19 ":platform_io_lib",
20 "//deps/rapidjson-1.1.0:rapidjson",
21 "//src:cmd_line_output_lib",
22 "//src:config_lib",
23 "//src:conversion_inspection_lib",
24 "//src:converter_lib",
25 "//src:exception_lib",
26 "//src:segments_lib",
27 ],
28 )
29
30 cc_binary(
31 name = "command_line",
32 srcs = ["CommandLine.cpp"],
33 deps = [
34 ":command_line_main_lib",
35 ":platform_io_lib",
36 "//src:cmd_line_output_lib",
37 "//src:config_lib",
38 "//src:converter_lib",
39 "//src:utf8_util_lib",
40 ],
41 linkopts = select({
42 "@platforms//os:windows": ["Shell32.lib"],
43 "//conditions:default": [],
44 }),
45 )
46
47 cc_binary(
48 name = "dict_converter",
49 srcs = ["DictConverter.cpp"],
50 deps = [
51 "//src:cmd_line_output_lib",
52 "//src:dict_converter_lib",
53 "//src:exception_lib",
54 ],
55 )
56
57 cc_binary(
58 name = "phrase_extract",
59 srcs = ["PhraseExtract.cpp"],
60 deps = [
61 "//src:cmd_line_output_lib",
62 "//src:phrase_extract_lib",
63 ],
64 )
65
66 cc_binary(
67 name = "speed_benchmark",
68 srcs = ["SpeedBenchmark.cpp"],
69 deps = [
70 "//src:resource_provider_lib",
71 "//src:simple_converter_lib",
72 "//src:utf8_util_lib",
73 ],
74 )