Skip to content

Commit 9ce4cd9

Browse files
authored
Merge pull request #251256 from Homebrew/vulkan-profiles-macos-python
vulkan-profiles: build with macOS python
2 parents a9b6624 + 5ecd83b commit 9ce4cd9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Formula/v/vulkan-profiles.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ class VulkanProfiles < Formula
2222

2323
depends_on "cmake" => :build
2424
depends_on "pkgconf" => :build
25-
depends_on "[email protected]" => :build
2625
depends_on "vulkan-tools" => :test
2726
depends_on "jsoncpp"
2827
depends_on "valijson"
2928
depends_on "vulkan-headers"
3029
depends_on "vulkan-loader"
3130
depends_on "vulkan-utility-libraries"
3231

32+
uses_from_macos "python" => :build
33+
3334
on_macos do
3435
depends_on "molten-vk" => :test
3536
end
@@ -47,12 +48,12 @@ def install
4748
inreplace "profiles/test/CMakeLists.txt", "jsoncpp_static", "jsoncpp"
4849

4950
system "cmake", "-S", ".", "-B", "build",
50-
"-DVULKAN_HEADERS_INSTALL_DIR=#{Formula["vulkan-headers"].prefix}",
51+
"-DCMAKE_INSTALL_RPATH=#{rpath(target: Formula["vulkan-loader"].opt_lib)}",
52+
"-DPython3_EXECUTABLE=#{which("python3")}",
53+
"-DVALIJSON_INSTALL_DIR=#{Formula["valijson"].prefix}",
5154
"-DVULKAN_HEADERS_INSTALL_DIR=#{Formula["vulkan-headers"].prefix}",
5255
"-DVULKAN_LOADER_INSTALL_DIR=#{Formula["vulkan-loader"].prefix}",
5356
"-DVULKAN_UTILITY_LIBRARIES_INSTALL_DIR=#{Formula["vulkan-utility-libraries"].prefix}",
54-
"-DVALIJSON_INSTALL_DIR=#{Formula["valijson"].prefix}",
55-
"-DCMAKE_INSTALL_RPATH=#{rpath(target: Formula["vulkan-loader"].opt_lib)}",
5657
*std_cmake_args
5758
system "cmake", "--build", "build"
5859
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)