VirtualBox

Changeset 33679 in vbox for trunk/src


Ignore:
Timestamp:
Nov 2, 2010 10:44:01 AM (14 years ago)
Author:
vboxsync
Message:

IPRT: Added RTBldCfgTarget, RTBldCfgTargetArch, RTBldCfgTargetDotArch and RTBldCfgType.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

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

    r33678 r33679  
    108108        IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
    109109        IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
    110         IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
     110        IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
     111        IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
     112        IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
     113        IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
    111114
    112115#
  • trunk/src/VBox/Runtime/common/misc/buildconfig.cpp

    r28800 r33679  
    7979#endif
    8080
     81
     82#ifdef IPRT_BLDCFG_TARGET
     83RTDECL(const char *) RTBldCfgTarget(void)
     84{
     85    return IPRT_BLDCFG_TARGET;
     86}
     87#endif
     88
     89
     90#ifdef IPRT_BLDCFG_TARGET_ARCH
     91RTDECL(const char *) RTBldCfgTargetArch(void)
     92{
     93    return IPRT_BLDCFG_TARGET_ARCH;
     94}
     95#endif
     96
     97
     98#if defined(IPRT_BLDCFG_TARGET) && defined(IPRT_BLDCFG_TARGET_ARCH)
     99RTDECL(const char *) RTBldCfgTargetDotArch(void)
     100{
     101    return IPRT_BLDCFG_TARGET "." IPRT_BLDCFG_TARGET_ARCH;
     102}
     103#endif
     104
     105
     106#ifdef IPRT_BLDCFG_TYPE
     107RTDECL(const char *) RTBldCfgType(void)
     108{
     109    return IPRT_BLDCFG_TYPE;
     110}
     111#endif
     112
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