blob: 3d56a80a9158486e6742ded97b07f7086c980d34 [file] [log] [blame]
Jean-Baptiste Queruc3f42a92010-02-23 09:52:18 -08001#
Ying Wang1f371a12014-07-18 15:36:30 -07002# Copyright (C) 2014 The Android Open Source Project
Jean-Baptiste Queruc3f42a92010-02-23 09:52:18 -08003#
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
Anton Hansson228de7b2023-10-09 14:29:24 +000017# This is a simple product that uses configures the minimum amount
18# needed to build the SDK (without the emulator).
The Android Open Source Project88b60792009-03-03 19:28:42 -080019
Lee Shomberta64ebbd2024-03-21 16:08:50 -070020# Ensure all trunk-stable flags are available.
21$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk)
22
Anton Hanssondde748a2023-10-09 14:31:03 +000023# 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
Anton Hansson228de7b2023-10-09 14:29:24 +000029$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
Brett Chabot1e420b62012-04-16 18:29:48 -070030
Ying Wang2cebe0b2013-11-20 15:18:02 -080031PRODUCT_NAME := sdk
Anton Hansson228de7b2023-10-09 14:29:24 +000032PRODUCT_BRAND := Android
33PRODUCT_DEVICE := mainline_x86
34
Jihoon Kangc4dc1f62024-03-14 20:43:37 +000035PRODUCT_BUILD_FROM_SOURCE_STUB := true
36
Spandan Dase66f98f2024-04-02 18:08:01 +000037# Use sources of mainline modules
38PRODUCT_MODULE_BUILD_FROM_SOURCE := true
39
Jihoon Kangc4dc1f62024-03-14 20:43:37 +000040ifeq ($(WITHOUT_CHECK_API),true)
41 $(error WITHOUT_CHECK_API cannot be set to true for SDK product builds)
42endif
Yeabkal Wubshit4bf41fd2024-07-11 16:24:33 -070043
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)