-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from keijiro/dev-linux
Add linux support
- Loading branch information
Showing
13 changed files
with
307 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,65 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
|
||
IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | ||
SET(CMAKE_BUILD_TYPE Debug) | ||
ENDIF() | ||
|
||
IF(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
SET(ENABLE_DEBUG ON) | ||
ENDIF() | ||
|
||
SET(LASP_INCLUDES | ||
../PortAudio/common/pa_allocation.h | ||
../PortAudio/common/pa_converters.h | ||
../PortAudio/common/pa_cpuload.h | ||
../PortAudio/common/pa_debugprint.h | ||
../PortAudio/common/pa_dither.h | ||
../PortAudio/common/pa_endianness.h | ||
../PortAudio/common/pa_hostapi.h | ||
../PortAudio/common/pa_memorybarrier.h | ||
../PortAudio/common/pa_process.h | ||
../PortAudio/common/pa_ringbuffer.h | ||
../PortAudio/common/pa_stream.h | ||
../PortAudio/common/pa_trace.h | ||
../PortAudio/common/pa_types.h | ||
../PortAudio/common/pa_util.h | ||
../PortAudio/include/pa_linux_alsa.h | ||
../PortAudio/include/portaudio.h | ||
../PortAudio/os/unix/pa_unix_util.h | ||
../PortAudio/common/pa_allocation.h | ||
../PortAudio/common/pa_converters.h | ||
../PortAudio/common/pa_cpuload.h | ||
../PortAudio/common/pa_debugprint.h | ||
../PortAudio/common/pa_dither.h | ||
../PortAudio/common/pa_endianness.h | ||
../PortAudio/common/pa_hostapi.h | ||
../PortAudio/common/pa_memorybarrier.h | ||
../PortAudio/common/pa_process.h | ||
../PortAudio/common/pa_ringbuffer.h | ||
../PortAudio/common/pa_stream.h | ||
../PortAudio/common/pa_trace.h | ||
../PortAudio/common/pa_types.h | ||
../PortAudio/common/pa_util.h | ||
../PortAudio/include/pa_linux_alsa.h | ||
../PortAudio/include/portaudio.h | ||
../PortAudio/os/unix/pa_unix_util.h | ||
../Source/BiquadFilter.h | ||
../Source/Debug.h | ||
../Source/Driver.h | ||
../Source/IUnityInterface.h | ||
../Source/RingBuffer.h | ||
) | ||
|
||
SET(LASP_SOURCES | ||
../PortAudio/common/pa_allocation.c | ||
../PortAudio/common/pa_converters.c | ||
../PortAudio/common/pa_cpuload.c | ||
../PortAudio/common/pa_debugprint.c | ||
../PortAudio/common/pa_dither.c | ||
../PortAudio/common/pa_front.c | ||
../PortAudio/common/pa_process.c | ||
../PortAudio/common/pa_ringbuffer.c | ||
../PortAudio/common/pa_stream.c | ||
../PortAudio/common/pa_trace.c | ||
../PortAudio/hostapi/alsa/pa_linux_alsa.c | ||
../PortAudio/os/unix/pa_unix_hostapis.c | ||
../PortAudio/os/unix/pa_unix_util.c | ||
../PortAudio/common/pa_allocation.c | ||
../PortAudio/common/pa_converters.c | ||
../PortAudio/common/pa_cpuload.c | ||
../PortAudio/common/pa_debugprint.c | ||
../PortAudio/common/pa_dither.c | ||
../PortAudio/common/pa_front.c | ||
../PortAudio/common/pa_process.c | ||
../PortAudio/common/pa_ringbuffer.c | ||
../PortAudio/common/pa_stream.c | ||
../PortAudio/common/pa_trace.c | ||
../PortAudio/hostapi/alsa/pa_linux_alsa.c | ||
../PortAudio/os/unix/pa_unix_hostapis.c | ||
../PortAudio/os/unix/pa_unix_util.c | ||
../Source/Lasp.cpp | ||
) | ||
|
||
SET(LASP_INCLUDE_PATHS ../PortAudio/include ../PortAudio/common ../PortAudio/os/unix ${ALSA_INCLUDE_DIRS}) | ||
|
||
SET(CMAKE_CXX_STANDARD 11) | ||
SET(LASP_INCLUDE_PATHS ../PortAudio/include ../PortAudio/common ../PortAudio/os/unix) | ||
SET(LASP_COMPILE_DEFINITIONS PA_USE_ALSA) | ||
SET(LASP_LIBRARY_DEPENDENCIES ${ALSA_LIBRARIES} m pthread) | ||
SET(LASP_PKGCONFIG_LDFLAGS "-lasound -lm -lpthread") | ||
SET(LASP_LIBRARY_DEPENDENCIES asound m pthread) | ||
|
||
SET(LASP_COMPILE_DEFINITIONS ${LASP_COMPILE_DEFINITIONS} PA_ENABLE_DEBUG_OUTPUT) | ||
IF(ENABLE_DEBUG) | ||
SET(LASP_COMPILE_DEFINITIONS ${LASP_COMPILE_DEFINITIONS} _DEBUG PA_ENABLE_DEBUG_OUTPUT) | ||
ENDIF() | ||
|
||
ADD_LIBRARY(lasp SHARED ${LASP_INCLUDES} ${LASP_SOURCES}) | ||
SET_PROPERTY(TARGET lasp APPEND_STRING PROPERTY COMPILE_DEFINITIONS ${LASP_COMPILE_DEFINITIONS}) | ||
TARGET_INCLUDE_DIRECTORIES(lasp PRIVATE ${LASP_INCLUDE_PATHS}) | ||
TARGET_LINK_LIBRARIES(lasp ${LASPLIBRARY_DEPENDENCIES}) | ||
ADD_LIBRARY(Lasp SHARED ${LASP_INCLUDES} ${LASP_SOURCES}) | ||
SET_PROPERTY(TARGET Lasp APPEND_STRING PROPERTY COMPILE_DEFINITIONS ${LASP_COMPILE_DEFINITIONS}) | ||
TARGET_INCLUDE_DIRECTORIES(Lasp PRIVATE ${LASP_INCLUDE_PATHS}) | ||
TARGET_LINK_LIBRARIES(Lasp ${LASP_LIBRARY_DEPENDENCIES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.