From 974d4015b7eeed0490279d51d159abb2df9ed2c2 Mon Sep 17 00:00:00 2001 From: RC Date: Tue, 16 Jan 2024 19:30:40 +1100 Subject: [PATCH] Bump bundlex to 1.4, fix for cross-compile on OSX. --- bundlex.exs | 4 ++-- lib/membrane_portaudio_plugin/osx_permissions.ex | 2 +- mix.exs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bundlex.exs b/bundlex.exs index fce9c8c..8f4624c 100644 --- a/bundlex.exs +++ b/bundlex.exs @@ -44,10 +44,10 @@ defmodule Membrane.PortAudio.BundlexProject do ], preprocessor: Unifex ] - ] ++ os_specific(Bundlex.get_target()) + ] ++ os_specific(Bundlex.platform()) end - defp os_specific(%{os: "darwin" <> _rest}) do + defp os_specific(:macosx) do [ osx_permissions: [ interface: :nif, diff --git a/lib/membrane_portaudio_plugin/osx_permissions.ex b/lib/membrane_portaudio_plugin/osx_permissions.ex index 2ba3852..371f91e 100644 --- a/lib/membrane_portaudio_plugin/osx_permissions.ex +++ b/lib/membrane_portaudio_plugin/osx_permissions.ex @@ -1,4 +1,4 @@ -if Bundlex.get_target().os |> String.starts_with?("darwin") do +if Bundlex.platform() == :macosx do defmodule Membrane.PortAudio.OSXPermissions do @moduledoc false diff --git a/mix.exs b/mix.exs index 7e586bf..9ab9d08 100644 --- a/mix.exs +++ b/mix.exs @@ -40,7 +40,7 @@ defmodule Membrane.PortAudio.Mixfile do {:membrane_common_c, "~> 0.16.0"}, {:bunch, "~> 1.5"}, {:membrane_raw_audio_format, "~> 0.12.0"}, - {:bundlex, "~> 1.3"}, + {:bundlex, "~> 1.4"}, {:membrane_precompiled_dependency_provider, "~> 0.1.0"}, # Testing {:mockery, "~> 2.1", runtime: false},