-
Notifications
You must be signed in to change notification settings - Fork 681
libsoundio jll initial commit for julia #13228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mj2984
wants to merge
5
commits into
JuliaPackaging:master
Choose a base branch
from
mj2984:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+66
−0
Open
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8ab5e39
libsoundio jll initial commit for julia
mj2984 22b674f
Update L/libsoundio/build_tarballs.jl
mj2984 b1134f8
Update build_tarballs.jl
mj2984 02d81b2
Update L/libsoundio/build_tarballs.jl
mj2984 16aa529
Update L/libsoundio/build_tarballs.jl
mj2984 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Note that this script can accept some limited command-line arguments, run | ||
| # `julia build_tarballs.jl --help` to see a usage message. | ||
| using BinaryBuilder, Pkg | ||
|
|
||
| name = "libsoundio" | ||
| version = v"2.0.0" | ||
|
|
||
| # Collection of sources required to complete build | ||
| sources = [ | ||
| GitSource("https://github.com/andrewrk/libsoundio.git", "5087ef68b9c9014883861832c2f6dd8c6515f8e0") | ||
| ] | ||
|
|
||
| # Bash recipe for building across all platforms | ||
| script = raw""" | ||
| cd $WORKSPACE/srcdir/libsoundio | ||
|
|
||
| # Initialize flags | ||
| CMAKE_FLAGS=("-DCMAKE_INSTALL_PREFIX=$prefix" | ||
| "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN}" | ||
| "-DCMAKE_BUILD_TYPE=Release" | ||
| "-DBUILD_EXAMPLE=OFF" | ||
mj2984 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "-DBUILD_TESTS=OFF" | ||
| "-DENABLE_JACK=OFF") | ||
|
|
||
| # Platform-specific backend configuration | ||
| case "${target}" in | ||
| *linux*) | ||
| CMAKE_FLAGS+=("-DENABLE_ALSA=ON" "-DENABLE_PULSEAUDIO=ON" "-DENABLE_COREAUDIO=OFF" "-DENABLE_WASAPI=OFF") | ||
| ;; | ||
| *apple*) | ||
| CMAKE_FLAGS+=("-DENABLE_ALSA=OFF" "-DENABLE_PULSEAUDIO=OFF" "-DENABLE_COREAUDIO=ON" "-DENABLE_WASAPI=OFF") | ||
| ;; | ||
| *w64*) | ||
| CMAKE_FLAGS+=("-DENABLE_ALSA=OFF" "-DENABLE_PULSEAUDIO=OFF" "-DENABLE_COREAUDIO=OFF" "-DENABLE_WASAPI=ON") | ||
| ;; | ||
| *) | ||
| CMAKE_FLAGS+=("-DENABLE_ALSA=OFF" "-DENABLE_PULSEAUDIO=OFF" "-DENABLE_COREAUDIO=OFF" "-DENABLE_WASAPI=OFF") | ||
| ;; | ||
| esac | ||
|
|
||
| cmake -B build "${CMAKE_FLAGS[@]}" | ||
| cmake --build build --parallel ${nproc} | ||
| cmake --install build | ||
|
|
||
| install -D -m 644 LICENSE "${prefix}/share/licenses/libsoundio/LICENSE" | ||
mj2984 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| """ | ||
|
|
||
| # These are the platforms we will build for by default | ||
| platforms = [ | ||
| Platform("i686", "linux"; libc = "glibc"), | ||
| Platform("x86_64", "linux"; libc = "glibc"), | ||
| Platform("aarch64", "linux"; libc = "glibc"), | ||
| Platform("armv6l", "linux"; call_abi = "eabihf", libc = "glibc"), | ||
| Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc"), | ||
| Platform("powerpc64le", "linux"; libc = "glibc"), | ||
| Platform("riscv64", "linux"; libc = "glibc"), | ||
| Platform("i686", "linux"; libc = "musl"), | ||
| Platform("x86_64", "linux"; libc = "musl"), | ||
| Platform("aarch64", "linux"; libc = "musl"), | ||
| Platform("armv6l", "linux"; call_abi = "eabihf", libc = "musl"), | ||
| Platform("armv7l", "linux"; call_abi = "eabihf", libc = "musl"), | ||
| Platform("x86_64", "macos"), | ||
| Platform("aarch64", "macos"), | ||
| Platform("i686", "windows"), | ||
| Platform("x86_64", "windows") | ||
| ] | ||
imciner2 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # The products that we will ensure are always built | ||
| products = [ | ||
| LibraryProduct("libsoundio", :libsoundio) | ||
| ] | ||
|
|
||
| # Dependencies with platform filtering to avoid "mapping" warnings | ||
| dependencies = [ | ||
| Dependency(PackageSpec(name="alsa_jll", uuid="45378030-f8ea-5b20-a7c7-1a9d95efb90e"); platforms=filter(Sys.islinux, platforms)), | ||
| Dependency(PackageSpec(name="PulseAudio_jll", uuid="02771fc1-bdb7-5db5-8d11-300768e00fbd"); platforms=filter(Sys.islinux, platforms)) | ||
| ] | ||
|
|
||
| # Build the tarballs | ||
| build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version = v"13.2.0") | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.