1// Copyright (C) 2019 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 15cc_defaults { 16 name: "derive_sdk-defaults", 17 srcs: [ 18 "derive_sdk.cpp", 19 "sdk.proto", 20 ], 21 proto: { 22 type: "lite", 23 static: true, 24 }, 25 min_sdk_version: "current", 26 shared_libs: ["liblog"], 27 // static c++/libbase for smaller size 28 stl: "c++_static", 29 static_libs: ["libbase"], 30} 31 32cc_binary { 33 name: "derive_sdk", 34 defaults: [ "derive_sdk-defaults" ], 35 apex_available: [ "com.android.sdkext" ], 36 visibility: [ "//packages/modules/SdkExtensions" ] 37} 38 39// Work around testing using a 64-bit test suite on 32-bit test device by 40// using a prefer32 version of derive_sdk in testing. 41cc_binary { 42 name: "derive_sdk_prefer32", 43 defaults: [ "derive_sdk-defaults" ], 44 compile_multilib: "prefer32", 45 stem: "derive_sdk", 46 apex_available: [ "test_com.android.sdkext" ], 47 visibility: [ "//packages/modules/SdkExtensions/testing" ], 48 installable: false, 49} 50 51prebuilt_etc { 52 name: "derive_sdk.rc", 53 src: "derive_sdk.rc", 54 installable: false, 55} 56