blob: 0c5e95cfe1a22150879d0d055ebf2a14baf2785f [file] [log] [blame]
# Copyright (C) 2022 The LeafOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
PRODUCT_VERSION_MAJOR := 1
PRODUCT_VERSION_MINOR := 1
LEAF_BUILD_DATE := $(shell date -u +%Y%m%d)
# If unset set LEAF_BUILDTYPE to the env variable RELEASE_TYPE, or
# if that doesn't exist to "UNOFFICIAL"
ifndef LEAF_BUILDTYPE
ifdef RELEASE_TYPE
LEAF_BUILDTYPE := $(RELEASE_TYPE)
else
LEAF_BUILDTYPE := UNOFFICIAL
endif
endif
LEAF_FLAVOR ?= Vanilla
ifdef WITH_GMS
LEAF_FLAVOR := GMS
endif
# Internal version
LEAF_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)
# Display version
LEAF_DISPLAY_VERSION := $(LEAF_VERSION) | $(LEAF_FLAVOR)