1// Copyright (C) 2012 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// Build appcompat library 17 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22android_library { 23 name: "libphotoviewer_appcompat", 24 25 libs: ["androidx.annotation_annotation"], 26 27 static_libs: [ 28 "androidx.core_core", 29 "androidx.legacy_legacy-support-core-ui", 30 "androidx.legacy_legacy-support-core-utils", 31 "androidx.fragment_fragment", 32 "androidx.appcompat_appcompat", 33 ], 34 35 sdk_version: "current", 36 srcs: [ 37 "src/**/*.java", 38 "appcompat/src/**/*.java", 39 "src/**/*.logtags", 40 ], 41 42 resource_dirs: [ 43 "appcompat/res", 44 "res", 45 ], 46} 47 48//################################################# 49// Build non-appcompat library 50 51android_library { 52 name: "libphotoviewer", 53 54 libs: ["androidx.annotation_annotation"], 55 56 static_libs: [ 57 "androidx.core_core", 58 "androidx.legacy_legacy-support-core-ui", 59 "androidx.legacy_legacy-support-core-utils", 60 "androidx.fragment_fragment", 61 ], 62 63 sdk_version: "current", 64 srcs: [ 65 "src/**/*.java", 66 "activity/src/**/*.java", 67 "src/**/*.logtags", 68 ], 69 70 resource_dirs: [ 71 "activity/res", 72 "res", 73 ] 74} 75