VirtualBox

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

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

Audio/ValKit: A bit of include path tweaking for VKAT. bugref:10008

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 89403 2021-05-31 13:47:54Z 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 vkatDriverStack.cpp \
58 $(VKAT_PATH_AUDIO)/AudioTest.cpp \
59 $(VKAT_PATH_AUDIO)/DrvAudio.cpp \
60 $(VKAT_PATH_AUDIO)/DrvHostAudioNull.cpp \
61 $(VKAT_PATH_AUDIO)/AudioMixer.cpp \
62 $(VKAT_PATH_AUDIO)/AudioMixBuffer.cpp \
63 $(VKAT_PATH_AUDIO)/AudioHlp.cpp
64
65
66# Self-test stuff.
67vkat_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
68vkat_SOURCES += \
69 $(VKAT_PATH_AUDIO)/DrvHostAudioValidationKit.cpp \
70 $(VKAT_PATH_AUDIO)/AudioTestService.cpp \
71 $(VKAT_PATH_AUDIO)/AudioTestServiceClient.cpp \
72 $(VKAT_PATH_AUDIO)/AudioTestServiceProtocol.cpp \
73 $(VKAT_PATH_AUDIO)/AudioTestServiceTcp.cpp
74
75ifdef VBOX_WITH_AUDIO_PULSE
76 vkat_DEFS += VBOX_WITH_AUDIO_PULSE
77 vkat_SOURCES += \
78 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudioStubs.cpp \
79 $(VKAT_PATH_AUDIO)/DrvHostAudioPulseAudio.cpp
80endif
81
82ifdef VBOX_WITH_AUDIO_ALSA
83 vkat_DEFS += VBOX_WITH_AUDIO_ALSA
84 vkat_SOURCES += \
85 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsa.cpp \
86 $(VKAT_PATH_AUDIO)/DrvHostAudioAlsaStubs.cpp
87endif
88
89ifdef VBOX_WITH_AUDIO_OSS
90 vkat_DEFS += VBOX_WITH_AUDIO_OSS
91 vkat_SOURCES += \
92 $(VKAT_PATH_AUDIO)/DrvHostAudioOss.cpp
93endif
94
95vkat_SOURCES.win += \
96 $(VKAT_PATH_AUDIO)/DrvHostAudioDSound.cpp \
97 $(VKAT_PATH_AUDIO)/DrvHostAudioWasApi.cpp
98ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
99 vkat_DEFS.win += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
100 vkat_SOURCES.win += \
101 $(VKAT_PATH_AUDIO)/DrvHostAudioDSoundMMNotifClient.cpp
102endif
103
104vkat_SOURCES.darwin = \
105 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudio.cpp \
106 $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudioAuth.mm
107vkat_LDFLAGS.darwin = \
108 -framework CoreAudio \
109 -framework AudioUnit \
110 -framework AudioToolbox \
111 -framework Foundation
112ifn1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.4 10.5 10.6)
113 vkat_LDFLAGS.darwin += \
114 -framework AVFoundation
115endif
116
117
118include $(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