VirtualBox

Changeset 33679 in vbox


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

IPRT: Added RTBldCfgTarget, RTBldCfgTargetArch, RTBldCfgTargetDotArch and RTBldCfgType.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/buildconfig.h

    r28800 r33679  
    8383RTDECL(uint32_t)     RTBldCfgVersionBuild(void);
    8484
     85/**
     86 * Gets the build target name.
     87 *
     88 * @returns Read only build target string.
     89 */
     90RTDECL(const char *) RTBldCfgTarget(void);
     91
     92/**
     93 * Gets the build target architecture name.
     94 *
     95 * @returns Read only build target architecture string.
     96 */
     97RTDECL(const char *) RTBldCfgTargetArch(void);
     98
     99/**
     100 * Gets the build target-dot-architecture name.
     101 *
     102 * @returns Read only build target-dot-architecture string.
     103 */
     104RTDECL(const char *) RTBldCfgTargetDotArch(void);
     105
     106/**
     107 * Gets the build type name.
     108 *
     109 * @returns Read only build type string.
     110 */
     111RTDECL(const char *) RTBldCfgType(void);
     112
    85113
    86114/** @} */
  • 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