1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
package(default_visibility=["//visibility:public"])
cc_library(
name = "ryu",
srcs = [
"f2s.c",
"f2s_full_table.h",
"f2s_intrinsics.h",
"d2s.c",
"d2fixed.c",
"d2fixed_full_table.h",
"d2s_full_table.h",
"d2s_small_table.h",
"d2s_intrinsics.h",
"digit_table.h",
"common.h",
],
hdrs = ["ryu.h"],
)
cc_library(
name = "ryu_parse",
srcs = [
"s2d.c",
"s2f.c",
"d2s_intrinsics.h",
"d2s_full_table.h",
"d2s_small_table.h",
"f2s_intrinsics.h",
"f2s_full_table.h",
"common.h",
],
hdrs = ["ryu_parse.h"],
)
cc_library(
name = "generic_128",
srcs = [
"generic_128.c",
"generic_128.h",
],
hdrs = [
"ryu_generic_128.h",
],
# The code does not compile on Windows.
tags = ["nowindows"],
)
# For testing only:
cc_library(
name = "common",
hdrs = [
"common.h",
],
testonly = True,
visibility=["//ryu/tests:__pkg__"],
)
cc_library(
name = "d2s_intrinsics",
hdrs = [
"common.h",
"d2s_intrinsics.h",
],
testonly = True,
visibility=["//ryu/tests:__pkg__"],
)
|