1*9356374aSAndroid Build Coastguard Worker# 2*9356374aSAndroid Build Coastguard Worker# Copyright 2019 The Abseil Authors. 3*9356374aSAndroid Build Coastguard Worker# 4*9356374aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*9356374aSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*9356374aSAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*9356374aSAndroid Build Coastguard Worker# 8*9356374aSAndroid Build Coastguard Worker# https://www.apache.org/licenses/LICENSE-2.0 9*9356374aSAndroid Build Coastguard Worker# 10*9356374aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*9356374aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*9356374aSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*9356374aSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*9356374aSAndroid Build Coastguard Worker# limitations under the License. 15*9356374aSAndroid Build Coastguard Worker# 16*9356374aSAndroid Build Coastguard Worker 17*9356374aSAndroid Build Coastguard Workerload( 18*9356374aSAndroid Build Coastguard Worker "//absl:copts/configure_copts.bzl", 19*9356374aSAndroid Build Coastguard Worker "ABSL_DEFAULT_COPTS", 20*9356374aSAndroid Build Coastguard Worker "ABSL_DEFAULT_LINKOPTS", 21*9356374aSAndroid Build Coastguard Worker "ABSL_TEST_COPTS", 22*9356374aSAndroid Build Coastguard Worker) 23*9356374aSAndroid Build Coastguard Worker 24*9356374aSAndroid Build Coastguard Workerpackage( 25*9356374aSAndroid Build Coastguard Worker default_visibility = ["//visibility:public"], 26*9356374aSAndroid Build Coastguard Worker features = [ 27*9356374aSAndroid Build Coastguard Worker "header_modules", 28*9356374aSAndroid Build Coastguard Worker "layering_check", 29*9356374aSAndroid Build Coastguard Worker "parse_headers", 30*9356374aSAndroid Build Coastguard Worker ], 31*9356374aSAndroid Build Coastguard Worker) 32*9356374aSAndroid Build Coastguard Worker 33*9356374aSAndroid Build Coastguard Workerlicenses(["notice"]) 34*9356374aSAndroid Build Coastguard Worker 35*9356374aSAndroid Build Coastguard Workercc_library( 36*9356374aSAndroid Build Coastguard Worker name = "memory", 37*9356374aSAndroid Build Coastguard Worker hdrs = ["memory.h"], 38*9356374aSAndroid Build Coastguard Worker copts = ABSL_DEFAULT_COPTS, 39*9356374aSAndroid Build Coastguard Worker defines = select({ 40*9356374aSAndroid Build Coastguard Worker "//conditions:default": [], 41*9356374aSAndroid Build Coastguard Worker }), 42*9356374aSAndroid Build Coastguard Worker linkopts = ABSL_DEFAULT_LINKOPTS, 43*9356374aSAndroid Build Coastguard Worker deps = [ 44*9356374aSAndroid Build Coastguard Worker "//absl/base:core_headers", 45*9356374aSAndroid Build Coastguard Worker "//absl/meta:type_traits", 46*9356374aSAndroid Build Coastguard Worker ], 47*9356374aSAndroid Build Coastguard Worker) 48*9356374aSAndroid Build Coastguard Worker 49*9356374aSAndroid Build Coastguard Workercc_test( 50*9356374aSAndroid Build Coastguard Worker name = "memory_test", 51*9356374aSAndroid Build Coastguard Worker srcs = ["memory_test.cc"], 52*9356374aSAndroid Build Coastguard Worker copts = ABSL_TEST_COPTS, 53*9356374aSAndroid Build Coastguard Worker linkopts = ABSL_DEFAULT_LINKOPTS, 54*9356374aSAndroid Build Coastguard Worker deps = [ 55*9356374aSAndroid Build Coastguard Worker ":memory", 56*9356374aSAndroid Build Coastguard Worker "//absl/base:core_headers", 57*9356374aSAndroid Build Coastguard Worker "@com_google_googletest//:gtest", 58*9356374aSAndroid Build Coastguard Worker "@com_google_googletest//:gtest_main", 59*9356374aSAndroid Build Coastguard Worker ], 60*9356374aSAndroid Build Coastguard Worker) 61