Author: akhaldi
Date: Tue Aug 31 16:30:02 2010
New Revision: 48666
URL:
http://svn.reactos.org/svn/reactos?rev=48666&view=rev
Log:
[CMAKE]
- Add bootvid, kddll, kdcom, nmidebug and null drivers to build.
Added:
branches/cmake-bringup/drivers/base/bootvid/CMakeLists.txt (with props)
branches/cmake-bringup/drivers/base/kdcom/CMakeLists.txt (with props)
branches/cmake-bringup/drivers/base/kddll/CMakeLists.txt (with props)
branches/cmake-bringup/drivers/base/nmidebug/CMakeLists.txt (with props)
branches/cmake-bringup/drivers/base/null/CMakeLists.txt (with props)
Modified:
branches/cmake-bringup/drivers/base/CMakeLists.txt
Modified: branches/cmake-bringup/drivers/base/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/CMak…
==============================================================================
--- branches/cmake-bringup/drivers/base/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/base/CMakeLists.txt [iso-8859-1] Tue Aug 31 16:30:02
2010
@@ -1,2 +1,12 @@
add_subdirectory(beep)
+add_subdirectory(bootvid)
+
+if(_WINKD_ MATCHES 1)
+add_subdirectory(kddll)
+else()
+add_subdirectory(kdcom)
+endif(_WINKD_ MATCHES 1)
+
+add_subdirectory(nmidebug)
+add_subdirectory(null)
Added: branches/cmake-bringup/drivers/base/bootvid/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/boot…
==============================================================================
--- branches/cmake-bringup/drivers/base/bootvid/CMakeLists.txt (added)
+++ branches/cmake-bringup/drivers/base/bootvid/CMakeLists.txt [iso-8859-1] Tue Aug 31
16:30:02 2010
@@ -1,0 +1,25 @@
+
+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>")
+
+spec2def(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/bootvid.spec
${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
+
+list(APPEND SOURCE
+ ${ARCH}/bootvid.c
+ ${ARCH}/bootdata.c
+ bootvid.rc)
+
+if(ARCH MATCHES i386)
+list(APPEND SOURCE i386/vga.c)
+endif(ARCH MATCHES i386)
+
+add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
+
+set_target_properties(bootvid PROPERTIES LINK_FLAGS "-Wl,-entry,0
-Wl,--image-base,0x00010000")
+
+target_link_libraries(bootvid
+ ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def
+ ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+ ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+add_dependencies(bootvid bootvid_def psdk buildno_header bugcodes)
Propchange: branches/cmake-bringup/drivers/base/bootvid/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/drivers/base/kdcom/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/kdco…
==============================================================================
--- branches/cmake-bringup/drivers/base/kdcom/CMakeLists.txt (added)
+++ branches/cmake-bringup/drivers/base/kdcom/CMakeLists.txt [iso-8859-1] Tue Aug 31
16:30:02 2010
@@ -1,0 +1,23 @@
+
+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>")
+
+spec2def(kdcom ${CMAKE_CURRENT_SOURCE_DIR}/kdcom.spec
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
+
+if(ARCH MATCHES i386)
+list(APPEND SOURCE i386/kdbg.c)
+elseif(ARCH MATCHES amd64)
+list(APPEND SOURCE i386/kdbg.c)
+elseif(ARCH MATCHES arm)
+list(APPEND SOURCE arm/kdbg.c)
+endif(ARCH MATCHES i386)
+
+add_library(kdcom SHARED ${SOURCE})
+
+set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0
-Wl,--image-base,0x00010000")
+
+target_link_libraries(kdcom
+ ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def
+ ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+ ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(kdcom kdcom_def psdk buildno_header bugcodes)
Propchange: branches/cmake-bringup/drivers/base/kdcom/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/drivers/base/kddll/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/kddl…
==============================================================================
--- branches/cmake-bringup/drivers/base/kddll/CMakeLists.txt (added)
+++ branches/cmake-bringup/drivers/base/kddll/CMakeLists.txt [iso-8859-1] Tue Aug 31
16:30:02 2010
@@ -1,0 +1,18 @@
+
+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>")
+
+spec2def(kdcom ${CMAKE_CURRENT_SOURCE_DIR}/kdcom.spec
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
+
+add_library(kdcom SHARED
+ kdcom.c
+ kddll.c
+ kdserial.c)
+
+set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0
-Wl,--image-base,0x00010000")
+
+target_link_libraries(kdcom
+ ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def
+ ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+ ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(kdcom kdcom_def psdk buildno_header bugcodes)
Propchange: branches/cmake-bringup/drivers/base/kddll/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/drivers/base/nmidebug/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/nmid…
==============================================================================
--- branches/cmake-bringup/drivers/base/nmidebug/CMakeLists.txt (added)
+++ branches/cmake-bringup/drivers/base/nmidebug/CMakeLists.txt [iso-8859-1] Tue Aug 31
16:30:02 2010
@@ -1,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(nmidebug SHARED nmidebug.c nmidebug.rc)
+
+set_target_properties(nmidebug PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8
-Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
+
+target_link_libraries(nmidebug
+ ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+ ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(nmidebug psdk bugcodes)
Propchange: branches/cmake-bringup/drivers/base/nmidebug/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/cmake-bringup/drivers/base/null/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/base/null…
==============================================================================
--- branches/cmake-bringup/drivers/base/null/CMakeLists.txt (added)
+++ branches/cmake-bringup/drivers/base/null/CMakeLists.txt [iso-8859-1] Tue Aug 31
16:30:02 2010
@@ -1,0 +1,13 @@
+
+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(null SHARED null.c null.rc)
+
+set_target_properties(null PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8
-Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
+
+target_link_libraries(null
+ pseh
+ ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+ ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(null psdk bugcodes)
Propchange: branches/cmake-bringup/drivers/base/null/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native