mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-15 18:16:44 +02:00
Add reformat target to CMakeLists.txt
This commit is contained in:
parent
cc6186c4ba
commit
8186c44118
5 changed files with 27 additions and 5 deletions
|
@ -262,3 +262,24 @@ endif()
|
||||||
if (BUILD_CLIENT)
|
if (BUILD_CLIENT)
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
FIND_PROGRAM(CLANG_FORMAT "clang-format")
|
||||||
|
IF(CLANG_FORMAT)
|
||||||
|
FILE(GLOB_RECURSE
|
||||||
|
CHECK_CXX_SOURCE_FILES
|
||||||
|
common/*.[ch]pp
|
||||||
|
client/*.[ch]pp
|
||||||
|
server/*.[ch]pp
|
||||||
|
)
|
||||||
|
|
||||||
|
ADD_CUSTOM_TARGET(
|
||||||
|
reformat
|
||||||
|
COMMAND
|
||||||
|
${CLANG_FORMAT}
|
||||||
|
-i
|
||||||
|
-style=file
|
||||||
|
${CHECK_CXX_SOURCE_FILES}
|
||||||
|
COMMENT "Auto formatting of all source files"
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
#include "player/coreaudio_player.hpp"
|
#include "player/coreaudio_player.hpp"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_WASAPI
|
#ifdef HAS_WASAPI
|
||||||
#include "player/wasapi_player.h"
|
#include "player/wasapi_player.hpp"
|
||||||
#endif
|
#endif
|
||||||
#include "player/file_player.hpp"
|
#include "player/file_player.hpp"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "wasapi_player.h"
|
#include "wasapi_player.hpp"
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
#include <mmdeviceapi.h>
|
#include <mmdeviceapi.h>
|
||||||
//#include <functiondiscoverykeys_devpkey.h>
|
//#include <functiondiscoverykeys_devpkey.h>
|
||||||
|
|
|
@ -16,8 +16,9 @@
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#ifndef WASAPI_PLAYER_H
|
#ifndef WASAPI_PLAYER_HPP
|
||||||
#define WASAPI_PLAYER_H
|
#define WASAPI_PLAYER_HPP
|
||||||
|
|
||||||
#include "player.hpp"
|
#include "player.hpp"
|
||||||
#include <audiopolicy.h>
|
#include <audiopolicy.h>
|
||||||
#include <endpointvolume.h>
|
#include <endpointvolume.h>
|
|
@ -30,7 +30,7 @@
|
||||||
#include "player/alsa_player.hpp"
|
#include "player/alsa_player.hpp"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_WASAPI
|
#ifdef HAS_WASAPI
|
||||||
#include "player/wasapi_player.h"
|
#include "player/wasapi_player.hpp"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_DAEMON
|
#ifdef HAS_DAEMON
|
||||||
#include "common/daemon.hpp"
|
#include "common/daemon.hpp"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue