ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# $Id$
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync## @file
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync# Sub-Makefile for the Guest Control Host Service testcases.
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync#
772269936494ffaddd0750ba9e28e805ba81398cvboxsync# Copyright (C) 2010-2012 Oracle Corporation
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
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.
bbc0a3fc49446bf8fa1fcfe669c10875701692bcvboxsync # OTHERS += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync #
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync PROGRAMS += tstGuestControlSvc
bbc0a3fc49446bf8fa1fcfe669c10875701692bcvboxsync TESTING += $(tstGuestControlSvc_0_OUTDIR)/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
6144154d0dabfabf32622da8f5f8afc82f31e763vboxsync$$(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run: $$(tstGuestControlSvc_1_STAGE_TARGET)
6144154d0dabfabf32622da8f5f8afc82f31e763vboxsync export VBOX_LOG_DEST=nofile; $(tstGuestControlSvc_1_STAGE_TARGET) quiet
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync $(QUIET)$(APPEND) -t "$@" "done"
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
ca0ee85505c252493a3ee53577848ef8939f991bvboxsyncendif
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(FILE_KBUILD_SUB_FOOTER)
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync