-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #61246. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
- Loading branch information
1 parent
f8b3cb6
commit 27f6bb6
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,28 @@ | ||
class Halide < Formula | ||
desc "Language for fast, portable data-parallel computation" | ||
homepage "https://halide-lang.org" | ||
url "https://github.com/halide/Halide/archive/v10.0.0.tar.gz" | ||
sha256 "23808f8e9746aea25349a16da92e89ae320990df3c315c309789fb209ee40f20" | ||
license "MIT" | ||
|
||
depends_on "cmake" => :build | ||
depends_on "jpeg" | ||
depends_on "libomp" | ||
depends_on "libpng" | ||
depends_on "llvm" | ||
depends_on "python@3.8" | ||
|
||
def install | ||
mkdir "build" do | ||
system "cmake", "..", *std_cmake_args | ||
system "make" | ||
system "make", "install" | ||
end | ||
end | ||
|
||
test do | ||
cp share/"tutorial/lesson_01_basics.cpp", testpath | ||
system ENV.cxx, "-std=c++11", "lesson_01_basics.cpp", "-L#{lib}", "-lHalide", "-o", "test" | ||
assert_match "Success!", shell_output("./test") | ||
end | ||
end |