Merge pull request #7364 from iMichka/meson
formula: add standard meson args
This commit is contained in:
commit
25dacf7d6c
@ -1373,6 +1373,11 @@ class Formula
|
||||
["--jobs=#{ENV.make_jobs}", "--max-backjumps=100000", "--install-method=copy", "--installdir=#{bin}"]
|
||||
end
|
||||
|
||||
# Standard parameters for meson builds.
|
||||
def std_meson_args
|
||||
["--prefix=#{prefix}", "--libdir=#{lib}"]
|
||||
end
|
||||
|
||||
# an array of all core {Formula} names
|
||||
# @private
|
||||
def self.core_names
|
||||
|
||||
@ -142,7 +142,7 @@ module Homebrew
|
||||
system "go", "build", *std_go_args
|
||||
<% elsif mode == :meson %>
|
||||
mkdir "build" do
|
||||
system "meson", "--prefix=\#{prefix}", ".."
|
||||
system "meson", *std_meson_args, ".."
|
||||
system "ninja", "-v"
|
||||
system "ninja", "install", "-v"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user