VirtualBox

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

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

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 (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
18DEPTH = ../../../..
19include $(PATH_KBUILD)/header.kmk
20
21ifdef VBOX_WITH_TESTCASES
22 PROGRAMS = tstAPI
23 PROGRAMS.linux = tstVBoxAPILinux
24 PROGRAMS.win = tstVBoxAPIWin
25else ifeq ($(USERNAME),dmik)
26 PROGRAMS = tstAPI
27 PROGRAMS.linux = tstVBoxAPILinux
28 PROGRAMS.win = tstVBoxAPIWin
29endif # VBOX_WITH_TESTCASES
30
31INSTALLS = samples
32
33#
34# The samples
35#
36samples_INST = $(INST_SDK_SAMPLES)/API/
37samples_MODE = a+r,u+w
38ifeq ($(BUILD_TARGET),win)
39 samples_SOURCES = tstVBoxAPIWin.cpp
40else
41 samples_SOURCES = tstVBoxAPILinux.cpp makefile.tstVBoxAPILinux=>Makefile
42 ifdef VBOX_WITH_TESTCASES
43 samples_SYMLINKS = tstVBoxAPILinux=>../../../tstVBoxAPILinux
44 endif
45endif
46
47#
48# tstAPI
49#
50tstAPI_TEMPLATE = VBOXMAINCLIENTEXE
51tstAPI_SOURCES = tstAPI.cpp
52
53#
54# tstVBoxAPILinux
55#
56# We only build the testcase here to make sure it builds.
57# It comes with a custom makefile which should be tested as well!
58#
59tstVBoxAPILinux_TEMPLATE = VBOXR3
60tstVBoxAPILinux_SOURCES = tstVBoxAPILinux.cpp
61tstVBoxAPILinux_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar
62tstVBoxAPILinux_INCS = \
63 $(VBOX_XPCOM_INCS) \
64 $(PATH_BIN)/sdk/include
65tstVBoxAPILinux_LIBPATH = $(LIBPATH_XPCOM)
66tstVBoxAPILinux_LIBS = $(LIB_XPCOM)
67
68#
69# tstVBoxAPIWin
70#
71tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENTEXE
72tstVBoxAPIWin_SOURCES = \
73 tstVBoxAPIWin.cpp \
74 $(PATH_BIN)/sdk/lib/VirtualBox_i.c
75
76# generate rules.
77include $(PATH_KBUILD)/footer.kmk
78
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