Changeset 48164 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Aug 29, 2013 4:35:14 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88547
- Location:
- trunk/src/VBox/Main/testcase
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/Makefile.kmk
r47779 r48164 28 28 tstAPI \ 29 29 $(if $(VBOX_OSE),,tstOVF) \ 30 $(if $(VBOX_WITH_XPCOM),tstVBoxAPI Linux,tstVBoxAPIWin) \30 $(if $(VBOX_WITH_XPCOM),tstVBoxAPIXPCOM,tstVBoxAPIWin) \ 31 31 $(if $(VBOX_WITH_RESOURCE_USAGE_API),tstCollector,) \ 32 32 $(if $(VBOX_WITH_GUEST_CONTROL),tstGuestCtrlParseBuffer,) \ … … 55 55 samplesXPCOM_MODE = a+r,u+w 56 56 samplesXPCOM_INST = $(INST_SDK)bindings/xpcom/samples/ 57 samplesXPCOM_SOURCES = tstVBoxAPI Linux.cpp makefile.tstVBoxAPILinux=>Makefile57 samplesXPCOM_SOURCES = tstVBoxAPIXPCOM.cpp makefile.tstVBoxAPIXPCOM=>Makefile 58 58 59 59 … … 89 89 90 90 # 91 # tstVBoxAPI Linux91 # tstVBoxAPIXPCOM 92 92 # 93 93 # We only build the testcase here to make sure it builds. 94 94 # It comes with a custom makefile which should be tested as well! 95 95 # 96 tstVBoxAPI Linux_TEMPLATE = VBOXMAINCLIENTTSTEXE97 tstVBoxAPI Linux_SOURCES = tstVBoxAPILinux.cpp96 tstVBoxAPIXPCOM_TEMPLATE = VBOXMAINCLIENTTSTEXE 97 tstVBoxAPIXPCOM_SOURCES = tstVBoxAPIXPCOM.cpp 98 98 99 99 -
trunk/src/VBox/Main/testcase/makefile.tstVBoxAPIXPCOM
r48086 r48164 1 1 # 2 # tstVBoxAPI Linuxmakefile2 # tstVBoxAPIXPCOM makefile 3 3 # 4 4 # 5 # Copyright (C) 2006-201 0Oracle Corporation5 # Copyright (C) 2006-2013 Oracle Corporation 6 6 # 7 7 # This file is part of VirtualBox Open Source Edition (OSE), as … … 36 36 # Link with the public XPCOM libraries 37 37 # 38 tstVBoxAPI Linux: tstVBoxAPILinux.o38 tstVBoxAPIXPCOM: tstVBoxAPIXPCOM.o 39 39 g++ -g -o $@ $^ \ 40 40 $(PATH_BIN)/VBoxXPCOM.so \ … … 42 42 -ldl -lpthread 43 43 44 tstVBoxAPI Linux.o: tstVBoxAPILinux.cpp45 g++ -c - DRT_OS_LINUX -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPILinux.cpp44 tstVBoxAPIXPCOM.o: tstVBoxAPIXPCOM.cpp 45 g++ -c -g -fshort-wchar $(addprefix -I, $(INCS_XPCOM)) $(addprefix -D, $(DEFS_XPCOM)) -o $@ tstVBoxAPIXPCOM.cpp 46 46 47 47 clean: 48 rm -f tstVBoxAPI Linux tstVBoxAPILinux.o48 rm -f tstVBoxAPIXPCOM tstVBoxAPIXPCOM.o -
trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp
r48086 r48164 67 67 * Include the XPCOM headers 68 68 */ 69 70 #if defined(XPCOM_GLUE)71 #include <nsXPCOMGlue.h>72 #endif73 74 69 #include <nsMemory.h> 75 70 #include <nsString.h> … … 472 467 * What we do is just follow the required steps to get an instance 473 468 * of our main interface, which is IVirtualBox. 474 */ 475 #if defined(XPCOM_GLUE) 476 XPCOMGlueStartup(nsnull); 477 #endif 478 479 /* 469 * 480 470 * Note that we scope all nsCOMPtr variables in order to have all XPCOM 481 471 * objects automatically released before we call NS_ShutdownXPCOM at the … … 578 568 */ 579 569 NS_ShutdownXPCOM(nsnull); 580 #if defined(XPCOM_GLUE)581 XPCOMGlueShutdown();582 #endif583 570 RTPrintf("Done!\n"); 584 571 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.