blob: 4a04c4cc4514203dae5e35e670937ef58a9e7953 [file] [log] [blame]
Jackeagled031d942016-10-25 05:41:13 -04001# Versioning System For Bliss
2# Bliss RELEASE VERSION
Jackeagle23e27f02019-09-04 19:32:32 +02003BLISS_VERSION_MAJOR = 12
Jackeaglea4075602019-11-11 15:18:14 +01004BLISS_VERSION_MINOR = 1
5BLISS_VERSION_MAINTENANCE = Stable
Jackeagled031d942016-10-25 05:41:13 -04006
7#ifdef BLISS_VERSION_MAINTENANCE
8# VERSION := $(BLISS_VERSION_MAJOR).$(BLISS_VERSION_MINOR)-$(BLISS_VERSION_MAINTENANCE)
9#else
10 VERSION := $(BLISS_VERSION_MAJOR).$(BLISS_VERSION_MINOR)
11#endif
12
Jackeagle146fa522019-09-16 10:01:03 -040013TARGET_PRODUCT_SHORT := $(subst bliss_,,$(BLISS_BUILDTYPE))
14
Jackeagled031d942016-10-25 05:41:13 -040015# Set BLISS_BUILDTYPE
16ifdef BLISS_NIGHTLY
17 BLISS_BUILDTYPE := NIGHTLY
18endif
19ifdef BLISS_EXPERIMENTAL
20 BLISS_BUILDTYPE := EXPERIMENTAL
21endif
22#ifdef BLISS_MAINTENANCE
23# BLISS_BUILDTYPE := MAINTENANCE
24#endif
25# Set Unofficial if no buildtype set (Buildtype should ONLY be set by BLISS Devs!)
26ifdef BLISS_BUILDTYPE
27else
28 BLISS_BUILDTYPE := UNOFFICIAL
29endif
30
31# Set BLISS version
32ifdef BLISS_RELEASE
33 BLISS_VERSION := Bliss-v$(VERSION)
34else
35 BLISS_VERSION := Bliss-v$(VERSION)-$(BLISS_BUILD)-$(BLISS_BUILDTYPE)-$(shell date +%Y%m%d)
36endif
37
38BLISS_DISPLAY_VERSION := $(VERSION)
39BLISS_DISPLAY_BUILDTYPE := $(BLISS_BUILDTYPE)
Jackeagle146fa522019-09-16 10:01:03 -040040BLISS_FINGERPRINT := Bliss/$(VERSION)/$(TARGET_PRODUCT_SHORT)/$(shell date +%Y%m%d)
Jackeagled031d942016-10-25 05:41:13 -040041
42PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
43 ro.bliss.version=$(BLISS_DISPLAY_VERSION) \
44 ro.bliss.build.status=$(BLISS_BUILDTYPE) \
45 ro.bliss.releasetype=$(BLISS_BUILDTYPE) \
Jackeagle146fa522019-09-16 10:01:03 -040046 ro.bliss.changelog.version=Changelog-$(BLISS_VERSION) \
47 ro.bliss.fingerprint=$(BLISS_FINGERPRINT)