VirtualBox

Ignore:
Timestamp:
Mar 21, 2019 12:20:13 PM (6 years ago)
Author:
vboxsync
Message:

bs3kit/VBoxBs3ObjConverter: Drop IPRT dependency to reduce rebuild effort. The code only needed Assert() and RTSortShell, so local hacks for the former and include the source file for the latter. bugref:9344

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r76553 r77823  
    3838# 64-bit relocation conversion tool (used via the parent Config.kmk).
    3939BLDPROGS += VBoxBs3ObjConverter
    40 VBoxBs3ObjConverter_TEMPLATE = VBoxAdvBldProg
     40VBoxBs3ObjConverter_TEMPLATE = VBoxBldProg
    4141VBoxBs3ObjConverter_DEFS     =  BS3KIT_BS3CLASS16CODE=$(BS3KIT_BS3CLASS16CODE)
    42 VBoxBs3ObjConverter_SOURCES  = $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3ObjConverter.cpp
     42VBoxBs3ObjConverter_SOURCES  = \
     43        $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3ObjConverter.cpp \
     44       $(PATH_ROOT)/src/VBox/Runtime/common/sort/shellsort.cpp
    4345
    4446
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp

    r76553 r77823  
    7474 * We will do some massaging for fixup records when this is used.  */
    7575static bool     g_f16BitWatcomC = false;
     76
     77
     78/*
     79 * Minimal assertion support.
     80 */
     81
     82RTDECL(bool) RTAssertShouldPanic(void)
     83{
     84    return true;
     85}
     86
     87
     88RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
     89{
     90    fprintf(stderr,
     91            "VBoxBs3ObjConverter: assertion failed in %s (%s:%u)!\n"
     92            "VBoxBs3ObjConverter: %s\n",
     93            pszFunction, pszFile, uLine, pszExpr);
     94}
    7695
    7796
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