VirtualBox

Ignore:
Timestamp:
Dec 16, 2021 10:03:45 AM (3 years ago)
Author:
vboxsync
Message:

VBoxUSB/win/Makefile.kmk: Use a template for the USB* programs, switching them to VBoxR3Static and applying VBOX_WIN_NEWDEV. bugref:10116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Makefile.kmk

    r92910 r92968  
    109109
    110110#
     111# Template for USBInstalls and friends.
     112#
     113TEMPLATE_VBoxUsbR3 = Template for USBInstalls, USBUninstall and USBTest
     114TEMPLATE_VBoxUsbR3_EXTENDS  = VBoxR3Static
     115TEMPLATE_VBoxUsbR3_SDKS     = $(TEMPLATE_VBoxR3Static_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_WIN_NEWDEV
     116TEMPLATE_VBoxUsbR3_CXXFLAGS = $(TEMPLATE_VBoxR3Static_CXXFLAGS) -Gz
     117TEMPLATE_VBoxUsbR3_CFLAGS   = $(TEMPLATE_VBoxR3Static_CFLAGS) -Gz
     118TEMPLATE_VBoxUsbR3_LIBS     = $(TEMPLATE_VBoxR3Static_LIBS) \
     119        $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB)
     120
     121#
    111122# USBInstall
    112123#
    113 USBInstall_TEMPLATE = VBOXR3EXE
    114 USBInstall_DEFS     = IN_RT_R3
    115 USBInstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
    116 USBInstall_CXXFLAGS = -Gz
    117 USBInstall_CFLAGS   = -Gz
    118 USBInstall_SOURCES  = \
    119         Install/USBInstall.cpp
    120 USBInstall_LIBS = \
    121         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
    122         $(LIB_RUNTIME) \
    123         $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB) \
    124         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB)
    125 
     124USBInstall_TEMPLATE = VBoxUsbR3
     125USBInstall_SOURCES  = Install/USBInstall.cpp
    126126
    127127#
    128128# USBUninstall
    129129#
    130 USBUninstall_TEMPLATE = VBOXR3EXE
    131 USBUninstall_DEFS     = IN_RT_R3
    132 USBUninstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
    133 USBUninstall_CXXFLAGS = -Gz
    134 USBUninstall_CFLAGS   = -Gz
    135 USBUninstall_SOURCES  = \
    136         Install/USBUninstall.cpp
    137 USBUninstall_LIBS = \
    138         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
    139         $(LIB_RUNTIME) \
    140         $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB) \
    141         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB)
     130USBUninstall_TEMPLATE = VBoxUsbR3
     131USBUninstall_SOURCES  = Install/USBUninstall.cpp
    142132
    143133#
    144134# USBTest
    145135#
    146 USBTest_TEMPLATE = VBOXR3EXE
    147 USBTest_DEFS     = IN_RT_R3 IN_USBLIB
    148 USBTest_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
    149 USBTest_CXXFLAGS = -Gz
    150 USBTest_CFLAGS   = -Gz
     136USBTest_TEMPLATE = VBoxUsbR3
     137USBTest_DEFS     = IN_USBLIB
    151138USBTest_SOURCES  = \
    152139        testcase/USBTest.cpp \
    153140        ../USBFilter.cpp
    154 USBTest_LIBS = \
    155         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
    156         $(LIB_RUNTIME) \
    157         $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB) \
    158         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB)
    159141
    160142#
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