[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 30 Sep 2010 20:37:04 +0000 (20:37 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 30 Sep 2010 20:37:04 +0000 (20:37 +0000)
- Add audio_test, kmixer, wdmaud, sysaudio and ntvdm to build. By Alexey Komarov.

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

12 files changed:
drivers/CMakeLists.txt
drivers/wdm/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/backpln/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/backpln/audio_test/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/filters/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/filters/kmixer/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/legacy/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt [new file with mode: 0644]
drivers/wdm/audio/sysaudio/CMakeLists.txt [new file with mode: 0644]
subsystems/CMakeLists.txt
subsystems/ntvdm/CMakeLists.txt [new file with mode: 0644]

index 820aa93..3f1db6f 100644 (file)
@@ -8,4 +8,5 @@ add_subdirectory(network)
 add_subdirectory(setup)
 add_subdirectory(storage)
 add_subdirectory(video)
+add_subdirectory(wdm)
 add_subdirectory(wmi)
diff --git a/drivers/wdm/CMakeLists.txt b/drivers/wdm/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6897e2e
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(audio)
diff --git a/drivers/wdm/audio/CMakeLists.txt b/drivers/wdm/audio/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cd1ff8e
--- /dev/null
@@ -0,0 +1,5 @@
+
+add_subdirectory(backpln)
+add_subdirectory(filters)
+add_subdirectory(legacy)
+add_subdirectory(sysaudio)
diff --git a/drivers/wdm/audio/backpln/CMakeLists.txt b/drivers/wdm/audio/backpln/CMakeLists.txt
new file mode 100644 (file)
index 0000000..080c124
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(audio_test)
diff --git a/drivers/wdm/audio/backpln/audio_test/CMakeLists.txt b/drivers/wdm/audio/backpln/audio_test/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ef842a0
--- /dev/null
@@ -0,0 +1,18 @@
+
+add_definitions(-DPC_NO_IMPORTS)
+
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/sound)
+include_directories(${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud)
+include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
+
+add_executable(audio_test audio_test.c)
+
+set_module_type(audio_test win32cui)
+
+target_link_libraries(audio_test
+    libsamplerate
+    mingw_main
+    mingw_common)
+
+add_importlibs(audio_test setupapi ksuser msvcrt)
+add_dependencies(audio_test psdk bugcodes)
diff --git a/drivers/wdm/audio/filters/CMakeLists.txt b/drivers/wdm/audio/filters/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5f0f1ed
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(kmixer)
diff --git a/drivers/wdm/audio/filters/kmixer/CMakeLists.txt b/drivers/wdm/audio/filters/kmixer/CMakeLists.txt
new file mode 100644 (file)
index 0000000..923275e
--- /dev/null
@@ -0,0 +1,16 @@
+
+include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
+
+add_library(kmixer SHARED
+    kmixer.c
+    filter.c
+    pin.c)
+
+set_target_properties(kmixer PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(kmixer
+    libcntpr
+    libsamplerate)
+
+add_importlibs(kmixer ntoskrnl ks hal)
+add_dependencies(kmixer psdk bugcodes)
diff --git a/drivers/wdm/audio/legacy/CMakeLists.txt b/drivers/wdm/audio/legacy/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c46ea9f
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(wdmaud)
diff --git a/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt b/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0eee3cc
--- /dev/null
@@ -0,0 +1,23 @@
+
+add_definitions(-D_COMDDK_)
+
+include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/sound/mmixer)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/sound)
+
+add_library(wdmaud SHARED
+    control.c
+    deviface.c
+    entry.c
+    mmixer.c
+    sup.c
+    wdmaud.rc)
+
+set_target_properties(wdmaud PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(wdmaud
+    mmixer
+    libcntpr
+    pseh)
+
+add_importlibs(wdmaud ntoskrnl ks hal)
+add_dependencies(wdmaud psdk bugcodes)
diff --git a/drivers/wdm/audio/sysaudio/CMakeLists.txt b/drivers/wdm/audio/sysaudio/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3d1ab99
--- /dev/null
@@ -0,0 +1,17 @@
+
+add_definitions(-D_COMDDK_)
+
+add_library(sysaudio SHARED
+    control.c
+    deviface.c
+    dispatcher.c
+    main.c
+    pin.c
+    sysaudio.rc)
+
+set_target_properties(sysaudio PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(sysaudio libcntpr)
+
+add_importlibs(sysaudio ntoskrnl ks hal)
+add_dependencies(sysaudio psdk bugcodes)
index 2552a6d..ba80856 100644 (file)
@@ -1,2 +1,3 @@
 
+add_subdirectory(ntvdm)
 add_subdirectory(win32)
diff --git a/subsystems/ntvdm/CMakeLists.txt b/subsystems/ntvdm/CMakeLists.txt
new file mode 100644 (file)
index 0000000..59d4cc3
--- /dev/null
@@ -0,0 +1,17 @@
+
+include_directories(.)
+
+set_rc_compiler()
+
+add_executable(ntvdm
+    ntvdm.c
+    ntvdm.rc)
+
+set_module_type(ntvdm win32cui)
+
+target_link_libraries(ntvdm
+    mingw_main
+    mingw_common)
+
+add_importlibs(ntvdm ntdll user32 gdi32 advapi32 kernel32 msvcrt)
+add_dependencies(ntvdm ndk bugcodes)