|
@@ -5,26 +5,31 @@ if(APPLE)
|
|
|
find_library(AUDIOTOOLBOX AudioToolbox)
|
|
find_library(AUDIOTOOLBOX AudioToolbox)
|
|
|
find_library(AULIB AudioUnit)
|
|
find_library(AULIB AudioUnit)
|
|
|
find_library(CARBONLIB Carbon)
|
|
find_library(CARBONLIB Carbon)
|
|
|
- find_library(AAIOLIB names libaaio.a paths /usr/local/lib)
|
|
|
|
|
|
|
+ link_directories (/usr/local/lib)
|
|
|
|
|
+ find_library(AAIOLIB NAMES libaaio.a)
|
|
|
set(EXTRA_LIBRARIES1 portsf pthread ${AAIOLIB} ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${EXTRA_LIBRARIES})
|
|
set(EXTRA_LIBRARIES1 portsf pthread ${AAIOLIB} ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${EXTRA_LIBRARIES})
|
|
|
|
|
|
|
|
else()
|
|
else()
|
|
|
if(MINGW)
|
|
if(MINGW)
|
|
|
set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
|
|
set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
|
|
|
- set(EXTRA_LIBRARIES1 winmm dsound winspool ${EXTRA_LIBRARIES})
|
|
|
|
|
|
|
+ set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops -static-libgcc -static-libstdc++")
|
|
|
|
|
+ set(EXTRA_LIBRARIES1 winmm dsound winspool portsf ${EXTRA_LIBRARIES})
|
|
|
else()
|
|
else()
|
|
|
|
|
+ link_directories (/usr/local/lib)
|
|
|
|
|
+ find_library(AAIOLIB NAMES libaaio.a)
|
|
|
set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
|
|
set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
|
|
|
set(EXTRA_LIBRARIES1 jack asound portsf pthread ${EXTRA_LIBRARIES})
|
|
set(EXTRA_LIBRARIES1 jack asound portsf pthread ${EXTRA_LIBRARIES})
|
|
|
endif()
|
|
endif()
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
link_directories(../../lib ../portaudio/lib/.libs /usr/local/lib)
|
|
link_directories(../../lib ../portaudio/lib/.libs /usr/local/lib)
|
|
|
-
|
|
|
|
|
include_directories(../../include ../include ../portaudio/include ../portaudio/src/common /usr/local/include)
|
|
include_directories(../../include ../include ../portaudio/include ../portaudio/src/common /usr/local/include)
|
|
|
|
|
|
|
|
|
|
+if(MINGW)
|
|
|
|
|
+add_executable(paplay paplay.c fmhfuncs.c cmakedummy.cpp)
|
|
|
|
|
+else()
|
|
|
add_executable(paplay paplay.c fmhfuncs.c)
|
|
add_executable(paplay paplay.c fmhfuncs.c)
|
|
|
|
|
+endif()
|
|
|
target_link_libraries(paplay portaudio.a ${EXTRA_LIBRARIES1})
|
|
target_link_libraries(paplay portaudio.a ${EXTRA_LIBRARIES1})
|
|
|
|
|
|
|
|
my_install(paplay)
|
|
my_install(paplay)
|