mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
38 lines
944 B
CMake
38 lines
944 B
CMake
|
|
set_cpp()
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
|
|
|
|
list(APPEND SOURCE
|
|
usbehci.cpp
|
|
usb_request.cpp
|
|
usb_queue.cpp
|
|
hardware.cpp)
|
|
|
|
add_library(usbehci SHARED
|
|
${SOURCE}
|
|
usbehci.rc)
|
|
|
|
target_link_libraries(usbehci
|
|
libusb
|
|
libcntpr
|
|
${PSEH_LIB})
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
if(MSVC)
|
|
#add_target_compile_flags(usbehci "/GR-")
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
|
|
else()
|
|
target_link_libraries(usbehci -lgcc)
|
|
#add_target_compile_flags(usbehci "-fno-exceptions -fno-rtti")
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
|
|
endif()
|
|
|
|
set_module_type(usbehci kernelmodedriver)
|
|
add_importlibs(usbehci ntoskrnl hal usbd)
|
|
|
|
add_cd_file(TARGET usbehci DESTINATION reactos/system32/drivers NO_CAB FOR all)
|