From b69be78e88c752ec335161e3e57559012fb3e8a1 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 30 Sep 2010 20:37:04 +0000 Subject: [PATCH 1/1] [CMAKE] - Add audio_test, kmixer, wdmaud, sysaudio and ntvdm to build. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=48947 --- drivers/CMakeLists.txt | 1 + drivers/wdm/CMakeLists.txt | 2 ++ drivers/wdm/audio/CMakeLists.txt | 5 ++++ drivers/wdm/audio/backpln/CMakeLists.txt | 2 ++ .../audio/backpln/audio_test/CMakeLists.txt | 18 +++++++++++++++ drivers/wdm/audio/filters/CMakeLists.txt | 2 ++ .../wdm/audio/filters/kmixer/CMakeLists.txt | 16 +++++++++++++ drivers/wdm/audio/legacy/CMakeLists.txt | 2 ++ .../wdm/audio/legacy/wdmaud/CMakeLists.txt | 23 +++++++++++++++++++ drivers/wdm/audio/sysaudio/CMakeLists.txt | 17 ++++++++++++++ subsystems/CMakeLists.txt | 1 + subsystems/ntvdm/CMakeLists.txt | 17 ++++++++++++++ 12 files changed, 106 insertions(+) create mode 100644 drivers/wdm/CMakeLists.txt create mode 100644 drivers/wdm/audio/CMakeLists.txt create mode 100644 drivers/wdm/audio/backpln/CMakeLists.txt create mode 100644 drivers/wdm/audio/backpln/audio_test/CMakeLists.txt create mode 100644 drivers/wdm/audio/filters/CMakeLists.txt create mode 100644 drivers/wdm/audio/filters/kmixer/CMakeLists.txt create mode 100644 drivers/wdm/audio/legacy/CMakeLists.txt create mode 100644 drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt create mode 100644 drivers/wdm/audio/sysaudio/CMakeLists.txt create mode 100644 subsystems/ntvdm/CMakeLists.txt diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 820aa937193..3f1db6f442c 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -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 index 00000000000..6897e2ea93e --- /dev/null +++ b/drivers/wdm/CMakeLists.txt @@ -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 index 00000000000..cd1ff8ecb87 --- /dev/null +++ b/drivers/wdm/audio/CMakeLists.txt @@ -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 index 00000000000..080c124f15e --- /dev/null +++ b/drivers/wdm/audio/backpln/CMakeLists.txt @@ -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 index 00000000000..ef842a007eb --- /dev/null +++ b/drivers/wdm/audio/backpln/audio_test/CMakeLists.txt @@ -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 index 00000000000..5f0f1ed31d7 --- /dev/null +++ b/drivers/wdm/audio/filters/CMakeLists.txt @@ -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 index 00000000000..923275e8d6a --- /dev/null +++ b/drivers/wdm/audio/filters/kmixer/CMakeLists.txt @@ -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 index 00000000000..c46ea9f39bf --- /dev/null +++ b/drivers/wdm/audio/legacy/CMakeLists.txt @@ -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 index 00000000000..0eee3ccc401 --- /dev/null +++ b/drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt @@ -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 index 00000000000..3d1ab997619 --- /dev/null +++ b/drivers/wdm/audio/sysaudio/CMakeLists.txt @@ -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) diff --git a/subsystems/CMakeLists.txt b/subsystems/CMakeLists.txt index 2552a6d9f31..ba808560148 100644 --- a/subsystems/CMakeLists.txt +++ b/subsystems/CMakeLists.txt @@ -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 index 00000000000..59d4cc3b9ec --- /dev/null +++ b/subsystems/ntvdm/CMakeLists.txt @@ -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) -- 2.17.1