Skip to content

Commit

Permalink
portaudio:fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
wuqi-tech committed Feb 6, 2024
1 parent 1fa7a4b commit e704e87
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions port/freebsd-netgraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -166,6 +163,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/libusb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig required to link libusb
find_package(PkgConfig REQUIRED)

Expand All @@ -157,6 +154,9 @@ if(PORTAUDIO_FOUND)
add_compile_definitions(HAVE_PORTAUDIO)
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/posix-h4-bcm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -144,6 +141,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/posix-h4-nxp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -144,6 +141,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/posix-h4-zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -90,6 +87,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/posix-h4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -166,6 +163,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# pthread
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Expand Down
6 changes: 3 additions & 3 deletions port/windows-h4-da14585/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -84,6 +81,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# get list of examples, skipping mesh_node_demo
include(../../example/CMakeLists.txt)
set (EXAMPLES ${EXAMPLES_LE_ONLY} ${EXAMPLES_GENERAL})
Expand Down
6 changes: 3 additions & 3 deletions port/windows-h4-zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -84,6 +81,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# get list of examples, skipping mesh_node_demo
include(../../example/CMakeLists.txt)
set (EXAMPLES ${EXAMPLES_LE_ONLY} ${EXAMPLES_GENERAL})
Expand Down
6 changes: 3 additions & 3 deletions port/windows-h4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig)

Expand All @@ -167,6 +164,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# Add CC256x Support and specify init script
set (CC256X_INIT_SCRIPT bluetooth_init_cc2564C_1.5.c)
include(${BTSTACK_ROOT}/chipset/cc256x/cc256x.cmake)
Expand Down
6 changes: 3 additions & 3 deletions port/windows-winusb-intel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig QUIET)

Expand All @@ -101,6 +98,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# get list of examples, skipping mesh_node_demo
include(../../example/CMakeLists.txt)
set (EXAMPLES ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE})
Expand Down
6 changes: 3 additions & 3 deletions port/windows-winusb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# pkgconfig
find_package(PkgConfig QUIET)

Expand All @@ -93,6 +90,9 @@ if (PkgConfig_FOUND)
endif()
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# get list of examples, skipping mesh_node_demo
include(../../example/CMakeLists.txt)
set (EXAMPLES ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE})
Expand Down
6 changes: 3 additions & 3 deletions test/avdtp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ list(SORT SOURCES)

set_source_files_properties(../../src/classic/hfp_ag.c PROPERTIES LANGUAGE CXX )

# create static lib
add_library(btstack STATIC ${SOURCES})

# portaudio
pkg_check_modules(PORTAUDIO portaudio-2.0)
if(PORTAUDIO_FOUND)
Expand All @@ -90,6 +87,9 @@ if(PORTAUDIO_FOUND)
add_compile_definitions(HAVE_PORTAUDIO)
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# create targets for all examples
file(GLOB EXAMPLES_C "*.c")
list(SORT EXAMPLES_C)
Expand Down
6 changes: 3 additions & 3 deletions test/le_audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ set(SOURCES
)
list(SORT SOURCES)

# create static lib
add_library(btstack STATIC ${SOURCES})

# find pkgconfig
find_package(PkgConfig REQUIRED)

Expand All @@ -91,6 +88,9 @@ if(PORTAUDIO_FOUND)
add_compile_definitions(HAVE_PORTAUDIO)
endif()

# create static lib
add_library(btstack STATIC ${SOURCES})

# fdk-aac
pkg_check_modules(FDK_AAC fdk-aac)
if(FDK_AAC_FOUND)
Expand Down

0 comments on commit e704e87

Please sign in to comment.