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}"]
|
["--jobs=#{ENV.make_jobs}", "--max-backjumps=100000", "--install-method=copy", "--installdir=#{bin}"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Standard parameters for meson builds.
|
||||||
|
def std_meson_args
|
||||||
|
["--prefix=#{prefix}", "--libdir=#{lib}"]
|
||||||
|
end
|
||||||
|
|
||||||
# an array of all core {Formula} names
|
# an array of all core {Formula} names
|
||||||
# @private
|
# @private
|
||||||
def self.core_names
|
def self.core_names
|
||||||
|
|||||||
@ -142,7 +142,7 @@ module Homebrew
|
|||||||
system "go", "build", *std_go_args
|
system "go", "build", *std_go_args
|
||||||
<% elsif mode == :meson %>
|
<% elsif mode == :meson %>
|
||||||
mkdir "build" do
|
mkdir "build" do
|
||||||
system "meson", "--prefix=\#{prefix}", ".."
|
system "meson", *std_meson_args, ".."
|
||||||
system "ninja", "-v"
|
system "ninja", "-v"
|
||||||
system "ninja", "install", "-v"
|
system "ninja", "install", "-v"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user