VirtualBox

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

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

Main: $(USER) => $(USERNAME)

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