VirtualBox

Changeset 98119 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jan 18, 2023 12:40:22 PM (23 months ago)
Author:
vboxsync
Message:

ValKit/Audio: Attempt at a more proper build fix for the vkathost.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk

    r98118 r98119  
    4848
    4949#
     50# Globals.
     51#
     52VBOX_PATH_SRC_DEVICES = $(PATH_ROOT)/src/VBox/Devices
     53VKAT_PATH_AUDIO       = $(VBOX_PATH_SRC_DEVICES)/Audio
     54
     55
     56#
    5057# Append what we build here to PROGRAMS (at the top because it's a bit messy).
    5158#
     
    5562  ifdef VBOX_WITH_HOST_SHIPPING_AUDIO_TEST
    5663   if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
    57     PROGRAMS.win += vkathost
     64    PROGRAMS += vkathost
    5865   endif
    5966  endif
     
    7986 ntPlayToneWaveX_SOURCES  = ntPlayToneWaveX.cpp
    8087 ntPlayToneWaveX_LIBS    += \
    81   WinMM.Lib
     88        WinMM.Lib
    8289endif
    8390
     
    8693# The Validation Kit Audio Test (VKAT) utility.
    8794#
    88 VKAT_PATH_AUDIO = $(PATH_ROOT)/src/VBox/Devices/Audio
    8995vkat_TEMPLATE = VBoxValidationKitR3
    9096vkat_VBOX_IMPORT_CHECKER.win.x86 = nt4
    9197vkat_DEFS     = VBOX_AUDIO_VKAT IN_VMM_R3 IN_VMM_STATIC
    92 vkat_INCS    += \
     98vkat_INCS     = \
    9399        $(PATH_ROOT)/src/VBox/Devices/build \
    94100        $(PATH_ROOT)/src/VBox/Devices \
     
    181187
    182188#
    183 # Build the valkit vkat to bin as VBoxAudioTest, so that it can be shipped with the host installer too.
    184 #
    185 # We use the same name as for the GAs, even if the binaries is the same as the
    186 # validation kit.
     189# Build the valkit vkat to bin as VBoxAudioTest, so that it can be shipped with
     190# the host installer too.
     191#
     192# Note: We also need to have this as a signed binary, so don't just copy the
     193#       vkat binary to bin/ directory but built this as an own binary.
    187194#
    188195ifdef VBOX_WITH_HOST_SHIPPING_AUDIO_TEST
    189196 ifn1of ($(KBUILD_TARGET), os2 freebsd netbsd openbsd)
    190197  ifndef VBOX_ONLY_ADDITIONS
    191    ifeq ($(KBUILD_TARGET), win)
    192     # We also need to have this as a signed binary, so don't just copy the vkat binary from below to
    193     # the bin/ directory but built this as an own binary.
    194     #
    195     ## @todo Not sure if we can make this more elegant, but works for me now.
    196     vkathost_TEMPLATE   = VBoxR3Static
    197     vkathost_EXTENDS    = vkat
    198     vkathost_NAME       = VBoxAudioTest
    199    else # On non-Windows we simply copy the vkat executable already built to save build time.
    200     vkathost_TEMPLATE   = VBOXR3EXE
    201     vkathost_SOURCES    = $(vkat_1_TARGET)=>VBoxAudioTest$(HOSTSUFF_EXE)
    202     vkathost_MODE       = a+rx,u+w
    203    endif
     198   vkathost_TEMPLATE  := VBoxR3Static
     199   vkathost_EXTENDS   := vkat
     200   vkathost_INST      := $(INST_BIN)
     201   vkathost_NAME      := VBoxAudioTest
     202   vkathost_SOURCES    = \
     203        $(vkat_SOURCES) \
     204        $(VBOX_PATH_SRC_DEVICES)/build/VBoxDD.d
    204205  endif
    205206 endif
     
    224225
    225226include $(FILE_KBUILD_SUB_FOOTER)
     227
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette