Skip to content

Commit

Permalink
C++ bindings: reorganize files
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jan 11, 2021
1 parent ab33ac1 commit 09ac627
Show file tree
Hide file tree
Showing 41 changed files with 86 additions and 86 deletions.
74 changes: 37 additions & 37 deletions bindings/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ project(portaudiocpp VERSION 0.0.12)
option(BUILD_SHARED_LIBS "Build dynamic library" ON)

add_library(portaudiocpp
source/portaudiocpp/BlockingStream
source/portaudiocpp/CallbackInterface
source/portaudiocpp/CallbackStream
source/portaudiocpp/CFunCallbackStream
source/portaudiocpp/CppFunCallbackStream
source/portaudiocpp/Device
source/portaudiocpp/DirectionSpecificStreamParameters
source/portaudiocpp/Exception
source/portaudiocpp/HostApi
source/portaudiocpp/InterfaceCallbackStream
source/portaudiocpp/MemFunCallbackStream
source/portaudiocpp/Stream
source/portaudiocpp/StreamParameters
source/portaudiocpp/System
source/portaudiocpp/SystemDeviceIterator
source/portaudiocpp/SystemHostApiIterator
src/BlockingStream
src/CallbackInterface
src/CallbackStream
src/CFunCallbackStream
src/CppFunCallbackStream
src/Device
src/DirectionSpecificStreamParameters
src/Exception
src/HostApi
src/InterfaceCallbackStream
src/MemFunCallbackStream
src/Stream
src/StreamParameters
src/System
src/SystemDeviceIterator
src/SystemHostApiIterator
)
target_include_directories(portaudiocpp PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")

Expand All @@ -31,32 +31,32 @@ install(TARGETS portaudiocpp
)

install(FILES
include/portaudiocpp/AutoSystem.hxx
include/portaudiocpp/BlockingStream.hxx
include/portaudiocpp/CallbackInterface.hxx
include/portaudiocpp/CallbackStream.hxx
include/portaudiocpp/CFunCallbackStream.hxx
include/portaudiocpp/CppFunCallbackStream.hxx
include/portaudiocpp/Device.hxx
include/portaudiocpp/DirectionSpecificStreamParameters.hxx
include/portaudiocpp/Exception.hxx
include/portaudiocpp/HostApi.hxx
include/portaudiocpp/InterfaceCallbackStream.hxx
include/portaudiocpp/MemFunCallbackStream.hxx
include/portaudiocpp/PortAudioCpp.hxx
include/portaudiocpp/SampleDataFormat.hxx
include/portaudiocpp/Stream.hxx
include/portaudiocpp/StreamParameters.hxx
include/portaudiocpp/SystemDeviceIterator.hxx
include/portaudiocpp/SystemHostApiIterator.hxx
include/portaudiocpp/System.hxx
include/AutoSystem.hxx
include/BlockingStream.hxx
include/CallbackInterface.hxx
include/CallbackStream.hxx
include/CFunCallbackStream.hxx
include/CppFunCallbackStream.hxx
include/Device.hxx
include/DirectionSpecificStreamParameters.hxx
include/Exception.hxx
include/HostApi.hxx
include/InterfaceCallbackStream.hxx
include/MemFunCallbackStream.hxx
include/PortAudioCpp.hxx
include/SampleDataFormat.hxx
include/Stream.hxx
include/StreamParameters.hxx
include/SystemDeviceIterator.hxx
include/SystemHostApiIterator.hxx
include/System.hxx
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/portaudiocpp"
)

if(WIN32)
install(FILES include/portaudiocpp/AsioDeviceAdapter.hxx DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/portaudiocpp")
install(FILES include/AsioDeviceAdapter.hxx DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/portaudiocpp")
endif()

set(PORTAUDIOCPP_VERSION 12)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/portaudiocpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/portaudiocpp.pc @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/portaudiocpp.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/portaudiocpp.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/portaudiocpp.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions bindings/cpp/source/portaudiocpp/MemFunCallbackStream.cxx

This file was deleted.

Binary file added bindings/cpp/src/.AsioDeviceAdapter.cxx.kate-swp
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "portaudiocpp/AsioDeviceAdapter.hxx"
#include "AsioDeviceAdapter.hxx"

#include "portaudio.h"
#include "pa_asio.h"

#include "portaudiocpp/Device.hxx"
#include "portaudiocpp/HostApi.hxx"
#include "portaudiocpp/Exception.hxx"
#include "Device.hxx"
#include "HostApi.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "portaudiocpp/BlockingStream.hxx"
#include "BlockingStream.hxx"

#include "portaudio.h"

#include "portaudiocpp/StreamParameters.hxx"
#include "portaudiocpp/Exception.hxx"
#include "StreamParameters.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "portaudiocpp/CFunCallbackStream.hxx"
#include "CFunCallbackStream.hxx"

#include "portaudiocpp/StreamParameters.hxx"
#include "portaudiocpp/Exception.hxx"
#include "StreamParameters.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "portaudiocpp/CallbackInterface.hxx"
#include "CallbackInterface.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "portaudiocpp/CallbackStream.hxx"
#include "CallbackStream.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "portaudiocpp/CppFunCallbackStream.hxx"
#include "CppFunCallbackStream.hxx"

#include "portaudiocpp/StreamParameters.hxx"
#include "portaudiocpp/Exception.hxx"
#include "StreamParameters.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "portaudiocpp/Device.hxx"
#include "Device.hxx"

#include <cstddef>

#include "portaudiocpp/HostApi.hxx"
#include "portaudiocpp/System.hxx"
#include "portaudiocpp/Exception.hxx"
#include "HostApi.hxx"
#include "System.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "portaudiocpp/DirectionSpecificStreamParameters.hxx"
#include "DirectionSpecificStreamParameters.hxx"

#include "portaudiocpp/Device.hxx"
#include "Device.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "portaudiocpp/Exception.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "portaudiocpp/HostApi.hxx"
#include "HostApi.hxx"

#include "portaudiocpp/System.hxx"
#include "portaudiocpp/Device.hxx"
#include "portaudiocpp/SystemDeviceIterator.hxx"
#include "portaudiocpp/Exception.hxx"
#include "System.hxx"
#include "Device.hxx"
#include "SystemDeviceIterator.hxx"
#include "Exception.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "portaudiocpp/InterfaceCallbackStream.hxx"
#include "InterfaceCallbackStream.hxx"

#include "portaudiocpp/StreamParameters.hxx"
#include "portaudiocpp/Exception.hxx"
#include "portaudiocpp/CallbackInterface.hxx"
#include "StreamParameters.hxx"
#include "Exception.hxx"
#include "CallbackInterface.hxx"

namespace portaudio
{
Expand Down
4 changes: 4 additions & 0 deletions bindings/cpp/src/MemFunCallbackStream.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "MemFunCallbackStream.hxx"

// (... template class ...)

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "portaudiocpp/Stream.hxx"
#include "Stream.hxx"

#include <cstddef>

#include "portaudiocpp/Exception.hxx"
#include "portaudiocpp/System.hxx"
#include "Exception.hxx"
#include "System.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "portaudiocpp/StreamParameters.hxx"
#include "StreamParameters.hxx"

#include <cstddef>

#include "portaudiocpp/Device.hxx"
#include "Device.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "portaudiocpp/System.hxx"
#include "System.hxx"

#include <cstddef>
#include <cassert>

#include "portaudiocpp/HostApi.hxx"
#include "portaudiocpp/Device.hxx"
#include "portaudiocpp/Stream.hxx"
#include "portaudiocpp/Exception.hxx"
#include "portaudiocpp/SystemHostApiIterator.hxx"
#include "portaudiocpp/SystemDeviceIterator.hxx"
#include "HostApi.hxx"
#include "Device.hxx"
#include "Stream.hxx"
#include "Exception.hxx"
#include "SystemHostApiIterator.hxx"
#include "SystemDeviceIterator.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "portaudiocpp/SystemDeviceIterator.hxx"
#include "SystemDeviceIterator.hxx"

namespace portaudio
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "portaudiocpp/SystemHostApiIterator.hxx"
#include "SystemHostApiIterator.hxx"

namespace portaudio
{
Expand Down

0 comments on commit 09ac627

Please sign in to comment.