Warning, /multimedia/kwave/cmake/KwaveOSSSupport.cmake is written in an unsupported language. File is not indexed.
0001 ############################################################################# 0002 ## Kwave - cmake/KwaveOSSSupport.cmake 0003 ## ------------------- 0004 ## begin : Sat Jun 02 2007 0005 ## copyright : (C) 2007 by Thomas Eschenbacher 0006 ## email : Thomas.Eschenbacher@gmx.de 0007 ############################################################################# 0008 # 0009 ############################################################################# 0010 # # 0011 # Redistribution and use in source and binary forms, with or without # 0012 # modification, are permitted provided that the following conditions # 0013 # are met: # 0014 # # 0015 # 1. Redistributions of source code must retain the above copyright # 0016 # notice, this list of conditions and the following disclaimer. # 0017 # 2. Redistributions in binary form must reproduce the above copyright # 0018 # notice, this list of conditions and the following disclaimer in the # 0019 # documentation and/or other materials provided with the distribution. # 0020 # # 0021 # For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file. # 0022 # # 0023 ############################################################################# 0024 0025 OPTION(WITH_OSS "enable playback/recording via OSS [default=on]" ON) 0026 0027 IF (WITH_OSS) 0028 0029 SET(_oss_inc sys/ioctl.h fcntl.h sys/soundcard.h) 0030 CHECK_INCLUDE_FILES("${_oss_inc}" HAVE_SYS_SOUNDCARD_H) 0031 0032 IF (HAVE_SYS_SOUNDCARD_H) 0033 MESSAGE(STATUS "Enabled OSS for playback and recording") 0034 SET(HAVE_OSS_SUPPORT ON CACHE BOOL "enable OSS support") 0035 ELSE (HAVE_SYS_SOUNDCARD_H) 0036 MESSAGE(FATAL_ERROR "Your system lacks OSS support") 0037 ENDIF (HAVE_SYS_SOUNDCARD_H) 0038 0039 ENDIF (WITH_OSS) 0040 0041 ############################################################################# 0042 #############################################################################