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