xref: /aosp_15_r20/build/make/target/product/sdk.mk (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1#
2# Copyright (C) 2014 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# This is a simple product that uses configures the minimum amount
18# needed to build the SDK (without the emulator).
19
20# Ensure all trunk-stable flags are available.
21$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk)
22
23# In order to build the bootclasspath sources, the bootclasspath needs to
24# be setup via default_art_config.mk. The sources only really make sense
25# together with a device (e.g. the emulator). So if the SDK sources change
26# to be built with the device, this could be removed.
27$(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk)
28
29$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
30
31PRODUCT_NAME := sdk
32PRODUCT_BRAND := Android
33PRODUCT_DEVICE := mainline_x86
34
35PRODUCT_BUILD_FROM_SOURCE_STUB := true
36
37# Use sources of mainline modules
38PRODUCT_MODULE_BUILD_FROM_SOURCE := true
39
40ifeq ($(WITHOUT_CHECK_API),true)
41  $(error WITHOUT_CHECK_API cannot be set to true for SDK product builds)
42endif
43
44# Include Wear flag values so that Wear-related APIs are build in sdks.
45PRODUCT_RELEASE_CONFIG_MAPS += $(wildcard vendor/google_shared/wear/release/release_config_map.textproto)
46