[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Aug 2010 10:34:15 +0000 (10:34 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Aug 2010 10:34:15 +0000 (10:34 +0000)
- Add beep driver to build.

svn path=/branches/cmake-bringup/; revision=48661

CMakeLists.txt
drivers/CMakeLists.txt [new file with mode: 0644]
drivers/base/CMakeLists.txt [new file with mode: 0644]
drivers/base/beep/CMakeLists.txt [new file with mode: 0644]

index 9ecb908..3a645e6 100644 (file)
@@ -102,6 +102,7 @@ add_subdirectory(include/reactos/mc)
 
 add_subdirectory(base)
 add_subdirectory(dll)
+add_subdirectory(drivers)
 add_subdirectory(hal)
 add_subdirectory(lib)
 add_subdirectory(ntoskrnl)
diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt
new file mode 100644 (file)
index 0000000..10138bf
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(base)
diff --git a/drivers/base/CMakeLists.txt b/drivers/base/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c8c646b
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(beep)
diff --git a/drivers/base/beep/CMakeLists.txt b/drivers/base/beep/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5f269bc
--- /dev/null
@@ -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(beep SHARED beep.c beep.rc)
+
+set_target_properties(beep PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
+
+target_link_libraries(beep
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(beep psdk bugcodes)