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 17 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_library_shared { 23 name: "libutils_vendor", 24 whole_static_libs: ["libutils"], 25 vendor: true, 26 vndk: { 27 enabled: true, 28 support_system_process: true, 29 extends: "libutils", 30 }, 31 shared_libs: [ 32 "libcutils", 33 "libprocessgroup", 34 "libvndksupport", 35 "liblog", 36 // vendor-only lib 37 "libvendor", 38 ], 39} 40 41cc_library_shared { 42 name: "libutils_product", 43 whole_static_libs: ["libutils"], 44 product_specific: true, 45 vndk: { 46 enabled: true, 47 support_system_process: true, 48 extends: "libutils", 49 }, 50 shared_libs: [ 51 "libcutils", 52 "libprocessgroup", 53 "libvndksupport", 54 "liblog", 55 // product-only libs 56 "libproduct", 57 ], 58} 59 60cc_library_shared { 61 name: "libvendor", 62 vendor: true, 63} 64 65cc_library_shared { 66 name: "libproduct", 67 product_specific: true, 68} 69 70cc_binary { 71 name: "binvendor", 72 vendor: true, 73 srcs: ["hello.cpp"], 74 shared_libs: ["libutils_vendor"], 75} 76 77cc_binary { 78 name: "binproduct", 79 product_specific: true, 80 srcs: ["hello.cpp"], 81 shared_libs: ["libutils_product"], 82} 83