mirror of
https://github.com/spatialaudio/portaudio-binaries.git
synced 2026-03-18 00:46:02 +08:00
Activate PA_BUILD_SHARED_LIBS and fix library names
This commit is contained in:
8
.github/workflows/build-libs.yml
vendored
8
.github/workflows/build-libs.yml
vendored
@@ -25,13 +25,13 @@ jobs:
|
||||
path: portaudio
|
||||
- name: cmake configure
|
||||
run: |
|
||||
cmake -S portaudio -B build -D CMAKE_BUILD_TYPE=Release
|
||||
cmake -S portaudio -B build -D CMAKE_BUILD_TYPE=Release -D PA_BUILD_SHARED_LIBS=ON
|
||||
- name: cmake build
|
||||
run: |
|
||||
cmake --build build
|
||||
- name: move dylib
|
||||
run: |
|
||||
mv build/libportaudio.dylib .
|
||||
mv build/libportaudio.19.8.dylib libportaudio.dylib
|
||||
- name: show some information about dylib
|
||||
run: |
|
||||
file libportaudio.dylib
|
||||
@@ -68,13 +68,13 @@ jobs:
|
||||
path: portaudio
|
||||
- name: cmake configure
|
||||
run: |
|
||||
cmake -S portaudio -B build -A ${{ matrix.platform }} -D PA_USE_ASIO=${{ matrix.asio && 'ON' || 'OFF' }}
|
||||
cmake -S portaudio -B build -A ${{ matrix.platform }} -D PA_USE_ASIO=${{ matrix.asio && 'ON' || 'OFF' }} -D PA_BUILD_SHARED_LIBS=ON
|
||||
- name: cmake build
|
||||
run: |
|
||||
cmake --build build --config Release
|
||||
- name: rename DLL
|
||||
run: |
|
||||
mv build/Release/portaudio_*.dll libportaudio${{ matrix.platform-suffix }}${{ matrix.asio }}.dll
|
||||
mv build/Release/portaudio.dll libportaudio${{ matrix.platform-suffix }}${{ matrix.asio }}.dll
|
||||
- name: show some information about DLL
|
||||
run: |
|
||||
ldd libportaudio${{ matrix.platform-suffix }}${{ matrix.asio }}.dll
|
||||
|
||||
Reference in New Issue
Block a user