VirtualBox

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


Ignore:
Timestamp:
Sep 9, 2008 12:35:24 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36242
Message:

Main/Makefiles: attempt at some cleanup

File:
1 edited

Legend:

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

    r12170 r12244  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../../..
    24 else
    25 DEPTH    ?= ../../../..
    26 SUB_DEPTH = ..
    27 endif
    2823include $(KBUILD_PATH)/subheader.kmk
    2924
    30 ifdef VBOX_ONLY_SDK
    31  VBOX_NEED_MSCOM_SAMPLE = 1
    32  VBOX_NEED_XPCOM_SAMPLE = 1
    33 else # !VBOX_ONLY_SDK
    34  ifeq ($(KBUILD_TARGET),win)
    35   VBOX_NEED_MSCOM_SAMPLE = 1
    36  else
    37   VBOX_NEED_XPCOM_SAMPLE = 1
    38  endif
    39  ifdef VBOX_WITH_TESTCASES
     25#
     26# Target and globals (small mess)
     27#
     28ifndef VBOX_ONLY_SDK
     29 if defined(VBOX_WITH_TESTCASES) || "$(USERNAME)" == "dmik"
    4030  PROGRAMS       += tstAPI
    41   PROGRAMS.linux += tstVBoxAPILinux
    42   # That testcase is actually not linux specific, it's generic XPCOM.
    43   PROGRAMS.solaris += tstVBoxAPILinux
    44   PROGRAMS.win   += tstVBoxAPIWin
     31  ifdef VBOX_WITH_XPCOM
     32   PROGRAMS      += tstVBoxAPILinux
     33  else
     34   PROGRAMS      += tstVBoxAPIWin
     35  endif
    4536  ifdef VBOX_WITH_RESOURCE_USAGE_API
    4637   PROGRAMS      += tstCollector
    4738  endif
    48  else ifeq ($(USERNAME),dmik)
    49   PROGRAMS       += tstAPI
    50   PROGRAMS.linux += tstVBoxAPILinux
    51   # That testcase is actually not linux specific, it's generic XPCOM.
    52   PROGRAMS.solaris += tstVBoxAPILinux
    53   PROGRAMS.win   += tstVBoxAPIWin
    5439 endif # !VBOX_WITH_TESTCASES
    5540endif # !VBOX_ONLY_SDK
    56 
    57 ifdef VBOX_NEED_MSCOM_SAMPLE
     41if defined(VBOX_ONLY_SDK) || !defined(VBOX_WITH_XPCOM)
    5842 INSTALLS += samplesMSCOM
    5943endif
    60 
    61 ifdef VBOX_NEED_XPCOM_SAMPLE
     44if defined(VBOX_ONLY_SDK) || defined(VBOX_WITH_XPCOM)
    6245 INSTALLS += samplesXPCOM
    6346endif
    6447
    65 # maybe, if will ship glue COM headers with SDK
    66 #INSTALLS += tstAPI
    6748
    6849#
     
    7758samplesXPCOM_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
    7859
     60
    7961#
    8062# tstAPI
     
    8466tstAPI_SOURCES  = tstAPI.cpp
    8567ifeq ($(KBUILD_TARGET),win) ## @todo just add this to the template.
    86 tstAPI_DEPS     = $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h
     68tstAPI_DEPS = $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h
    8769else
    88 tstAPI_DEPS     = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
     70tstAPI_DEPS = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
    8971endif
    9072ifdef VBOX_WITH_RESOURCE_USAGE_API
     
    9981# It comes with a custom makefile which should be tested as well!
    10082#
    101 tstVBoxAPILinux_TEMPLATE = VBOXR3
     83tstVBoxAPILinux_TEMPLATE = VBOXR3EXE
    10284tstVBoxAPILinux_SOURCES  = tstVBoxAPILinux.cpp
    10385tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
     
    11092        $(VBOX_PATH_SDK)/bindings/xpcom/include
    11193tstVBoxAPILinux_LIBPATH  = $(LIBPATH_XPCOM)
    112 tstVBoxAPILinux_LIBS     = $(LIB_XPCOM)
     94tstVBoxAPILinux_LIBS     = $(LIB_XPCOM) $(LIB_RUNTIME)
    11395tstVBoxAPILinux_DEPS     = \
    11496        $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
     97
    11598
    11699#
     
    123106tstVBoxAPIWin_DEPS     = \
    124107        $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h
     108
    125109
    126110#
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