Makefile.kmk revision ca0ee85505c252493a3ee53577848ef8939f991b
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# $Id$
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync## @file
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Sub-Makefile for the Guest Control Host Service testcases.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Copyright (C) 2010 Sun Microsystems, Inc.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# available from http://www.virtualbox.org. This file is free software;
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# you can redistribute it and/or modify it under the terms of the GNU
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# General Public License (GPL) as published by the Free Software
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# additional information or have any questions.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncSUB_DEPTH = ../../../../..
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncif defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync # Set this in LocalConfig.kmk if you are working on the guest property
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync # service to automatically run the testcase at build time.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync # OTHERS += $(PATH_tstGuestControlSvc)/tstGuestControlSvc.run
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync #
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync PROGRAMS += tstGuestControlSvc
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync TESTING += $(PATH_tstGuestPropSvc)/tstGuestControlSvc.run
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync tstGuestControlSvc_TEMPLATE = VBOXR3TSTEXE
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync # The second define here is to ensure that the testcase will run fast,
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync # without waiting for any thread synchronisation.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync tstGuestControlSvc_DEFS = VBOX_WITH_HGCM VBOX_GUEST_CONTROL_TEST_NOTHREAD
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync tstGuestControlSvc_SOURCES = \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync ../gctrl.cpp \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync ../service.cpp \
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync tstGuestControlSvc.cpp
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync tstGuestControlSvc_LIBS = $(LIB_RUNTIME)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync$$(PATH_tstGuestControlSvc)/tstGuestControlSvc.run: $$(INSTARGET_tstGuestControlSvc)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync export VBOX_LOG_DEST=nofile; $(INSTARGET_tstGuestControlSvc) quiet
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync $(QUIET)$(APPEND) -t "$@" "done"
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncendif
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync