mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CMAKE]
- Add audio_test, kmixer, wdmaud, sysaudio and ntvdm to build. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=48947
This commit is contained in:
parent
98d310566e
commit
b69be78e88
12 changed files with 106 additions and 0 deletions
|
@ -8,4 +8,5 @@ add_subdirectory(network)
|
|||
add_subdirectory(setup)
|
||||
add_subdirectory(storage)
|
||||
add_subdirectory(video)
|
||||
add_subdirectory(wdm)
|
||||
add_subdirectory(wmi)
|
||||
|
|
2
drivers/wdm/CMakeLists.txt
Normal file
2
drivers/wdm/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
add_subdirectory(audio)
|
5
drivers/wdm/audio/CMakeLists.txt
Normal file
5
drivers/wdm/audio/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
add_subdirectory(backpln)
|
||||
add_subdirectory(filters)
|
||||
add_subdirectory(legacy)
|
||||
add_subdirectory(sysaudio)
|
2
drivers/wdm/audio/backpln/CMakeLists.txt
Normal file
2
drivers/wdm/audio/backpln/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
add_subdirectory(audio_test)
|
18
drivers/wdm/audio/backpln/audio_test/CMakeLists.txt
Normal file
18
drivers/wdm/audio/backpln/audio_test/CMakeLists.txt
Normal file
|
@ -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)
|
2
drivers/wdm/audio/filters/CMakeLists.txt
Normal file
2
drivers/wdm/audio/filters/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
add_subdirectory(kmixer)
|
16
drivers/wdm/audio/filters/kmixer/CMakeLists.txt
Normal file
16
drivers/wdm/audio/filters/kmixer/CMakeLists.txt
Normal file
|
@ -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)
|
2
drivers/wdm/audio/legacy/CMakeLists.txt
Normal file
2
drivers/wdm/audio/legacy/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
add_subdirectory(wdmaud)
|
23
drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt
Normal file
23
drivers/wdm/audio/legacy/wdmaud/CMakeLists.txt
Normal file
|
@ -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)
|
17
drivers/wdm/audio/sysaudio/CMakeLists.txt
Normal file
17
drivers/wdm/audio/sysaudio/CMakeLists.txt
Normal file
|
@ -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)
|
|
@ -1,2 +1,3 @@
|
|||
|
||||
add_subdirectory(ntvdm)
|
||||
add_subdirectory(win32)
|
||||
|
|
17
subsystems/ntvdm/CMakeLists.txt
Normal file
17
subsystems/ntvdm/CMakeLists.txt
Normal file
|
@ -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)
|
Loading…
Reference in a new issue