VirtualBox

Changeset 69628 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
Nov 9, 2017 12:30:58 PM (7 years ago)
Author:
vboxsync
Message:

Config.kmk: Added two version macros: VBOX_FULL_VERSION_MAKE and VBOX_VERSION_PREREQ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r69601 r69628  
    217217#       prerelease from different publishers correctly.
    218218VBOX_VERSION_STRING = $(VBOX_VERSION_STRING_RAW)$(addprefix _,$(VBOX_VERSION_PRERELEASE))$(VBOX_BUILD_PUBLISHER)
     219
     220
     221## Make a numeric value from the major, minor and build numbers (params)
     222VBOX_FULL_VERSION_MAKE = $(expr ($1 << 24) | ($2 << 16) | $3)
     223
     224## Checks if the current VBox version is higher or equal to the major, minor and
     225# build numbers given as parameters.
     226# @returns 1 if true, 0 if false.  For use with 'if'.
     227VBOX_VERSION_PREREQ = $(expr $(call VBOX_FULL_VERSION_MAKE,$(VBOX_VERSION_MAJOR),$(VBOX_VERSION_MINOR),$(VBOX_VERSION_BUILD)) \
     228                             >= $(call VBOX_FULL_VERSION_MAKE,$1,$2,$3))
     229
    219230
    220231# Force the additions.sh script to get an exact additions build when we're doing the release.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette