- Add atapi, blue, cdfs and uniata to build.

svn path=/branches/cmake-bringup/; revision=48693
This commit is contained in:
Amine Khaldi 2010-09-04 12:57:01 +00:00
parent abf5238858
commit dc95036f5a
9 changed files with 91 additions and 0 deletions

View file

@ -2,6 +2,8 @@
add_subdirectory(base)
add_subdirectory(battery)
add_subdirectory(bus)
add_subdirectory(filesystems)
add_subdirectory(input)
add_subdirectory(setup)
add_subdirectory(storage)
add_subdirectory(video)

View file

@ -0,0 +1,2 @@
add_subdirectory(cdfs)

View file

@ -0,0 +1,30 @@
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
list(APPEND SOURCE
cdfs.c
cleanup.c
close.c
common.c
create.c
dirctl.c
fcb.c
finfo.c
fsctl.c
misc.c
rw.c
volinfo.c
cdfs.rc)
add_library(cdfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/cdfs_cdfs.h.gch ${SOURCE})
set_target_properties(cdfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(cdfs
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
add_pch(cdfs ${CMAKE_CURRENT_SOURCE_DIR}/cdfs.h ${SOURCE})
add_dependencies(cdfs psdk bugcodes)

View file

@ -0,0 +1,2 @@
add_subdirectory(blue)

View file

@ -0,0 +1,14 @@
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
add_library(blue SHARED blue.c font.c blue.rc)
set_target_properties(blue PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(blue
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
add_dependencies(blue psdk bugcodes)

View file

@ -1,2 +1,3 @@
add_subdirectory(ide)
add_subdirectory(scsiport)

View file

@ -0,0 +1,3 @@
add_subdirectory(atapi)
add_subdirectory(uniata)

View file

@ -0,0 +1,12 @@
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
add_library(atapi SHARED atapi.c atapi.rc)
set_target_properties(atapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(atapi
-lscsiport
libcntpr)
add_dependencies(atapi psdk bugcodes)

View file

@ -0,0 +1,25 @@
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
include_directories(inc)
add_library(uniata SHARED
id_ata.cpp
id_badblock.cpp
id_dma.cpp
id_init.cpp
id_probe.cpp
id_queue.cpp
id_sata.cpp
idedma.rc
ros_glue/ros_glue.cpp)
set_target_properties(uniata PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(uniata
${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a
-lgcc)
add_dependencies(uniata psdk bugcodes buildno_header)