mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
65ce146169
svn path=/branches/ros-csrss/; revision=57561
37 lines
944 B
CMake
37 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
|
|
usbohci.cpp
|
|
usb_request.cpp
|
|
usb_queue.cpp
|
|
hardware.cpp)
|
|
|
|
add_library(usbohci SHARED
|
|
${SOURCE}
|
|
usbohci.rc)
|
|
|
|
target_link_libraries(usbohci
|
|
libusb
|
|
libcntpr
|
|
${PSEH_LIB})
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
if(MSVC)
|
|
#add_target_compile_flags(usbohci "/GR-")
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
|
|
else()
|
|
target_link_libraries(usbohci -lgcc)
|
|
#add_target_compile_flags(usbohci "-fno-exceptions -fno-rtti")
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
|
|
endif()
|
|
|
|
set_module_type(usbohci kernelmodedriver)
|
|
add_importlibs(usbohci ntoskrnl hal usbd)
|
|
|
|
add_cd_file(TARGET usbohci DESTINATION reactos/system32/drivers NO_CAB FOR all)
|