VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk@ 89545

Last change on this file since 89545 was 89544, checked in by vboxsync, 4 years ago

Audio/ValKit: Split up VKAT code into some more files as vkat.cpp got too big already. bugref:10008

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1# $Id: Makefile.kmk 89544 2021-06-07 11:06:40Z vboxsync $
2## @file
3# VirtualBox Validation Kit - Audio Utilities.
4#
5
6#
7# Copyright (C) 2010-2021 Oracle Corporation
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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# Utility to play sine wave to Default Audio Device.
32#
33if 0 # Disabled for now; does not work without WinMM.dll import validator files.
34 PROGRAMS.win += ntPlayToneWaveX
35 ntPlayToneWaveX_TEMPLATE = VBoxValidationKitR3
36 ntPlayToneWaveX_SOURCES = ntPlayToneWaveX.cpp
37 ntPlayToneWaveX_LIBS += \
38 WinMM.Lib
39endif
40
41#
42# The Validation Kit Audio Test (VKAT) utility.
43#
44VKAT_PATH_AUDIO = $(PATH_ROOT)/src/VBox/Devices/Audio
45
46ifn1of ($(KBUILD_TARGET), os2 freebsd netbsd openbsd)
47PROGRAMS += vkat
48endif
49vkat_TEMPLATE = VBoxValidationKitR3
50vkat_VBOX_IMPORT_CHECKER.win.x86 = nt4
51vkat_DEFS = VBOX_AUDIO_VKAT IN_VMM_R3 IN_VMM_STATIC
52vkat_INCS = \
53 $(PATH_ROOT)/src/VBox/Devices/build \
54 $(PATH_ROOT)/src/VBox/Devices
55vkat_SOURCES = \
56 vkat.cpp \
57 vkatCommon.cpp \
58 vkatCmdPlayRec.cpp \
59 vkatDriverStack.cpp \
60 $(VKAT_PATH_AUDIO)/AudioTest.cpp \
61 $(VKAT_PATH_AUDIO)/DrvAudio.cpp \
62 $(VKAT_PATH_AUDIO)/DrvHostAudioNull.cpp \
63 $(VKAT_PATH_AUDIO)/AudioMixer.cpp \
64 $(VKAT_PATH_AUDIO)/AudioMixBuffer.cpp \
65 $(VKAT_PATH_AUDIO)/AudioHlp.cpp
66
67
68# Self-test stuff.
69vkat_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
70vkat_SOURCES += \
71 vkatCmdSelfTest.cpp \
72 $(VKAT_PATH_AUDIO)/DrvHostAudioValidationKit.cpp \
73 $(VKAT_PATH_AUDIO)/AudioTestService.cpp \
74 $(VKAT_PATH_AUDIO)/AudioTestServiceClient.cpp \
75 $(VKAT_PATH_AUDIO)/AudioTestServiceProtocol.cpp \
76 $(VKAT_PATH_AUDIO)/AudioTestServiceTcp.cpp
77
78ifdef VBOX_WITH_AUDIO_PULSE
79 vkat_DEFS += VBOX_WITH_AUDIO_PULSE
80 vkat_SOURCES += \
81 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudioStubs.cpp \
82 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudio.cpp
83endif
84
85ifdef VBOX_WITH_AUDIO_ALSA
86 vkat_DEFS += VBOX_WITH_AUDIO_ALSA
87 vkat_SOURCES += \
88 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsa.cpp \
89 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsaStubs.cpp
90endif
91
92ifdef VBOX_WITH_AUDIO_OSS
93 vkat_DEFS += VBOX_WITH_AUDIO_OSS
94 vkat_SOURCES += \
95 $(VKAT_PATH_AUDIO)/DrvHostAudioOss.cpp
96endif
97
98vkat_SOURCES.win += \
99 $(VKAT_PATH_AUDIO)/DrvHostAudioDSound.cpp \
100 $(VKAT_PATH_AUDIO)/DrvHostAudioWasApi.cpp
101ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
102 vkat_DEFS.win += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
103 vkat_SOURCES.win += \
104 $(VKAT_PATH_AUDIO)/DrvHostAudioDSoundMMNotifClient.cpp
105endif
106
107vkat_SOURCES.darwin = \
108 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudio.cpp \
109 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudioAuth.mm
110vkat_LDFLAGS.darwin = \
111 -framework CoreAudio \
112 -framework AudioUnit \
113 -framework AudioToolbox \
114 -framework Foundation
115ifn1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6)
116 vkat_LDFLAGS.darwin += \
117 -framework AVFoundation
118endif
119
120
121include $(FILE_KBUILD_SUB_FOOTER)
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