blob: b37b10e4bbb109f40cb9315650a53bca15a63c02 [file] [log] [blame]
Jackeagle59f7d842016-10-25 05:41:13 -04001# Versioning System For Bliss
2# Bliss RELEASE VERSION
3BLISS_VERSION_MAJOR = 14
4BLISS_VERSION_MINOR = 0
5# BLISS_VERSION_MAINTENANCE = Stable
6
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
Jackeagle644dd9d2019-09-16 10:01:03 -040013TARGET_PRODUCT_SHORT := $(subst bliss_,,$(BLISS_BUILDTYPE))
14
Jackeagle59f7d842016-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)
Jackeagle644dd9d2019-09-16 10:01:03 -040040BLISS_FINGERPRINT := Bliss/$(VERSION)/$(TARGET_PRODUCT_SHORT)/$(shell date +%Y%m%d)
Jackeagle59f7d842016-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) \
Jackeagle644dd9d2019-09-16 10:01:03 -040046 ro.bliss.changelog.version=Changelog-$(BLISS_VERSION) \
47 ro.bliss.fingerprint=$(BLISS_FINGERPRINT)