1#
2# Copyright 2017 The Abseil Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      https://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17absl_cc_library(
18  NAME
19    int128
20  HDRS
21    "int128.h"
22  SRCS
23    "int128.cc"
24    "int128_have_intrinsic.inc"
25    "int128_no_intrinsic.inc"
26  COPTS
27    ${ABSL_DEFAULT_COPTS}
28  DEPS
29    absl::bits
30    absl::config
31    absl::core_headers
32  PUBLIC
33)
34
35absl_cc_test(
36  NAME
37    int128_test
38  SRCS
39    "int128_stream_test.cc"
40    "int128_test.cc"
41  COPTS
42    ${ABSL_TEST_COPTS}
43  DEPS
44    absl::int128
45    absl::base
46    absl::core_headers
47    absl::hash_testing
48    absl::type_traits
49    gmock_main
50)
51
52# component target
53absl_cc_library(
54  NAME
55    numeric
56  COPTS
57    ${ABSL_DEFAULT_COPTS}
58  DEPS
59    absl::int128
60  PUBLIC
61)
62