VirtualBox

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

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

Main: Resurrected and extended XPCOM testcase.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Makefile.kmk 4246 2007-08-20 18:57:44Z vboxsync $
2## @file
3# Makefile for the VBox API testcases.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16
17DEPTH = ../../../..
18include $(PATH_KBUILD)/header.kmk
19
20ifdef VBOX_WITH_TESTCASES
21 PROGRAMS = tstAPI
22 PROGRAMS.linux = tstVBoxAPILinux
23 PROGRAMS.win = tstVBoxAPIWin
24else ifeq ($(USERNAME),dmik)
25 PROGRAMS = tstAPI
26 PROGRAMS.linux = tstVBoxAPILinux
27 PROGRAMS.win = tstVBoxAPIWin
28endif # VBOX_WITH_TESTCASES
29
30INSTALLS = samples
31
32#
33# The samples
34#
35samples_INST = $(INST_SDK_SAMPLES)/API/
36samples_MODE = a+r,u+w
37ifeq ($(BUILD_TARGET),win)
38 samples_SOURCES = tstVBoxAPIWin.cpp
39else
40 samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
41 ifdef VBOX_WITH_TESTCASES
42 samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
43 endif
44endif
45
46#
47# tstAPI
48#
49tstAPI_TEMPLATE = VBOXMAINCLIENTEXE
50tstAPI_SOURCES = tstAPI.cpp
51
52#
53# tstVBoxAPILinux
54#
55# We only build the testcase here to make sure it builds.
56# It comes with a custom makefile which should be tested as well!
57#
58tstVBoxAPILinux_TEMPLATE = VBOXR3
59tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
60tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
61tstVBoxAPILinux_INCS = \
62 $(VBOX_XPCOM_INCS) \
63 $(PATH_BIN)/sdk/include
64tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
65tstVBoxAPILinux_LIBS = \
66 $(PATH_BIN)/VBoxXPCOM.so \
67 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB)
68
69#
70# tstVBoxAPIWin
71#
72tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENTEXE
73tstVBoxAPIWin_SOURCES = \
74 tstVBoxAPIWin.cpp \
75 $(PATH_BIN)/sdk/lib/VirtualBox_i.c
76
77# generate rules.
78include $(PATH_KBUILD)/footer.kmk
79
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