• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Bazel(http://bazel.io) BUILD file
2
3load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
4
5licenses(["notice"])
6
7exports_files(["LICENSE"])
8
9cc_library(
10    name = "double-conversion",
11    srcs = [
12        "double-conversion/bignum.cc",
13        "double-conversion/bignum-dtoa.cc",
14        "double-conversion/cached-powers.cc",
15        "double-conversion/double-to-string.cc",
16        "double-conversion/fast-dtoa.cc",
17        "double-conversion/fixed-dtoa.cc",
18        "double-conversion/string-to-double.cc",
19        "double-conversion/strtod.cc",
20    ],
21    hdrs = [
22        "double-conversion/bignum.h",
23        "double-conversion/bignum-dtoa.h",
24        "double-conversion/cached-powers.h",
25        "double-conversion/diy-fp.h",
26        "double-conversion/double-conversion.h",
27        "double-conversion/double-to-string.h",
28        "double-conversion/fast-dtoa.h",
29        "double-conversion/fixed-dtoa.h",
30        "double-conversion/ieee.h",
31        "double-conversion/string-to-double.h",
32        "double-conversion/strtod.h",
33        "double-conversion/utils.h",
34    ],
35    linkopts = [
36        "-lm",
37    ],
38    visibility = ["//visibility:public"],
39)
40
41cc_test(
42    name = "cctest",
43    srcs = [
44        "test/cctest/cctest.cc",
45        "test/cctest/cctest.h",
46        "test/cctest/checks.h",
47        "test/cctest/gay-fixed.cc",
48        "test/cctest/gay-fixed.h",
49        "test/cctest/gay-precision.cc",
50        "test/cctest/gay-precision.h",
51        "test/cctest/gay-shortest.cc",
52        "test/cctest/gay-shortest.h",
53        "test/cctest/gay-shortest-single.cc",
54        "test/cctest/gay-shortest-single.h",
55        "test/cctest/test-bignum.cc",
56        "test/cctest/test-bignum-dtoa.cc",
57        "test/cctest/test-conversions.cc",
58        "test/cctest/test-diy-fp.cc",
59        "test/cctest/test-dtoa.cc",
60        "test/cctest/test-fast-dtoa.cc",
61        "test/cctest/test-fixed-dtoa.cc",
62        "test/cctest/test-ieee.cc",
63        "test/cctest/test-strtod.cc",
64    ],
65    args = [
66        "test-bignum",
67        "test-bignum-dtoa",
68        "test-conversions",
69        "test-diy-fp",
70        "test-dtoa",
71        "test-fast-dtoa",
72        "test-fixed-dtoa",
73        "test-ieee",
74        "test-strtod",
75    ],
76    visibility = ["//visibility:public"],
77    deps = [":double-conversion"],
78)
79