Jean-Baptiste Queru | c3f42a9 | 2010-02-23 09:52:18 -0800 | [diff] [blame] | 1 | # |
Ying Wang | 1f371a1 | 2014-07-18 15:36:30 -0700 | [diff] [blame] | 2 | # Copyright (C) 2014 The Android Open Source Project |
Jean-Baptiste Queru | c3f42a9 | 2010-02-23 09:52:18 -0800 | [diff] [blame] | 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 | |
Anton Hansson | 228de7b | 2023-10-09 14:29:24 +0000 | [diff] [blame] | 17 | # This is a simple product that uses configures the minimum amount |
| 18 | # needed to build the SDK (without the emulator). |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | |
Lee Shombert | a64ebbd | 2024-03-21 16:08:50 -0700 | [diff] [blame] | 20 | # Ensure all trunk-stable flags are available. |
| 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk) |
| 22 | |
Anton Hansson | dde748a | 2023-10-09 14:31:03 +0000 | [diff] [blame] | 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 | |
Anton Hansson | 228de7b | 2023-10-09 14:29:24 +0000 | [diff] [blame] | 29 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) |
Brett Chabot | 1e420b6 | 2012-04-16 18:29:48 -0700 | [diff] [blame] | 30 | |
Ying Wang | 2cebe0b | 2013-11-20 15:18:02 -0800 | [diff] [blame] | 31 | PRODUCT_NAME := sdk |
Anton Hansson | 228de7b | 2023-10-09 14:29:24 +0000 | [diff] [blame] | 32 | PRODUCT_BRAND := Android |
| 33 | PRODUCT_DEVICE := mainline_x86 |
| 34 | |
Jihoon Kang | c4dc1f6 | 2024-03-14 20:43:37 +0000 | [diff] [blame] | 35 | PRODUCT_BUILD_FROM_SOURCE_STUB := true |
| 36 | |
Spandan Das | e66f98f | 2024-04-02 18:08:01 +0000 | [diff] [blame] | 37 | # Use sources of mainline modules |
| 38 | PRODUCT_MODULE_BUILD_FROM_SOURCE := true |
| 39 | |
Jihoon Kang | c4dc1f6 | 2024-03-14 20:43:37 +0000 | [diff] [blame] | 40 | ifeq ($(WITHOUT_CHECK_API),true) |
| 41 | $(error WITHOUT_CHECK_API cannot be set to true for SDK product builds) |
| 42 | endif |
Yeabkal Wubshit | 4bf41fd | 2024-07-11 16:24:33 -0700 | [diff] [blame] | 43 | |
| 44 | # Include Wear flag values so that Wear-related APIs are build in sdks. |
| 45 | PRODUCT_RELEASE_CONFIG_MAPS += $(wildcard vendor/google_shared/wear/release/release_config_map.textproto) |