VirtualBox

Changeset 48164 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Aug 29, 2013 4:35:14 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88547
Message:

Main: phase out the use of the XPCOM glue (wasn't ever used), and rename tstVBoxAPILinux to tstVBoxAPIXPCOM to match the content
libs/xpcom: strip down the standalone XPCOM glue code and disable building it as so far no one uses it

Location:
trunk/src/VBox/Main/testcase
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r47779 r48164  
    2828        tstAPI \
    2929        $(if $(VBOX_OSE),,tstOVF) \
    30         $(if $(VBOX_WITH_XPCOM),tstVBoxAPILinux,tstVBoxAPIWin) \
     30        $(if $(VBOX_WITH_XPCOM),tstVBoxAPIXPCOM,tstVBoxAPIWin) \
    3131        $(if $(VBOX_WITH_RESOURCE_USAGE_API),tstCollector,) \
    3232        $(if $(VBOX_WITH_GUEST_CONTROL),tstGuestCtrlParseBuffer,) \
     
    5555samplesXPCOM_MODE = a+r,u+w
    5656samplesXPCOM_INST = $(INST_SDK)bindings/xpcom/samples/
    57 samplesXPCOM_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
     57samplesXPCOM_SOURCES = tstVBoxAPIXPCOM.cpp makefile.tstVBoxAPIXPCOM=>Makefile
    5858
    5959
     
    8989
    9090#
    91 # tstVBoxAPILinux
     91# tstVBoxAPIXPCOM
    9292#
    9393# We only build the testcase here to make sure it builds.
    9494# It comes with a custom makefile which should be tested as well!
    9595#
    96 tstVBoxAPILinux_TEMPLATE = VBOXMAINCLIENTTSTEXE
    97 tstVBoxAPILinux_SOURCES  = tstVBoxAPILinux.cpp
     96tstVBoxAPIXPCOM_TEMPLATE = VBOXMAINCLIENTTSTEXE
     97tstVBoxAPIXPCOM_SOURCES  = tstVBoxAPIXPCOM.cpp
    9898
    9999
  • trunk/src/VBox/Main/testcase/makefile.tstVBoxAPIXPCOM

    r48086 r48164  
    11#
    2 # tstVBoxAPILinux makefile
     2# tstVBoxAPIXPCOM makefile
    33#
    44#
    5 # Copyright (C) 2006-2010 Oracle Corporation
     5# Copyright (C) 2006-2013 Oracle Corporation
    66#
    77# This file is part of VirtualBox Open Source Edition (OSE), as
     
    3636# Link with the public XPCOM libraries
    3737#
    38 tstVBoxAPILinux: tstVBoxAPILinux.o
     38tstVBoxAPIXPCOM: tstVBoxAPIXPCOM.o
    3939        g++ -g -o $@ $^ \
    4040                $(PATH_BIN)/VBoxXPCOM.so \
     
    4242                -ldl -lpthread
    4343
    44 tstVBoxAPILinux.o: tstVBoxAPILinux.cpp
    45         g++ -c -DRT_OS_LINUX -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPILinux.cpp
     44tstVBoxAPIXPCOM.o: tstVBoxAPIXPCOM.cpp
     45        g++ -c -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPIXPCOM.cpp
    4646
    4747clean:
    48         rm -f tstVBoxAPILinux tstVBoxAPILinux.o
     48        rm -f tstVBoxAPIXPCOM tstVBoxAPIXPCOM.o
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r48086 r48164  
    6767 * Include the XPCOM headers
    6868 */
    69 
    70 #if defined(XPCOM_GLUE)
    71 #include <nsXPCOMGlue.h>
    72 #endif
    73 
    7469#include <nsMemory.h>
    7570#include <nsString.h>
     
    472467     * What we do is just follow the required steps to get an instance
    473468     * of our main interface, which is IVirtualBox.
    474      */
    475 #if defined(XPCOM_GLUE)
    476     XPCOMGlueStartup(nsnull);
    477 #endif
    478 
    479     /*
     469     *
    480470     * Note that we scope all nsCOMPtr variables in order to have all XPCOM
    481471     * objects automatically released before we call NS_ShutdownXPCOM at the
     
    578568     */
    579569    NS_ShutdownXPCOM(nsnull);
    580 #if defined(XPCOM_GLUE)
    581     XPCOMGlueShutdown();
    582 #endif
    583570    RTPrintf("Done!\n");
    584571    return 0;
Note: See TracChangeset for help on using the changeset viewer.

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