2011-04-14 11:35:16 +00:00
|
|
|
|
|
|
|
set_cpp()
|
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2012-02-28 15:13:30 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
|
|
|
|
|
|
|
|
|
2011-04-14 11:35:16 +00:00
|
|
|
add_library(usbehci SHARED
|
|
|
|
usbehci.cpp
|
2011-04-19 01:21:10 +00:00
|
|
|
usb_request.cpp
|
2011-04-17 22:06:20 +00:00
|
|
|
usb_queue.cpp
|
2011-04-14 11:35:16 +00:00
|
|
|
hardware.cpp
|
|
|
|
usbehci.rc)
|
|
|
|
|
|
|
|
target_link_libraries(usbehci
|
2012-02-28 15:13:30 +00:00
|
|
|
libusb
|
2011-04-14 11:35:16 +00:00
|
|
|
libcntpr
|
|
|
|
${PSEH_LIB})
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "/GR-")
|
|
|
|
else()
|
|
|
|
target_link_libraries(usbehci -lgcc)
|
|
|
|
set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
set_module_type(usbehci kernelmodedriver)
|
2012-02-28 10:29:37 +00:00
|
|
|
add_importlibs(usbehci ntoskrnl hal usbd)
|
2012-01-20 22:04:57 +00:00
|
|
|
|
|
|
|
add_cd_file(TARGET usbehci DESTINATION reactos/system32/drivers NO_CAB FOR all)
|