VirtualBox

source: vbox/trunk/src/VBox/Main/testcase/Makefile.kmk@ 10868

Last change on this file since 10868 was 10868, checked in by vboxsync, 17 years ago

PerfAPI: Windows collector re-worked to extract raw counters via WMI. Filtering for queries added. Security initialization is added to svcmain to access perf enumerators.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Makefile.kmk 10868 2008-07-24 18:34:35Z vboxsync $
2## @file
3# Sub-Makefile for the VBox API testcases.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../..
24else
25DEPTH ?= ../../../..
26SUB_DEPTH = ..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30ifdef VBOX_WITH_TESTCASES
31 PROGRAMS += tstAPI
32 PROGRAMS.linux += tstVBoxAPILinux
33 # That testcase is actually not linux specific, it's generic XPCOM.
34 PROGRAMS.solaris += tstVBoxAPILinux
35 PROGRAMS.win += tstVBoxAPIWin
36else ifeq ($(USERNAME),dmik)
37 PROGRAMS += tstAPI
38 PROGRAMS.linux += tstVBoxAPILinux
39 # That testcase is actually not linux specific, it's generic XPCOM.
40 PROGRAMS.solaris += tstVBoxAPILinux
41 PROGRAMS.win += tstVBoxAPIWin
42endif # VBOX_WITH_TESTCASES
43
44INSTALLS += samples
45
46#
47# The samples
48#
49samples_INST = $(INST_SDK_SAMPLES)/API/
50samples_MODE = a+r,u+w
51ifeq ($(KBUILD_TARGET),win)
52 samples_SOURCES = tstVBoxAPIWin.cpp
53else
54 samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
55 ifdef VBOX_WITH_TESTCASES
56 samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
57 endif
58endif
59
60#
61# tstAPI
62#
63tstAPI_TEMPLATE = VBOXMAINCLIENTEXE
64tstAPI_SOURCES = tstAPI.cpp
65ifeq ($(KBUILD_TARGET),win) ## @todo just add this to the template.
66tstAPI_DEPS = $(VBOX_PATH_SDK)/include/VirtualBox.h
67else
68tstAPI_DEPS = $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h
69endif
70ifdef VBOX_WITH_RESOURCE_USAGE_API
71tstAPI_DEFS += VBOX_WITH_RESOURCE_USAGE_API
72endif
73
74
75#
76# tstVBoxAPILinux
77#
78# We only build the testcase here to make sure it builds.
79# It comes with a custom makefile which should be tested as well!
80#
81tstVBoxAPILinux_TEMPLATE = VBOXR3
82tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
83tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
84tstVBoxAPILinux_LDFLAGS.solaris += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/../../..'
85tstVBoxAPILinux_INCS = \
86 $(VBOX_XPCOM_INCS) \
87 $(PATH_BIN)/sdk/include
88tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
89tstVBoxAPILinux_LIBS = $(LIB_XPCOM)
90tstVBoxAPILinux_DEPS = \
91 $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h
92
93#
94# tstVBoxAPIWin
95#
96tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENTEXE
97tstVBoxAPIWin_SOURCES = \
98 tstVBoxAPIWin.cpp \
99 $(PATH_BIN)/sdk/lib/VirtualBox_i.c
100tstVBoxAPIWin_DEPS = \
101 $(VBOX_PATH_SDK)/include/VirtualBox.h
102
103# generate rules.
104include $(KBUILD_PATH)/subfooter.kmk
105
Note: See TracBrowser for help on using the repository browser.

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