blob: 3e030e8ace1129cbf0f1973fb1d0bc92faee92c7 [file] [log] [blame]
Anton Hanssonda4972f2020-01-08 09:48:18 +00001// 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
Anton Hansson36e2b132019-12-19 12:10:53 +000015cc_defaults {
16 name: "derive_sdk-defaults",
Anton Hanssonda4972f2020-01-08 09:48:18 +000017 srcs: [
18 "derive_sdk.cpp",
19 "sdk.proto",
20 ],
21 proto: {
22 type: "lite",
Colin Cross0c88d802020-04-07 16:50:32 +000023 static: true,
Anton Hanssonda4972f2020-01-08 09:48:18 +000024 },
Nikita Ioffe10c87182020-10-20 16:07:01 +010025 min_sdk_version: "30",
Jooyung Hanc7c45302020-04-23 15:25:04 +090026 shared_libs: ["liblog"],
27 // static c++/libbase for smaller size
Anton Hanssonda4972f2020-01-08 09:48:18 +000028 stl: "c++_static",
Anton Hanssonb1a217c2020-11-30 11:43:05 +000029 static_libs: [
30 "libbase",
31 "libmodules-utils-build",
32 ],
Anton Hanssonda4972f2020-01-08 09:48:18 +000033}
34
Anton Hansson36e2b132019-12-19 12:10:53 +000035cc_binary {
36 name: "derive_sdk",
37 defaults: [ "derive_sdk-defaults" ],
38 apex_available: [ "com.android.sdkext" ],
Anton Hansson36e2b132019-12-19 12:10:53 +000039}
40
41// Work around testing using a 64-bit test suite on 32-bit test device by
42// using a prefer32 version of derive_sdk in testing.
43cc_binary {
44 name: "derive_sdk_prefer32",
45 defaults: [ "derive_sdk-defaults" ],
46 compile_multilib: "prefer32",
47 stem: "derive_sdk",
48 apex_available: [ "test_com.android.sdkext" ],
Colin Crossc9d98212020-04-08 15:57:57 -070049 installable: false,
Anton Hansson36e2b132019-12-19 12:10:53 +000050}
51
Anton Hanssonda4972f2020-01-08 09:48:18 +000052prebuilt_etc {
53 name: "derive_sdk.rc",
54 src: "derive_sdk.rc",
55 installable: false,
56}