VirtualBox

Changeset 14711 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 27, 2008 3:16:52 PM (16 years ago)
Author:
vboxsync
Message:

Devices/USB and Main: use hal and sysfs for Linux USB (currently disabled)

Location:
trunk/src/VBox/Main
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r14687 r14711  
    197197        $(if $(VBOX_WITHOUT_LINUX_COMPILER_H),VBOX_WITHOUT_LINUX_COMPILER_H,) \
    198198        $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
    199         $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,)
     199        $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
     200        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
    200201
    201202ifdef VBOX_WITH_USB
     
    210211VBoxSVC_DEFS.win.x86 += _WIN32_WINNT=0x0500
    211212VBoxSVC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
    212 VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
    213 VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
     213# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
     214# VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
    214215ifdef VBOX_SOLARIS_NSL_RESOLVED
    215216 VBoxSVC_DEFS.solaris += VBOX_SOLARIS_NSL_RESOLVED
     
    343344endif
    344345
     346# libhal stuff for USB
     347VBoxSVC_CFLAGS   += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CFLAGS),)
     348VBoxSVC_CXXFLAGS += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CXXFLAGS),)
     349VBoxSVC_LDFLAGS  += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_LDFLAGS),)
     350
    345351win/VBoxSVC.rc_INCS  = $(PATH_VBoxSVC)
    346352win/VBoxSVC.rc_DEPS  = $(PATH_VBoxSVC)/VBoxSVC.rgs $(PATH_VBoxSVC)/VBoxSVC-icon.rc
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r12513 r14711  
    2828ifndef VBOX_ONLY_SDK
    2929 if defined(VBOX_WITH_TESTCASES) || "$(USERNAME)" == "dmik"
    30   PROGRAMS       += tstAPI
    31   ifdef VBOX_WITH_XPCOM
    32    PROGRAMS      += tstVBoxAPILinux
    33   else
    34    PROGRAMS      += tstVBoxAPIWin
    35   endif
    36   ifdef VBOX_WITH_RESOURCE_USAGE_API
    37    PROGRAMS      += tstCollector
    38   endif
     30  PROGRAMS       += \
     31        tstAPI \
     32        $(if $(VBOX_WITH_XPCOM),tstVBoxAPILinux,tstVBoxAPIWin) \
     33        $(if $(VBOX_WITH_RESOURCE_USAGE_API),tstCollector,)
     34  PROGRAMS.linux += \
     35        $(if $(VBOX_OSE),,$(if $(VBOX_USB_WITH_SYSFS),tstUSBLinux,))
    3936 endif # !VBOX_WITH_TESTCASES
    4037endif # !VBOX_ONLY_SDK
     
    121118
    122119
     120
     121#
     122# tstUSBLinux
     123#
     124tstUSBLinux_TEMPLATE  = VBOXR3TSTEXE
     125tstUSBLinux_SOURCES   = \
     126        tstUSBLinux.cpp \
     127        ../linux/USBProxyServiceLinux.cpp
     128tstUSBLinux_INCS      = . ../include
     129tstUSBLinux_DEFS      = \
     130        VBOX_TEST_USB_LINUX \
     131        $(if $(VBOX_WITHOUT_LINUX_COMPILER_H),VBOX_WITHOUT_LINUX_COMPILER_H,) \
     132        $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
     133tstUSBLinux_LIBS     += $(PATH_OUT)/lib/USBLib.a
     134VBOX_LIBHAL_LDFLAGS  ?= $(shell pkg-config hal --libs)
     135tstUSBLinux_CFLAGS   += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CFLAGS),)
     136tstUSBLinux_CXXFLAGS += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_CXXFLAGS),)
     137tstUSBLinux_LDFLAGS  += $(if $(VBOX_WITH_LIBHAL),$(VBOX_LIBHAL_LDFLAGS),)
     138
     139
    123140# generate rules.
    124141include $(KBUILD_PATH)/subfooter.kmk
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