VirtualBox

Changeset 22823 in vbox


Ignore:
Timestamp:
Sep 7, 2009 7:52:08 PM (15 years ago)
Author:
vboxsync
Message:

replaced VBOX_SVN_REV by RTBldCfgRevision[Str]()

Location:
trunk/src/VBox
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r22396 r22823  
    463463Graphics/DevVGA.cpp_DEPS = $(PATH_VgaBiosBin)/vbetables.h
    464464
    465 # Reporting it to the guest.
    466 VMMDev/VMMDev.cpp_DEFS   = VBOX_SVN_REV=$(VBOX_SVN_REV)
    467 VMMDev/VMMDev.cpp_DEPS   = $(VBOX_SVN_REV_KMK)
    468 PC/DevPcBios.cpp_DEFS    = VBOX_SVN_REV=$(VBOX_SVN_REV)
    469 PC/DevPcBios.cpp_DEPS    = $(VBOX_SVN_REV_KMK)
    470 
    471465
    472466#
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r21889 r22823  
    2929
    3030#include <VBox/log.h>
    31 #include <VBox/version.h>
    3231#include <iprt/assert.h>
    3332#include <iprt/alloc.h>
     33#include <iprt/buildconfig.h>
    3434#include <iprt/file.h>
    3535#include <iprt/string.h>
     
    11511151    char* pszVBoxVer, *pszVBoxRev;
    11521152    RTStrAPrintf(&pszVBoxVer, "vboxVer_%d.%d.%d",
    1153                   VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR, VBOX_VERSION_BUILD);
    1154     RTStrAPrintf(&pszVBoxRev, "vboxRev_%ld", VBOX_SVN_REV);
     1153                  RTBldCfgVersionMajor(), RTBldCfgVersionMinor(), RTBldCfgVersionBuild());
     1154    RTStrAPrintf(&pszVBoxRev, "vboxRev_%ld", RTBldCfgRevision());
    11551155    READCFGSTR("DmiOEMVBoxVer", pszDmiOEMVBoxVer, pszVBoxVer);
    11561156    READCFGSTR("DmiOEMVBoxRev", pszDmiOEMVBoxRev, pszVBoxRev);
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r22793 r22823  
    3535#include <VBox/err.h>
    3636#include <VBox/vm.h> /* for VM_IS_EMT */
    37 #include <VBox/version.h>
    3837
    3938#include <iprt/assert.h>
     39#include <iprt/buildconfig.h>
    4040#include <iprt/string.h>
    4141#include <iprt/time.h>
     
    16321632                               pRequestHeader->rc = VERR_INVALID_PARAMETER);
    16331633            VMMDevReqHostVersion *pReqHostVer = (VMMDevReqHostVersion*)pRequestHeader;
    1634             pReqHostVer->major = VBOX_VERSION_MAJOR;
    1635             pReqHostVer->minor = VBOX_VERSION_MINOR;
    1636             pReqHostVer->build = VBOX_VERSION_BUILD;
    1637             pReqHostVer->revision = VBOX_SVN_REV;
     1634            pReqHostVer->major = RTBldCfgVersionMajor();
     1635            pReqHostVer->minor = RTBldCfgVersionMinor();
     1636            pReqHostVer->build = RTBldCfgVersionBuild();
     1637            pReqHostVer->revision = RTBldCfgRevision();
    16381638            pReqHostVer->features = VMMDEV_HVF_HGCM_PHYS_PAGE_LIST;
    16391639            pReqHostVer->header.rc = VINF_SUCCESS;
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r22816 r22823  
    193193endif
    194194
    195 VirtualBox_src/main.cpp_DEFS += VBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\"
    196 VirtualBox_src/main.cpp_DEPS += $(VBOX_VERSION_MK)
    197 
    198195ifdef VBOX_BLEEDING_EDGE
    199196VirtualBox_src/VBoxConsoleWnd.cpp_DEFS += \
    200     VBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
    201     VBOX_SVN_REV=\"$(VBOX_SVN_REV)\" \
    202197    VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
    203198VirtualBox_src/VBoxSelectorWnd.cpp_DEFS += \
    204     VBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
    205     VBOX_SVN_REV=\"$(VBOX_SVN_REV)\" \
    206199    VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
    207200VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
     
    209202VirtualBox_src/main.cpp_DEFS += \
    210203    VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
    211 VirtualBox_src/VBoxConsoleWnd.cpp_DEPS += $(VBOX_VERSION_MK) $(VBOX_SVN_REV_KMK)
    212 VirtualBox_src/VBoxSelectorWnd.cpp_DEPS += $(VBOX_VERSION_MK) $(VBOX_SVN_REV_KMK)
    213204endif
    214205
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r22816 r22823  
    7272#endif
    7373
     74#include <iprt/buildconfig.h>
    7475#include <iprt/param.h>
    7576#include <iprt/path.h>
     
    16471648
    16481649#ifdef VBOX_BLEEDING_EDGE
    1649     caption_prefix += QString(" EXPERIMENTAL build "VBOX_VERSION_STRING" r"VBOX_SVN_REV" - "VBOX_BLEEDING_EDGE);
     1650    caption_prefix += QString(" EXPERIMENTAL build ")
     1651                   + QString(RTBldCfgVersion())
     1652                   + QString("r")
     1653                   + QString(RTBldCfgRevisionStr())
     1654                   + QString(" - "VBOX_BLEEDING_EDGE);
    16501655#endif
    16511656    /*
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r22391 r22823  
    4949#include <QDesktopWidget>
    5050#include <QToolButton>
     51
     52#include <iprt/buildconfig.h>
    5153
    5254// VBoxVMDetailsView class
     
    12921294
    12931295#ifdef VBOX_BLEEDING_EDGE
    1294     title += QString(" EXPERIMENTAL build "VBOX_VERSION_STRING" r"VBOX_SVN_REV" - "VBOX_BLEEDING_EDGE);
     1296    title += QString(" EXPERIMENTAL build ")
     1297          +  QString(RTBldCfgVersion())
     1298          +  QString(" r")
     1299          +  QString(RTBldCfgRevisionStr())
     1300          +  QString(" - "VBOX_BLEEDING_EDGE);
    12951301#endif
    12961302
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r22612 r22823  
    5050#endif
    5151
     52#include <iprt/buildconfig.h>
    5253#include <iprt/err.h>
    5354#include <iprt/initterm.h>
     
    241242#endif
    242243
    243     RTPrintf("Sun VirtualBox Graphical User Interface "VBOX_VERSION_STRING"\n"
     244    RTPrintf("Sun VirtualBox Graphical User Interface %s\n"
    244245            "(C) 2005-2009 Sun Microsystems, Inc.\n"
    245246            "All rights reserved.\n"
     
    263264# endif
    264265            "\n",
     266            RTBldCfgVersion(),
    265267            mode.toLatin1().constData(),
    266268            dflt.toLatin1().constData());
  • trunk/src/VBox/VMM/Makefile.kmk

    r22781 r22823  
    514514endif
    515515
    516 #
    517 # For vmmGetSvnRev.
    518 #
    519 VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
    520516
    521517include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r21649 r22823  
    3131#include <VBox/param.h>
    3232#include <VBox/hwaccm.h>
     33#include <iprt/buildconfig.h>
    3334
    3435
     
    139140VMMDECL(uint32_t) VMMGetSvnRev(void)
    140141{
    141     return VBOX_SVN_REV;
     142    return RTBldCfgRevision();
    142143}
    143144
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