Merge pull request #14193 from cho-m/meson-creator

formula_creator: use tool-agnostic meson commands
This commit is contained in:
Carlo Cabrera 2023-02-12 21:21:44 +08:00 committed by GitHub
commit ccbb173995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,11 +168,9 @@ module Homebrew
<% elsif mode == :go %>
system "go", "build", *std_go_args(ldflags: "-s -w")
<% elsif mode == :meson %>
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja", "-v"
system "ninja", "install", "-v"
end
system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
<% elsif mode == :node %>
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["\#{libexec}/bin/*"]