Jackeagle | 59f7d84 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 1 | # Versioning System For Bliss |
| 2 | # Bliss RELEASE VERSION |
| 3 | BLISS_VERSION_MAJOR = 14 |
| 4 | BLISS_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 | |
Jackeagle | 644dd9d | 2019-09-16 10:01:03 -0400 | [diff] [blame] | 13 | TARGET_PRODUCT_SHORT := $(subst bliss_,,$(BLISS_BUILDTYPE)) |
| 14 | |
Jackeagle | 59f7d84 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 15 | # Set BLISS_BUILDTYPE |
| 16 | ifdef BLISS_NIGHTLY |
| 17 | BLISS_BUILDTYPE := NIGHTLY |
| 18 | endif |
| 19 | ifdef BLISS_EXPERIMENTAL |
| 20 | BLISS_BUILDTYPE := EXPERIMENTAL |
| 21 | endif |
| 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!) |
| 26 | ifdef BLISS_BUILDTYPE |
| 27 | else |
| 28 | BLISS_BUILDTYPE := UNOFFICIAL |
| 29 | endif |
| 30 | |
| 31 | # Set BLISS version |
| 32 | ifdef BLISS_RELEASE |
| 33 | BLISS_VERSION := Bliss-v$(VERSION) |
| 34 | else |
| 35 | BLISS_VERSION := Bliss-v$(VERSION)-$(BLISS_BUILD)-$(BLISS_BUILDTYPE)-$(shell date +%Y%m%d) |
| 36 | endif |
| 37 | |
| 38 | BLISS_DISPLAY_VERSION := $(VERSION) |
| 39 | BLISS_DISPLAY_BUILDTYPE := $(BLISS_BUILDTYPE) |
Jackeagle | 644dd9d | 2019-09-16 10:01:03 -0400 | [diff] [blame] | 40 | BLISS_FINGERPRINT := Bliss/$(VERSION)/$(TARGET_PRODUCT_SHORT)/$(shell date +%Y%m%d) |
Jackeagle | 59f7d84 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 41 | |
| 42 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 43 | ro.bliss.version=$(BLISS_DISPLAY_VERSION) \ |
| 44 | ro.bliss.build.status=$(BLISS_BUILDTYPE) \ |
| 45 | ro.bliss.releasetype=$(BLISS_BUILDTYPE) \ |
Jackeagle | 644dd9d | 2019-09-16 10:01:03 -0400 | [diff] [blame] | 46 | ro.bliss.changelog.version=Changelog-$(BLISS_VERSION) \ |
| 47 | ro.bliss.fingerprint=$(BLISS_FINGERPRINT) |