1# 2# Copyright (C) 2021 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$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk) 18$(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) 19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) 20$(call inherit-product, $(SRC_TARGET_DIR)/product/cfi-common.mk) 21$(call inherit-product, $(SRC_TARGET_DIR)/product/memtag-common.mk) 22 23# Enables treble, which enabled certain -D compilation flags. In particular, libhidlbase 24# uses -DENFORCE_VINTF_MANIFEST. See b/185759877 25PRODUCT_SHIPPING_API_LEVEL := 29 26 27# If true, this builds the mainline modules from source. This overrides any 28# prebuilts selected via RELEASE_APEX_CONTRIBUTIONS_* build flags for the 29# current release config. 30PRODUCT_MODULE_BUILD_FROM_SOURCE := true 31 32# Build sdk from source if the branch is not using slim manifests. 33ifneq (,$(strip $(wildcard frameworks/base/Android.bp))) 34 UNBUNDLED_BUILD_SDKS_FROM_SOURCE := true 35endif 36 37PRODUCT_BRAND := Android 38