VirtualBox

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

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

ValKit/Audio: Put the backends in an array with command line names. Provide more sensible stream config values. bugref:10008

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 89058 2021-05-15 17:03:22Z 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.
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
46PROGRAMS += AudioTest
47AudioTest_TEMPLATE = VBoxValidationKitR3
48AudioTest_DEFS = VBOX_AUDIO_VKAT IN_VMM_R3 IN_VMM_STATIC
49AudioTest_INCS = \
50 $(PATH_ROOT)/src/VBox/Devices/build
51AudioTest_SOURCES = \
52 vkat.cpp \
53 $(VKAT_PATH_AUDIO)/AudioTest.cpp
54
55ifdef VBOX_WITH_AUDIO_PULSE
56 AudioTest_DEFS += VBOX_WITH_AUDIO_PULSE
57 AudioTest_SOURCES += \
58 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudioStubs.cpp \
59 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudio.cpp
60endif
61
62ifdef VBOX_WITH_AUDIO_ALSA
63 AudioTest_DEFS += VBOX_WITH_AUDIO_ALSA
64 AudioTest_SOURCES += \
65 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsa.cpp \
66 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsaStubs.cpp
67endif
68
69ifdef VBOX_WITH_AUDIO_OSS
70 AudioTest_DEFS += VBOX_WITH_AUDIO_OSS
71 AudioTest_SOURCES += \
72 $(VKAT_PATH_AUDIO)/DrvHostAudioOss.cpp
73endif
74
75AudioTest_SOURCES.darwin = \
76 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudio.cpp \
77 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudioAuth.mm
78AudioTest_LDFLAGS.darwin = \
79 -framework CoreAudio \
80 -framework AudioUnit \
81 -framework AudioToolbox \
82 -framework AVFoundation \
83 -framework Foundation
84
85include $(FILE_KBUILD_SUB_FOOTER)
86
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