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 bits 20 HDRS 21 "bits.h" 22 "internal/bits.h" 23 COPTS 24 ${ABSL_DEFAULT_COPTS} 25 DEPS 26 absl::config 27 absl::core_headers 28 absl::endian 29 PUBLIC 30) 31 32absl_cc_test( 33 NAME 34 bits_test 35 SRCS 36 "bits_test.cc" 37 COPTS 38 ${ABSL_TEST_COPTS} 39 DEPS 40 absl::bits 41 absl::core_headers 42 absl::random_random 43 GTest::gmock_main 44) 45 46absl_cc_library( 47 NAME 48 int128 49 HDRS 50 "int128.h" 51 SRCS 52 "int128.cc" 53 "int128_have_intrinsic.inc" 54 "int128_no_intrinsic.inc" 55 COPTS 56 ${ABSL_DEFAULT_COPTS} 57 DEPS 58 absl::compare 59 absl::config 60 absl::core_headers 61 absl::bits 62 PUBLIC 63) 64 65absl_cc_test( 66 NAME 67 int128_test 68 SRCS 69 "int128_stream_test.cc" 70 "int128_test.cc" 71 COPTS 72 ${ABSL_TEST_COPTS} 73 DEPS 74 absl::int128 75 absl::base 76 absl::compare 77 absl::hash_testing 78 absl::type_traits 79 absl::strings 80 GTest::gmock_main 81) 82 83# component target 84absl_cc_library( 85 NAME 86 numeric 87 COPTS 88 ${ABSL_DEFAULT_COPTS} 89 DEPS 90 absl::int128 91 PUBLIC 92) 93 94absl_cc_library( 95 NAME 96 numeric_representation 97 HDRS 98 "internal/representation.h" 99 COPTS 100 ${ABSL_DEFAULT_COPTS} 101 DEPS 102 absl::config 103 PUBLIC 104) 105