1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15// 16 17java_library { 18 name: "perfmark-api-lib", 19 static_libs: [ 20 "perfmark-link", 21 "perfmark", 22 "perfmark-tag", 23 "perfmark-stringfunction" 24 ], 25 host_supported: true, 26 apex_available: [ 27 "//apex_available:anyapex", 28 "//apex_available:platform", 29 ], 30 java_version: "11", 31 sdk_version: "current", 32 min_sdk_version: "30", 33 target: { 34 windows: { 35 enabled: true, 36 }, 37 }, 38} 39 40java_library { 41 name: "perfmark", 42 srcs: [ 43 "src/main/java/io/perfmark/PerfMark.java", 44 "src/main/java/io/perfmark/TaskCloseable.java" 45 ], 46 static_libs: [ 47 "perfmark-impl", 48 "perfmark-link", 49 "perfmark-tag", 50 "perfmark-stringfunction", 51 "error_prone_annotations", 52 "jsr305", 53 ], 54 host_supported: true, 55 apex_available: [ 56 "//apex_available:anyapex", 57 "//apex_available:platform", 58 ], 59 java_version: "11", 60 sdk_version: "current", 61 min_sdk_version: "30", 62 target: { 63 windows: { 64 enabled: true, 65 }, 66 }, 67} 68 69java_library { 70 name: "perfmark-tag", 71 srcs: [ 72 "src/main/java/io/perfmark/Tag.java", 73 ], 74 static_libs: [ 75 "error_prone_annotations", 76 "jsr305", 77 ], 78 host_supported: true, 79 apex_available: [ 80 "//apex_available:anyapex", 81 "//apex_available:platform", 82 ], 83 java_version: "11", 84 sdk_version: "current", 85 min_sdk_version: "30", 86 visibility: [":__subpackages__"], 87 target: { 88 windows: { 89 enabled: true, 90 }, 91 }, 92} 93 94java_library { 95 name: "perfmark-link", 96 srcs: [ 97 "src/main/java/io/perfmark/Link.java", 98 ], 99 static_libs: [ 100 "error_prone_annotations", 101 "jsr305", 102 ], 103 host_supported: true, 104 apex_available: [ 105 "//apex_available:anyapex", 106 "//apex_available:platform", 107 ], 108 java_version: "11", 109 sdk_version: "current", 110 min_sdk_version: "30", 111 visibility: [":__subpackages__"], 112 target: { 113 windows: { 114 enabled: true, 115 }, 116 }, 117} 118 119java_library { 120 name: "perfmark-stringfunction", 121 srcs: [ 122 "src/main/java/io/perfmark/StringFunction.java", 123 ], 124 static_libs: [ 125 "error_prone_annotations", 126 "jsr305", 127 ], 128 host_supported: true, 129 apex_available: [ 130 "//apex_available:anyapex", 131 "//apex_available:platform", 132 ], 133 java_version: "11", 134 sdk_version: "current", 135 min_sdk_version: "30", 136 visibility: [":__subpackages__"], 137 target: { 138 windows: { 139 enabled: true, 140 }, 141 }, 142} 143 144java_library { 145 name: "perfmark-impl", 146 srcs: [ 147 "src/main/java/io/perfmark/Impl.java", 148 ], 149 static_libs: [ 150 "perfmark-link", 151 "perfmark-tag", 152 "perfmark-stringfunction", 153 "error_prone_annotations", 154 "jsr305", 155 ], 156 host_supported: true, 157 apex_available: [ 158 "//apex_available:anyapex", 159 "//apex_available:platform", 160 ], 161 java_version: "11", 162 sdk_version: "current", 163 min_sdk_version: "30", 164 visibility: [":__subpackages__"], 165 target: { 166 windows: { 167 enabled: true, 168 }, 169 }, 170} 171 172