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 |
|
---|
27 | SUB_DEPTH = ../../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # Utility to play sine wave to Default Audio Device.
|
---|
32 | #
|
---|
33 | if 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
|
---|
39 | endif
|
---|
40 |
|
---|
41 | #
|
---|
42 | # The Validation Kit Audio Test (VKAT) utility.
|
---|
43 | #
|
---|
44 | VKAT_PATH_AUDIO = $(PATH_ROOT)/src/VBox/Devices/Audio
|
---|
45 |
|
---|
46 | ifn1of ($(KBUILD_TARGET), os2 freebsd netbsd openbsd)
|
---|
47 | PROGRAMS += vkat
|
---|
48 | endif
|
---|
49 | vkat_TEMPLATE = VBoxValidationKitR3
|
---|
50 | vkat_VBOX_IMPORT_CHECKER.win.x86 = nt4
|
---|
51 | vkat_DEFS = VBOX_AUDIO_VKAT IN_VMM_R3 IN_VMM_STATIC
|
---|
52 | vkat_INCS = \
|
---|
53 | $(PATH_ROOT)/src/VBox/Devices/build \
|
---|
54 | $(PATH_ROOT)/src/VBox/Devices
|
---|
55 | vkat_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.
|
---|
69 | vkat_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
70 | vkat_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 |
|
---|
78 | ifdef 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
|
---|
83 | endif
|
---|
84 |
|
---|
85 | ifdef 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
|
---|
90 | endif
|
---|
91 |
|
---|
92 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
93 | vkat_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
94 | vkat_SOURCES += \
|
---|
95 | $(VKAT_PATH_AUDIO)/DrvHostAudioOss.cpp
|
---|
96 | endif
|
---|
97 |
|
---|
98 | vkat_SOURCES.win += \
|
---|
99 | $(VKAT_PATH_AUDIO)/DrvHostAudioDSound.cpp \
|
---|
100 | $(VKAT_PATH_AUDIO)/DrvHostAudioWasApi.cpp
|
---|
101 | ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
102 | vkat_DEFS.win += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
103 | vkat_SOURCES.win += \
|
---|
104 | $(VKAT_PATH_AUDIO)/DrvHostAudioDSoundMMNotifClient.cpp
|
---|
105 | endif
|
---|
106 |
|
---|
107 | vkat_SOURCES.darwin = \
|
---|
108 | $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudio.cpp \
|
---|
109 | $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudioAuth.mm
|
---|
110 | vkat_LDFLAGS.darwin = \
|
---|
111 | -framework CoreAudio \
|
---|
112 | -framework AudioUnit \
|
---|
113 | -framework AudioToolbox \
|
---|
114 | -framework Foundation
|
---|
115 | ifn1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6)
|
---|
116 | vkat_LDFLAGS.darwin += \
|
---|
117 | -framework AVFoundation
|
---|
118 | endif
|
---|
119 |
|
---|
120 |
|
---|
121 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|