blob: 11196c5e0965b426bd4101e62865dc2c05e2330b [file] [log] [blame]
Jackeagle59f7d842016-10-25 05:41:13 -04001# Versioning System For Bliss
2# Bliss RELEASE VERSION
Jackeaglee7ed2772021-10-10 05:27:28 -04003BLISS_VERSION_MAJOR = 15
4BLISS_VERSION_MINOR = 0
Jackeagle8e823692021-11-10 15:20:40 +01005BLISS_CODENAME = Arcadia
Jackeaglee7ed2772021-10-10 05:27:28 -04006BLISS_VERSION_MAINTENANCE = Alpha
Jackeagle59f7d842016-10-25 05:41:13 -04007
Alexbff99c92019-02-20 21:01:28 -06008ifneq ($(SIGNING_KEYS),)
9 PRODUCT_DEFAULT_DEV_CERTIFICATE := $(SIGNING_KEYS)/releasekey
10endif
11
Jackeagleee73e6c2020-04-22 17:32:53 +020012# Bliss Android version
Jackeaglee7ed2772021-10-10 05:27:28 -040013BLISS_VERSION_STATIC = 12.0
Jackeagleee73e6c2020-04-22 17:32:53 +020014
Jackeaglea1d98162020-10-04 06:00:55 -040015# Set Bliss Build Variant
Jackeagle2532fce2021-10-10 22:32:41 -040016BLISS_BUILD_VARIANT ?= vanilla
Jackeaglea1d98162020-10-04 06:00:55 -040017
Jackeagle59f7d842016-10-25 05:41:13 -040018#ifdef BLISS_VERSION_MAINTENANCE
Jackeagle8e823692021-11-10 15:20:40 +010019 VERSION := $(BLISS_VERSION_MAJOR).$(BLISS_VERSION_MINOR)-$(BLISS_CODENAME)-$(BLISS_VERSION_MAINTENANCE)
Jackeagle59f7d842016-10-25 05:41:13 -040020#else
Jackeaglee7ed2772021-10-10 05:27:28 -040021# VERSION := $(BLISS_VERSION_MAJOR).$(BLISS_VERSION_MINOR)
Jackeagle59f7d842016-10-25 05:41:13 -040022#endif
23
Jackeagle644dd9d2019-09-16 10:01:03 -040024TARGET_PRODUCT_SHORT := $(subst bliss_,,$(BLISS_BUILDTYPE))
25
Jackeagle59f7d842016-10-25 05:41:13 -040026# Set BLISS_BUILDTYPE
27ifdef BLISS_NIGHTLY
28 BLISS_BUILDTYPE := NIGHTLY
29endif
30ifdef BLISS_EXPERIMENTAL
31 BLISS_BUILDTYPE := EXPERIMENTAL
32endif
33#ifdef BLISS_MAINTENANCE
34# BLISS_BUILDTYPE := MAINTENANCE
35#endif
36# Set Unofficial if no buildtype set (Buildtype should ONLY be set by BLISS Devs!)
37ifdef BLISS_BUILDTYPE
38else
39 BLISS_BUILDTYPE := UNOFFICIAL
40endif
41
42# Set BLISS version
43ifdef BLISS_RELEASE
44 BLISS_VERSION := Bliss-v$(VERSION)
45else
Jackeaglea1d98162020-10-04 06:00:55 -040046 BLISS_VERSION := Bliss-v$(VERSION)-$(BLISS_BUILD)-$(BLISS_BUILDTYPE)-$(BLISS_BUILD_VARIANT)-$(shell date +%Y%m%d)
Jackeagle59f7d842016-10-25 05:41:13 -040047endif
48
49BLISS_DISPLAY_VERSION := $(VERSION)
50BLISS_DISPLAY_BUILDTYPE := $(BLISS_BUILDTYPE)
Jackeagle644dd9d2019-09-16 10:01:03 -040051BLISS_FINGERPRINT := Bliss/$(VERSION)/$(TARGET_PRODUCT_SHORT)/$(shell date +%Y%m%d)
Jackeaglef8dd3cf2021-07-10 19:37:57 +020052BLISS_BUILD_TIMESTAMP := $(shell date +%Y%m%d)