Skip to content

Commit

Permalink
Merge pull request #182065 from Homebrew/bump-tracy-0.11.1
Browse files Browse the repository at this point in the history
tracy 0.11.1
  • Loading branch information
BrewTestBot authored Aug 23, 2024
2 parents 94677d5 + 54da538 commit ee44215
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions Formula/t/tracy.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,59 @@
class Tracy < Formula
desc "Real-time, nanosecond resolution frame profiler"
homepage "https://github.com/wolfpld/tracy"
url "https://github.com/wolfpld/tracy/archive/refs/tags/v0.11.0.tar.gz"
sha256 "b591ef2820c5575ccbf17e2e7a1dc1f6b9a2708f65bfd00f4ebefad2a1ccf830"
url "https://github.com/wolfpld/tracy/archive/refs/tags/v0.11.1.tar.gz"
sha256 "2c11ca816f2b756be2730f86b0092920419f3dabc7a7173829ffd897d91888a1"
license "BSD-3-Clause"

bottle do
sha256 cellar: :any, arm64_sonoma: "dd1a741539f0c65f5871567157edc2aa4269703fb37079919c5043d1039c261a"
sha256 cellar: :any, arm64_ventura: "37ee1281141ecfb2a47315d41cfcf365e9faffc6166e1ac02f400a87bf0ad52c"
sha256 cellar: :any, arm64_monterey: "da06ed8c0f859a1270ac08c4aef7f99691fa17cddbe03a8e1364cf4f3f7a2241"
sha256 cellar: :any, sonoma: "10d6d0b13a1387b809bd0298ac5103cfe901335167b87fc6740f3d7515c5288a"
sha256 cellar: :any, ventura: "70ff96b45cad523508fbff0f5e70c8577d6e4ad335399005e262effd89350ed5"
sha256 cellar: :any, monterey: "e8973f9aa0f62a989cfd4ea08893dd01aa463015b5d61e18d703263a085821f3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e8ee49d32d243d29e7fe206afd278a496e38a6456329b1d7ab42cb35ed552e12"
sha256 cellar: :any, arm64_sonoma: "d6f150dd66767e47837006f661a3c36ed7cd7ad21dfe76a7c1ba8aff1820a924"
sha256 cellar: :any, arm64_ventura: "2b2b2517cdf72b57face88cc1dbf6083bfd2a2b2271e857825bc7d012fd2bf43"
sha256 cellar: :any, arm64_monterey: "27320ae60ea734c462bbfcd54fbee3444eed1de85b80315c1814850d043b229e"
sha256 cellar: :any, sonoma: "4f862af547f74f1859b5e717cd7368a6394b170db1f68ead37b23ddd5a1e1cfb"
sha256 cellar: :any, ventura: "b32e96ee1c8c76f0064509f450da12f54b2860c007a3651288e6fd2bb0d7cc0c"
sha256 cellar: :any, monterey: "1db13a28c85ccdd2ea30ca6f33b8a534b60610f513c3ae69ddc3d33e2ae8ab5a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "aeef3daf639e9ed8491a9b7e0b11652809dd6d165410d9070fcf5f40f8883a85"
end

depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "capstone"
depends_on "freetype"
depends_on "glfw"
depends_on "tbb"

on_linux do
depends_on "dbus"
depends_on "libxkbcommon"
depends_on "mesa"
depends_on "tbb"
depends_on "wayland"
end

fails_with gcc: "5" # C++17

def install
%w[capture csvexport import-chrome update profiler].each do |f|
system "cmake", "-S", f, "-B", "#{f}/build", *std_cmake_args
system "cmake", "--build", "#{f}/build"
if f == "profiler"
bin.install "#{f}/build/tracy-#{f}" => "tracy"
else
bin.install "#{f}/build/tracy-#{f}" => "tracy-#{f}"
end
args = %w[CAPSTONE GLFW FREETYPE].map { |arg| "-DDOWNLOAD_#{arg}=OFF" }

buildpath.each_child do |child|
next unless child.directory?
next unless (child/"CMakeLists.txt").exist?
next if %w[python test].include?(child.basename.to_s)

system "cmake", "-S", child, "-B", child/"build", *args, *std_cmake_args
system "cmake", "--build", child/"build"
bin.install child.glob("build/tracy-*").select(&:executable?)
end

system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "-S", ".", "-B", "build", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
bin.install_symlink "tracy-profiler" => "tracy"
end

test do
port = free_port
assert_match "Tracy Profiler #{version}", shell_output("#{bin}/tracy --help")

port = free_port
pid = fork do
exec bin/"tracy", "-p", port.to_s
end
Expand Down

0 comments on commit ee44215

Please sign in to comment.