1// 2// Copyright (C) 2020 The Android Open Source Project 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// http://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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21// Intermediary static library to the headers can be used without heavy deps like stl 22cc_library_static { 23 name: "sdk_level_nostl_static", 24 srcs: ["sdk_level_nostl.cpp"], 25 // Do not add other dependencies (static_libs or shared_libs) here: the purpose of this target 26 // is to verify that the library can be used without dependencies. 27 static_libs: [ 28 "libmodules-utils-build", 29 ], 30 sdk_version: "current", 31 stl: "none", 32 visibility: ["//visibility:private"], 33} 34 35cc_test { 36 name: "unbounded_sdk_level_test", 37 srcs: [ 38 "sdk_level_test.cpp", 39 "unbounded_sdk_level_test.cpp", 40 ], 41 static_libs: [ 42 "libbase", 43 "libmodules-utils-build", 44 "sdk_level_nostl_static", 45 ], 46 shared_libs: [ 47 "liblog", 48 ], 49 test_suites: ["device-tests"], 50} 51